Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi All
Below expression return current month sales correctly :-
Sum(Aggr(SUM({
<
year = {$(=only(year))},
Month = {"<=$(=max(Month))"},
rEVENUE={rEVENUE}
>
}Amount*1)/$(Columndim89)/1000, $(ColumnDim101)))
I modify the above exoression to get the last month revenue as below :-
Sum(Aggr(SUM({
<
year = {$(=only(year))},
Month = {"<=$(=max(Month)-1)"},
rEVENUE={rEVENUE}
>
}Amount*1)/$(Columndim89)/1000, $(ColumnDim101)))
I get null value , can some one advise me where i go wrong ?
Paul
Try this:
Sum(Aggr(SUM({
<
year = {$(=only(year))},
Month = {"<=$(=max(Month)-1)"}, month, year,
rEVENUE={rEVENUE}
>
}Amount*1)/$(Columndim89)/1000, $(ColumnDim101)))
my qv doc
Try this:
Sum(Aggr(SUM({
<
year = {$(=only(year))},
Month = {"<=$(=max(Month)-1)"}, month, year,
rEVENUE={rEVENUE}
>
}Amount*1)/$(Columndim89)/1000, $(ColumnDim101)))
Hi Sunny
Thank you very much for your advise again. But i try your expression return 3374 , how to make it display 947 ? Same as Table 2
Paul