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
robinsab
New Member

Count same text string from multiple columns

Hello,

 

I have a table with mutiple columns containing the same menu of text values. I want to count the total across all of these columns of how many times each value is has been entered. These values are reasons for not checking a certain box within a form so all the rows are a different date of a submission and each check box has its own column that is either blank or contains one of the values from the text options. So basically I want to know how many times (across all check boxes and all submissions) that each exuse for not checking the box has been used. I have tried mannnny different combination of demands and cant seem to get it to count correctly. Any help is really appreciated!

 

Thank you!

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @robinsab ,

 

Based on your description, it is possible that your goal can be achieved with a simple data transformation, and I have created the following data:

vtianyichmsft_6-1697695486056.png

Option A、Option B、Option C  for your checkbox and Fine、Bad、Pretty for your checkbox answer.

First, unpivot Option A、Option B、Option C  three columns like this:

vtianyichmsft_7-1697695532818.png

Then group by Value:

vtianyichmsft_5-1697695422677.png

Please feel free to correct me and provide more information if I have misunderstood you!

 

An attachment for your reference. Hope it helps!

 

Best regards,
Community Support Team_ Scott Chang

 

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 @robinsab ,

 

Based on your description, it is possible that your goal can be achieved with a simple data transformation, and I have created the following data:

vtianyichmsft_6-1697695486056.png

Option A、Option B、Option C  for your checkbox and Fine、Bad、Pretty for your checkbox answer.

First, unpivot Option A、Option B、Option C  three columns like this:

vtianyichmsft_7-1697695532818.png

Then group by Value:

vtianyichmsft_5-1697695422677.png

Please feel free to correct me and provide more information if I have misunderstood you!

 

An attachment for your reference. Hope it helps!

 

Best regards,
Community Support Team_ Scott Chang

 

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

@robinsab So typically you would unpivot those columns and then it becomes a trivial problem to solve. Otherwise, you need to use something like MC Aggregations: Multi-Column Aggregations (MC Aggregations) - Microsoft Fabric Community



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
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

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