Forum Discussion
Previousmonth calculation showing blank
- 6 years ago
PreviousMonth = CALCULATE ( SUM ( 'Monthly Speed - All Operators b'[Download Speed Mbps] ), PREVIOUSMONTH ( 'Monthly Speed - All Operators b'[Aggregate Date].[Date] ) )
Did I answer your question? Mark my post as a solution!
Appreciate with a kudos 🙂
thanks you nandu, but it worked now, but i noticed that aggregate date format inside matrix changed.= and not showing year/month any more.
is there a way to handle this and keep the format as it is?
HusseinKhalil , best way is use date table for this
PreviousMonth = CALCULATE(SUM('Monthly Speed - All Operators b'[Download Speed Mbps]),PREVIOUSMONTH('Date'[Date]))
To get the best of the time intelligence function. Make sure you have a date calendar and it has been marked as the date in model view. Also, join it with the date column of your fact/s. Refer :
https://radacad.com/creating-calendar-table-in-power-bi-using-dax-functions
https://www.archerpoint.com/blog/Posts/creating-date-table-power-bi
https://www.sqlbi.com/articles/creating-a-simple-date-table-in-dax/