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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

Reply
Anonymous
Not applicable

Why I am getting two values for MTD

I have created the measure to calculate MTD sales.

 

Sales MTD = TOTALMTD([Total Sales],DimDate[Date])

 

With above measure I am getting the following value.

2.PNG 

To check the accuracy I manually filtered the Total Sales value with FactSales Table's date column as follows and I am getting a different value.

1.PNG

Again I filtered manually with Date table's date column and I am getting the measure value.

4.PNG

Please find the attached file herewith.

sample.pbix 

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@Anonymous , Date has a time stamp. I created a new date column. Joined Date of date with it. It  is working fine now.

Date1 = date(year([Date]),month([Date]),day([Date]))

 

Please find the link https://www.dropbox.com/s/2k8fbgz0v9ecv3z/sample%289%29.pbix?dl=0

Join us as experts from around the world come together to shape the future of data and AI!
At the Microsoft Analytics Community Conference, global leaders and influential voices are stepping up to share their knowledge and help you master the latest in Microsoft Fabric, Copilot, and Purview.
️ November 12th-14th, 2024
 Online Event
Register Here

View solution in original post

4 REPLIES 4
Anonymous
Not applicable

@amitchandak 

Thank you for your help.

amitchandak
Super User
Super User

@Anonymous , Date has a time stamp. I created a new date column. Joined Date of date with it. It  is working fine now.

Date1 = date(year([Date]),month([Date]),day([Date]))

 

Please find the link https://www.dropbox.com/s/2k8fbgz0v9ecv3z/sample%289%29.pbix?dl=0

Join us as experts from around the world come together to shape the future of data and AI!
At the Microsoft Analytics Community Conference, global leaders and influential voices are stepping up to share their knowledge and help you master the latest in Microsoft Fabric, Copilot, and Purview.
️ November 12th-14th, 2024
 Online Event
Register Here
amitchandak
Super User
Super User

@Anonymous , I opened the file, I am getting the Same value for both. Please let us know the parameters changed 

 

Screenshot 2020-12-24 11.26.57.png

Join us as experts from around the world come together to shape the future of data and AI!
At the Microsoft Analytics Community Conference, global leaders and influential voices are stepping up to share their knowledge and help you master the latest in Microsoft Fabric, Copilot, and Purview.
️ November 12th-14th, 2024
 Online Event
Register Here
Anonymous
Not applicable

@amitchandak 

Try to filter total sales in visual manually with FactSales[Date] instead of DimDate[Date]

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

Jan NL Carousel

Fabric Community Update - January 2025

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