Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi Guys,
I post an expression regarding sum of sales for Current selection and Previous selection of Year..Is that correct expression??
Try as below
SUM({<Year = {'$(=Max(Year))'}>}Sales) For Current Year
SUM({<Year = {'$(=Max(Year)-1)'}>}Sales) For Last Year
Let us know what you want to get as a result?
If you want sales for last two year, use as below
=SUM({<Year = {'>=$(=Max(Year)-1)<=$(=Max(Year)) '}>}Sales)
you want a sum of this year + last year?
Hi,
Sum({$<year = {'$(=Year)', '$(=(Year - 1))'}>} Sales)
do you mean max year and previous?
=sum({$<Year={$(=max(Year)),$(=max(Year)-1)}>} Sales)
Hi Rajesh,
Use your SET script like below script
=Sum({$<YourYearField = {'$(=Max(YourYearField))' , '$(=Max(YourYearField)-1)' } >}Sales)
Hi
Did you try
sum ({$<Year={$(#=Only(Year))}, Year={$(#=Only(Year)-1)}>}Sales)
Thanks!
Yes I want Current and Last year
There are so many answers given.
Isn't there any which is solving your problem?
No But Here # Represents what??