Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
langwj
Frequent Visitor

MoM Data shows with Date hierarchy slicer, but not on the original slicer

Hello, 

I made a page to get a information of sales count with a Date Slicer.

 

If a slicer is configured with Date Level(Hierarchy), it works pretty well with MoM position, thigs using Time Intelligence. 

langwj_0-1675825279164.png  

langwj_1-1675825287897.png

langwj_2-1675825317864.png

 

But When I made another slicer with original slicer without using level, the figure doesn;t match.

 

langwj_3-1675825370625.png

 

langwj_4-1675825381369.png

 

Simple count such as jusst counting the Sales of the Month, they get right.

but the logic I made to get a PREVIOUS MONTH's sales, the slicer doesn't work.

 

Do you have any solution for this?

 

I followed Power BI Given Logic to get the sales data such as MoM, YoY

2 REPLIES 2
amitchandak
Super User
Super User

@langwj , Try measures like these for MOM 

 

 

MTD Sales = CALCULATE(SUM(Sales[Sales Amount]),DATESMTD('Date'[Date]))
last MTD Sales = CALCULATE(SUM(Sales[Sales Amount]),DATESMTD(dateadd('Date'[Date],-1,MONTH)))
last month Sales = CALCULATE(SUM(Sales[Sales Amount]),previousmonth('Date'[Date]))
MTD Sales = CALCULATE(SUM(Sales[Sales Amount]),DATESMTD('Date'[Date]))
last MTD Sales = CALCULATE(SUM(Sales[Sales Amount]),DATESMTD(dateadd('Date'[Date],-1,MONTH)))
last month Sales = CALCULATE(SUM(Sales[Sales Amount]),previousmonth('Date'[Date]))

 

Time Intelligence, Part of learn Power BI https://youtu.be/cN8AO3_vmlY?t=27510
Time Intelligence, DATESMTD, DATESQTD, DATESYTD, Week On Week, Week Till Date, Custom Period on Period,
Custom Period till date: https://youtu.be/aU2aKbnHuWs&t=145s

Hello, thank you for the answer but the measures you suggested doesn't work
WHat is different between below three measure?

MTD Sales
last MTD Sales
last month Sales

How should I get the final MOM measure from those three?

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.

Top Solution Authors