Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
hi, my problem in when i select year=2014 and month=1, i want to get saleQty in year=2013 and month=1(last year current month saleQty). pls help
Check enclosed file...
SUM({<Year = {'$(=Max(Year)-1)'}>}saleQty)
thanks manish. I missed the Max(). why we use Max() for that?
In case if you have selected 2 or 3 years at a time, we need to tell set analysis that the calculation need to be based on Max Year from the selected.
hi, the result is same as 2014. it s not changing to 2013
No manish, i m only selecting one year at a time. then i want to get last year saleQty
Hi,
If you have date dimension then try like this
=Sum({<YearDimensionName=, QuarterDimensionName=, MonthDimensionName=,
DateDimensionName={'>=$(=MonthStart(Max(DateDimensionName), -12))<=$(=MonthEnd(Max(DateDimensionName), -12))'}>} Sales)
Regards,
jagan.
Hi jagan, I only have year and month. for an example when i select year=2014 and month=1, i want to get saleQty in year=2013 and month=1(last year current month saleQty). my fields are year, month, saleQty
Check enclosed file...
thanks both of u