Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
Is there a way to optimize this measure?
Solved! Go to Solution.
I looked at this before @Vera_33 posted a reply...
Try this
ItemsSoldRolling12MonthsLastYear =
CALCULATE(
[ItemsSold],
PREVIOUSYEAR(DATE_TABLE[Date]))
)
This requires you have a date table and that it's marked appropriately. Hope this helps!
I looked at this before @Vera_33 posted a reply...
Try this
ItemsSoldRolling12MonthsLastYear =
CALCULATE(
[ItemsSold],
PREVIOUSYEAR(DATE_TABLE[Date]))
)
This requires you have a date table and that it's marked appropriately. Hope this helps!
Hi @peterhui50
How about filtering the Year?
CALCULATE ([Items Sold],FILTER(DATE_TABLE, DATE_TABLE[Year]=YEAR(LASTDATE(DATE_TABLE[Date]))-1))
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
109 | |
98 | |
77 | |
66 | |
54 |
User | Count |
---|---|
144 | |
104 | |
100 | |
86 | |
64 |