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.
I'm trying to get the previous month's NAME of a selected date to appear on a card but, I always get an error when I use this:
Solved! Go to Solution.
@Xandman , Try like
calculate(FORMAT(max(DateTable[Date]),"MMMM"),PREVIOUSMONTH(DateTable[Date]))
Try like
SubPreviousMonth = CALCULATE([Total Subs],PREVIOUSMONTH(DateTable[Date]))
2nd SubPreviousMonth = CALCULATE([Total Subs],PREVIOUSMONTH(dateadd(DateTable[Date],-1,month)))
last MTD = CALCULATE([Total Subs],DATESMTD(dateadd('Date'[Date],-1,MONTH)))
@Xandman , Try like
calculate(FORMAT(max(DateTable[Date]),"MMMM"),PREVIOUSMONTH(DateTable[Date]))
Try like
SubPreviousMonth = CALCULATE([Total Subs],PREVIOUSMONTH(DateTable[Date]))
2nd SubPreviousMonth = CALCULATE([Total Subs],PREVIOUSMONTH(dateadd(DateTable[Date],-1,month)))
last MTD = CALCULATE([Total Subs],DATESMTD(dateadd('Date'[Date],-1,MONTH)))
Thank you! I used the same pattern to get the names too.
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 |
---|---|
110 | |
100 | |
80 | |
64 | |
58 |
User | Count |
---|---|
148 | |
111 | |
94 | |
84 | |
67 |