Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hello,
I am trying to sum sales for a year based on the Year list box using the following expression.
sum({$<Year = {$(=max(Year))}>} (MainAmount))
The issue is I am losing the annual sales sum when I select a month from the Month list box. Other than the Year list box, I don't want any other time dimension to effect summing for the year.
Thank you in advance for any help with this issue.
You ignore Month and other dimensions from the expression.
sum({$<Month=,Date=,Year = {$(=max(Year))}>} (MainAmount))
You ignore Month and other dimensions from the expression.
sum({$<Month=,Date=,Year = {$(=max(Year))}>} (MainAmount))
Try this
sum({<Year = {$(=max(Year))},MonthField=,Datefield=>} MainAmount)
SUM({$<
Year = {'$(=Max(Year))'},
Field1YouWantToIngore = ,
Field2YouWantToIngore = ,
Field3YouWantToIngore =
>}Amount)
perhaps this can helps you
Ignore all selections except some specific fields using Set Analysis
Thank you all for your help!