Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
i am stuck here for calculating data
From last 24 months have to check data with first 6 months and
for last 6 months based on a date column in format(YYYYMMDD) to first 18 months.
Can you anyone please suggest.
Thank you for your help sunny and youusef.
i got it
The below will work for last 6 months.
Create 2 variables vMaxMonthYear = max(MonthYear)
and vMaxMonthYear_6= AddMonths($(vMaxeApplyMonthYear),-6)
where MonthYear has the following format in script MonthStart(YourDate) as MonthYear
Your measure expression should be as below :
Sum({<MonthYear={"<=$(=$(vMaxMonthYear)) >=$(=$(vMaxMonthYear_6))" }>}MeasureName)