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.
hi there,
I would like to compare YTD against last year YTD. I created 2 measures as below, however, when I selected the current year in slicer, the last year YTD become blank. How to solve this, thanks
sales = CALCULATE(SUM(Sheet1[amount]),DATESYTD(Sheet1[data]))
LY sales = CALCULATE([sales],SAMEPERIODLASTYEAR(Sheet1[data]))
Data model as below
Best regards,
ER
Solved! Go to Solution.
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 |
---|---|
115 | |
100 | |
88 | |
70 | |
61 |
User | Count |
---|---|
151 | |
120 | |
103 | |
87 | |
68 |