Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Sum(If(YYYYMM=Max(total {<[Amount]={"=Len(trim([Amount] ))>0"}>} YYYYMM), Amount,
If(mod(MonthNum,3)=0 , Amount)))/Count(distinct TOTAL [item])
I have this expression and is used in chart that works fine. I have a list box with “Date” and I want the above expression should be independent of “Date” selection
I’m struggling to include ({$<[Date]= >} in the above expression so that the expression will be independent of “Date” selection. Please can someone help me in writing the correct set expression . Thank you,
Ramya
Try incorporating the date selection ignorance (using set) in all the aggregation functions, like:
Sum( {<Date>} If(YYYYMM=Max(total {<Date, [Amount]={"=Len(trim([Amount] ))>0"}>} YYYYMM), Amount,
If(mod(MonthNum,3)=0 , Amount)))/Count(distinct TOTAL {<Date>} [item])
May be?
Sum(If(YYYYMM=Max(total {<[Amount]={"=Len(trim([Amount] ))>0"}, Date = {'*'}>} YYYYMM), Amount,
If(mod(MonthNum,3)=0 , Amount)))/Count(distinct TOTAL [item])
Try incorporating the date selection ignorance (using set) in all the aggregation functions, like:
Sum( {<Date>} If(YYYYMM=Max(total {<Date, [Amount]={"=Len(trim([Amount] ))>0"}>} YYYYMM), Amount,
If(mod(MonthNum,3)=0 , Amount)))/Count(distinct TOTAL {<Date>} [item])
Try with
Sum(If(YYYYMM=Max(total {<[Amount]={"=Len(trim([Amount] ))>0"},DateField=>} YYYYMM), Amount,
If(mod(MonthNum,3)=0 , Amount)))/Count(distinct TOTAL [item])
It worked. Thank you Tesesco.
Thank you for the response Anand.
Thank you for the response Varun.