Hello everybody,
Just getting a bit confused with the MAX value function in WEBI 4.
Setup
I'm using a BEX that has 2 dimensions and a measure.
2 Dimensions being Account Name and Trading Season Desc
Measure being Ordered Quantity.
What i'm trying to do is have a 2 column table with the left column being the Account Name and the right column displaying the best year of sales they had.
I have a single variable that states =Max([Ordered Quantity]) ForAll([Trading Season - Trading Season Desc (Key)])
The issue that i'm having is that the Max function keeps bringing back the SUM of all the Trading Seasons for each account if I don't have the Trading Season column in, if I add the Trading Season column in, I just get 3 to 4 rows per account detailing which trading season it is and then the Max column will have the correct figure in but be repeated for however many rows there are Trading Seasons per account.
Example data
Account | Trading Season | Header 3 |
---|---|---|
Account 1 | 2012 | 300 |
2013 | 200 | |
2014 | 500 | |
2015 | 600 |
What I want
Account | Max |
---|---|
Account 1 | 600 |
What I get with the Max variable
Account | Max |
---|---|
Account 1 | 1600 |