Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
I am using set Analysis trying to get the data of 12 months rolling but till last months only ,
my code
Count (DISTINCT {<Year={'$(=max(Year))'}, Month={"$(=month(date#(max({<Year={'$(=max(Year))'}>}Month)-1,'MM')))"}>} [user])
Try this:
Count (DISTINCT {<Year, Month, MonthYear = {"$(='>=' & Date(AddMonths(Max(MonthYear), -12),'YYYY-MMM') & '<' & Date(Max(MonthYear),'YYYY-MMM'))"}>} [user])
Thanks Sunny