Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.
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 🙂
Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!
Check out the September 2025 Power BI update to learn about new features.