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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

Reply
anupampandey
Helper III
Helper III

MTD calculation values not coming correctly

Hi,

 

I am facing a simple problem (probably) which I am unable to resolve.

Problem is while computing the MTD values totals are matching. Below is the screen shot. 

Formula : MTD = TOTALMTD(SUM(COMM_YTD[CALC_RET_COMM]),DATESMTD('Calendar'[DateKey].[Date]))

 

The same method I have used earlier which is working perfectly this time I don't know what happened.

 

MTD_ERROR.PNG

 

 

 

 

 

 

 

 

 

 

 

 

Please help me on this.

4 REPLIES 4
mattbrice
Solution Sage
Solution Sage

My only comment is that using both TOTALMTD and DATESMTD is redundant.  Should either do:

 

MTD = TOTALMTD(SUM(COMM_YTD[CALC_RET_COMM]), Calendar[Date] )  

 

or

 

MTD = CALCULATE(  SUM(COMM_YTD[CALC_RET_COMM]), DATESMTD (Calendar[Date] ) )

Hi, I have used what you suggested still not getting the desired result. Thanks, Anupam

Hi @mattbrice

 

This PBIX file has two versions of the formula that work.

 

https://wgtnpowerbi-my.sharepoint.com/personal/phil_wgtnpowerbi_onmicrosoft_com/_layouts/15/guestacc...

 

Download and have a play to see if it helps.

 

Cheers,

 

 


To learn more about DAX visit : aka.ms/practicalDAX

Proud to be a Datanaut!

anupampandey
Helper III
Helper III

Hi,

 

I am facing a simple problem (probably) which I am unable to resolve.

Problem is while computing the MTD values totals are matching. Below is the screen shot. 

Formula : MTD = TOTALMTD(SUM(COMM_YTD[CALC_RET_COMM]),DATESMTD('Calendar'[DateKey].[Date]))

 

The same method I have used earlier which is working perfectly this time I don't know what happened.

 

MTD_ERROR.PNG

 

 

 

 

 

 

 

 

 

 

 

 

Please help me on this.

Helpful resources

Announcements
Fabcon_Europe_Social_Bogo

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

Power BI Carousel June 2024

Power BI Monthly Update - June 2024

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

PBI_Carousel_NL_June

Fabric Community Update - June 2024

Get the latest Fabric updates from Build 2024, key Skills Challenge voucher deadlines, top blogs, forum posts, and product ideas.

RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.