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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
Merleau
Helper II
Helper II

Total string column in table report

Hello,

I have more than 15 columns in my "table" reoprt with text values and I would like the "Total" row to show their sum. As this:

IDXYYZYTTTCount
1 XY YTTT3
2 XYYZYT 3
3  YTTT2
Total21328

 

Using option count just replaced the text with "1" but I would like the text to remain and have the total at the bottom. Can you somebody pls help?

Thanks

7 REPLIES 7
talespin
Solution Sage
Solution Sage

Hi @Merleau ,

 

At present only way I can think of is by creating measure for each column.

Measure for column TT = 

IF( HASONEFILTER(TestTable3[TT]) , SELECTEDVALUE(TestTable3[TT]), SUMX(TestTable3, IF( ISBLANK(TestTable3[TT]) || TestTable3[TT] = "", 0 , 1)))
 

talespin_0-1706508921844.png

 

wdrain
Helper I
Helper I

Was there ever a solution for this ?

Alty
New Member

you may try this

Measure = if(HASONEVALUE('table'[col]),max('table'[col]),count('table'[col]))

 

max of column with one value will return the col value itself and for totals, it will show count. Hope this helps.

vishnu_51
New Member

hey @Greg_Deckler

I have a similar issue i referred the following links and could'nt come up with a solution. can you please help me regarding this.

Greg_Deckler
Community Champion
Community Champion

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, this might help as well. https://community.powerbi.com/t5/Quick-Measures-Gallery/Matrix-Measure-Total-Triple-Threat-Rock-amp-...



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...

Thank you Greg for the quick response.

I read the different links.

I will try to apply it but I am not sure how I can do that with my 20+ columns with text values that need a Total.

Thanks again

did you find the solution @Merleau 

Helpful resources

Announcements
July PBI25 Carousel

Power BI Monthly Update - July 2025

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

Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 community update carousel

Fabric Community Update - June 2025

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