Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more
I have a measure in which I would to find the quantity for the latest week.
Wanted to do it like this but placeholder error:
My MaxWeek :
But now I want the Qty belonging to MaxWeek and Maxweek -1
Because I want to see the change between the last week and the week before.
What am I doing wrong? Or is there a better way?
Solved! Go to Solution.
Try
BO Current =
VAR MaxWeek = [Max week]
RETURN
CALCULATE ( [BO Tot Qty], 'Dim date'[Week nr (ISO)] = MaxWeek )
If your data spans multiple years you may also want to filter on the year.
Try
BO Current =
VAR MaxWeek = [Max week]
RETURN
CALCULATE ( [BO Tot Qty], 'Dim date'[Week nr (ISO)] = MaxWeek )
If your data spans multiple years you may also want to filter on the year.
Superb! @johnt75
Works like a charm 😄 (also indeed put in a year filter)
So guess you cannot directly reference the measure but putting it in a variable solves this 🙂
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
Check out the October 2025 Power BI update to learn about new features.