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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
Anonymous
Not applicable

Matrix table not calculate correct total

amitsaini_0-1607690732752.png

In this we calculate last 12 month sales, but for Dec 2019 we need to get sales from 1st dec 2019 to as according to Current day for example today is 11th dec 2020  (1st dec 2019 to 11 dec 2019) and so on and current year YTD i.e (1st Jan 2020 to Current day ), so for achieving this we create two measure one is calculate for Dec 2019 (1st dec 2019 to 11 dec 2019) only and another one is used to calculate current year YTD and then we combine the both result but after implement this we are not getting correct total, it is used only Dec 2019 sales amount as total value,  as seen in the above screenshot,we need to calculate total for all 12 months data including dec 2019 as well. Kindly help me on this .how can i acheive this ? 

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @Anonymous ,

Please try to create another new measure as below to replace the measure [Net Sales] in matrix:

Measure = SUMX ( VALUES ( 'Table'[Period] ), [Net Sales] )

If it is not working, you can share the applied fields or measure in your matrix and the formula of measure [Net Sales], later we will provide you a suitable solution. Or you can also refer the method in the following links.

Obtaining accurate totals in DAX

Dax for Power BI: Fixing Incorrect Measure Totals

Why Your Total Is Incorrect In Power BI - The Key DAX Concept To Understand

Best Regards

View solution in original post

1 REPLY 1
Anonymous
Not applicable

Hi @Anonymous ,

Please try to create another new measure as below to replace the measure [Net Sales] in matrix:

Measure = SUMX ( VALUES ( 'Table'[Period] ), [Net Sales] )

If it is not working, you can share the applied fields or measure in your matrix and the formula of measure [Net Sales], later we will provide you a suitable solution. Or you can also refer the method in the following links.

Obtaining accurate totals in DAX

Dax for Power BI: Fixing Incorrect Measure Totals

Why Your Total Is Incorrect In Power BI - The Key DAX Concept To Understand

Best Regards

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors