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

The Power BI Data Visualization World Championships is back! It's time to submit your entry. Live now!

Reply
Anonymous
Not applicable

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
Anonymous
Not applicable

Hi @Anonymous ,

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
Anonymous
Not applicable

Hi @Anonymous ,

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
Community Champion
Community Champion

@Anonymous 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!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! It's time to submit your entry.

January Power BI Update Carousel

Power BI Monthly Update - January 2026

Check out the January 2026 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.