Hi Guys,I create a calendar table, created a relationship with the data and used:
Go to Solution.
[Total Data] = SUM('Data Export'[Data])
LY Number =
var __lastDate =
max( FactTable[Date] ),
var __currentPeriodAdjusted =
VALUES( Dates[Date] ),
Dates[Date] <= __lastDate
var __result =
View solution in original post
Perhaps check out one of the other time intelligence functions, you may find one that is suitable. Or, See if my Time Intelligence the Hard Way provides a different way of accomplishing what you are going for.https://community.powerbi.com/t5/Quick-Measures-Gallery/Time-Intelligence-quot-The-Hard-Way-quot-TIT...
Click here to read more about the December 2021 Updates!
Don't miss the User Group Leader meetings on January, 24th & 25th, 2022.
Mark your calendars and join us for our next Power BI Dev Camp!