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!Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
I have created MOM% DAX measure and used it in a table visual to see % change in sales. How can I make sure it only calculates when current month sales is present?
In my case I don't want to see MOM% April month in the table. How can I achieve that?
Solved! Go to Solution.
Hi,
Please try something like below whether it suits your requirement.
MoM% =
VAR __PREV_MONTH =
CALCULATE (
[Total Sales],
DATEADD ( 'WalmartSQL repository'[dtme].[Date], -1, MONTH )
)
RETURN
IF ( [Total Sales], DIVIDE ( [Total Sales] - __PREV_MONTH, __PREV_MONTH ) )
Hi,
Please try something like below whether it suits your requirement.
MoM% =
VAR __PREV_MONTH =
CALCULATE (
[Total Sales],
DATEADD ( 'WalmartSQL repository'[dtme].[Date], -1, MONTH )
)
RETURN
IF ( [Total Sales], DIVIDE ( [Total Sales] - __PREV_MONTH, __PREV_MONTH ) )
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
| User | Count |
|---|---|
| 103 | |
| 81 | |
| 66 | |
| 50 | |
| 45 |