Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more
Hi,
i am using the below for previousmonth calculation, but result is always blank.
Syntax:
Solved! Go to Solution.
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 🙂
This is because of the date hierarchy.
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/
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 🙂
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
Check out the October 2025 Power BI update to learn about new features.