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.
Hello,
I created a measure to get the amount of the previous month with the last date selected in a slicer .
If i want to show 4 last month by level i get this
Level | aout 2022 | sept 2022 | oct 2022 | nov 2022 |
Level 1 | 23 | 24 | 65 | 2 |
Level 2 | 45 | 80 | 764 | 6754 |
.... |
Level | mai 2022 | juin 2022 | juil 2022 | aout 2022 | sept 2022 | oct 2022 | nov 2022 |
Level 1 | 0 | 0 | 0 | 23 | 24 | 65 | 2 |
Level 2 | 0 | 0 | 0 | 45 | 80 | 764 | 6754 |
.... |
@Datavizuserpbi Try:
Last n month =
var y=MAX(DateTable[Date])
return CALCULATE([Amount],DATESBETWEEN(Datetable[Date],EOMONTH(y,-12),y)) + 0
Hello, I tried but it's not working
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 |