Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi ,
I have week field it contains weeks till 35 (like 1,2,....35),but now i am displaying week as dimension and sum(sales) as measure.
i want restrict only for last 8 weeks always.How can i define in bar chart .
Thanks,
Kanna
Try this?
Sum({<Week = {">=$(=Max(Week-8)) <=$(=Max(Week))"}>} Sales)
Create a numeric Week field if you don't have already and use the numeric value to restrict last 8 weeks in set expression
=Sum({<Week = {">=$(=Max(Week)-8)"}>} Sales)
or
=Sum({<Week = {">=$(=Max(TOTAL Week)-8)"}>} Sales)