Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi Guys
I want to create a variable,
Is there a way for me to calculate the month with the largest sales
Mont field is "DEC_Month"
Sales field is "SALES"
N.B . It should only show one month
This?
FirstSortedValue(DEC_Month, -Max(SALES))
No sorry anil that doesnt work
My Bad, Should work
FirstSortedValue(DEC_Month, -Aggr(Max(SALES), DEC_Month))
Try like:
FirstSortedValue(DEC_Month, -Aggr(Max(SALES),DEC_Month))
Hi Anil
If i was to save your expression
I would create a variable
FirstSortedValue(DEC_Month, -Max(SALES))>>> vTopMonth
Then in my chart i would use this
Sum({1<DEC_Month={'$(vTopMonth)'}>}SALES)
If you see errors please tell me
Kind Regards
Use this in variable
FirstSortedValue(DEC_Month, -Aggr(Max(SALES), DEC_Month))
Then, Set analysis should be this?
Sum({1<DEC_Month = {"$(=$(vTopMonth))"}>} SALES)
Very Very close its giving a result,
but its not selecting the largest month 😮
Its selecting the middle month if that helps
I have 3 months and its selecting the middle one, not the lowest or the highest.
Could it be the varible?
You could even directly try like:
Sum({1<DEC_Month={"=DEC_Month=Max(total SALES)"}>}SALES)
Check testing in text object and tell me whether you are getting any thing or not?
=vTopMonth