Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
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 July 2025 Power BI update to learn about new features.
User | Count |
---|---|
71 | |
70 | |
38 | |
26 | |
26 |
User | Count |
---|---|
100 | |
87 | |
45 | |
43 | |
35 |