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
Hyperchef1969
Helper V
Helper V

Total column not showing correct value in measurement

Hyperchef1969_0-1710420486301.png

Hi,

 

Column totals are showing the last filled value in the row instead of the row total in the table. What is causing this?

Table shows the values (in this case) or percentages switched by a bookmark

 

Measure_selection lines =
SWITCH( UPPER(SELECTEDVALUE(Slicer_table[Key])),
"YTD_OTAE",[YTD_inbound_lines_in_time_or_early],
"YTD_OT",[YTD_inbound_lines_in_time],
"YTD_E",[YTD_inbound_lines_early],
"YTD_L",[YTD_inbound_lines_late],
"MTD_OTAE",[MTD_inbound_lines_in_time_or_early],
"MTD_OT",[MTD_inbound_lines_in_time],
"MTD_E",[MTD_inbound_lines_early],
"MTD_L",[MTD_inbound_lines_late],
"RT_OTAE",[Running_total_on_time_and_early],
"RT_OT",[Running_total_on_time],
"RT_E",[Running_total_early],
"RT_L",[Running_total_late],
BLANK()
)

 

1 ACCEPTED SOLUTION
v-jiewu-msft
Community Support
Community Support

Hi @Hyperchef1969 ,

Please try the following methods and check if they can solve your problem:

1.Create the simple table1.

vjiewumsft_0-1710838140515.png

2.Create the new measure to calculate row totals.

 

Total = SUMX('Table 1', SUM('Table 1'[2023/10]) + SUM('Table 1'[2023/11]) + SUM('Table 1'[2023/12]) + SUM('Table 1'[2024/01]) + SUM('Table 1'[2024/02]))

 

3.Drag the measure into the table visual. The result is shown below.

vjiewumsft_1-1710838186032.png

 

Best Regards,

Wisdom Wu

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

2 REPLIES 2
v-jiewu-msft
Community Support
Community Support

Hi @Hyperchef1969 ,

Please try the following methods and check if they can solve your problem:

1.Create the simple table1.

vjiewumsft_0-1710838140515.png

2.Create the new measure to calculate row totals.

 

Total = SUMX('Table 1', SUM('Table 1'[2023/10]) + SUM('Table 1'[2023/11]) + SUM('Table 1'[2023/12]) + SUM('Table 1'[2024/01]) + SUM('Table 1'[2024/02]))

 

3.Drag the measure into the table visual. The result is shown below.

vjiewumsft_1-1710838186032.png

 

Best Regards,

Wisdom Wu

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Greg_Deckler
Super User
Super User

@Hyperchef1969 First, please vote for this idea: https://ideas.powerbi.com/ideas/idea/?ideaid=082203f1-594f-4ba7-ac87-bb91096c742e

This looks like a measure totals problem. Very common. See my post about it here: https://community.powerbi.com/t5/DAX-Commands-and-Tips/Dealing-with-Measure-Totals/td-p/63376

Also, this Quick Measure, Measure Totals, The Final Word should get you what you need:
https://community.powerbi.com/t5/Quick-Measures-Gallery/Measure-Totals-The-Final-Word/m-p/547907

Also: https://youtu.be/uXRriTN0cfY
And: https://youtu.be/n4TYhF2ARe8



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
Power BI Cookbook Third Edition (Color)

DAX is easy, CALCULATE makes DAX hard...

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.