Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
hello
got a bar chart with dimension MonthYear (e.g. Jan-2014, Feb-2014)
the expression is sum(Sales)
ok I select the year 2014
and I get sales for the following months Jan, Feb, April
what I want now is get the last month that has sales in the above chart
how can I get the value of Apr-2014 from the sum(sales)
max(MonthYear) gives Dec-2014 and this is not the case
i found this maxString({<MonthYear={"=sum(Sales)>0"}>}Sales)
Please try this:
sum({1<MonthYear ={$(=max(MonthYear ))} Sales)
I was thinking of using firstsortedvalue
but could not get any result
sum({<MonthYear ={"$(=max(MonthYear ))"} Sales)
This will give you sales in the last possible MonthYear in the selection.
max(MonthYear) gives Dec-2014 and this is not the case
i found this maxString({<MonthYear={"=sum(Sales)>0"}>}Sales)