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

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

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
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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.