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.
Solved! Go to Solution.
Try add a year filter in your measure:
SalesYTD till last week =
VAR Maxweek = CALCULATE(MAX('Calendar'[Day of Year]), ALL('Calendar'), 'Calendar'[CurWeekOffset] = -1)
RETURN CALCULATE([Total sales], 'Calendar'[Day of Year] <= Maxweek,'Calendar'[Date].[Year]=MAX([Date].[Year]))
Paul Zheng _ Community Support Team
If this post helps, please Accept it as the solution to help the other members find it more quickly.
Try add a year filter in your measure:
SalesYTD till last week =
VAR Maxweek = CALCULATE(MAX('Calendar'[Day of Year]), ALL('Calendar'), 'Calendar'[CurWeekOffset] = -1)
RETURN CALCULATE([Total sales], 'Calendar'[Day of Year] <= Maxweek,'Calendar'[Date].[Year]=MAX([Date].[Year]))
Paul Zheng _ Community Support Team
If this post helps, please Accept it as the solution to help the other members find it more quickly.
@tabish , refer if my week blog can help
Power BI — Week on Week and WTD
https://medium.com/@amitchandak.1978/power-bi-wtd-questions-time-intelligence-4-5-98c30fab69d3
https://community.powerbi.com/t5/Community-Blog/Week-Is-Not-So-Weak-WTD-Last-WTD-and-This-Week-vs-La...
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 |
---|---|
112 | |
97 | |
85 | |
67 | |
59 |
User | Count |
---|---|
150 | |
120 | |
100 | |
87 | |
68 |