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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Syndicate_Admin
Administrator
Administrator

Create report together for columns with equal strings

Hi, I hope you can help me.
I have in my project, several columns whose data only contain the same type of string: always, almost always, rarely, never. I want to create a donut or pie chart that combines and I see the number of times they appear in all columns for a single column I get like this.

rodlj_0-1683580343634.png

And when I drag the other columns it comes out like this

rodlj_1-1683580458728.png

I wonder if there is any way I can combine the results of all the columns so that instead of for example dividing me into 7 and 7 those of "always", I get 14

3 REPLIES 3
Ashish_Mathur
Super User
Super User

Hi,

Not sure of what you want or what your data looks like but i think you should use the "Unpivot Other Columns" feature in the Query Editor.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/
olgad
Super User
Super User

Suppose you have a table like that named Table

olgad_0-1683584015339.png
You shall create a table with statuses named Status

olgad_1-1683584054396.png

 

Create a relationship to Column1 and then inactive relationship to Column 2

Measure = Calculate(Count('Table'[Column2]), USERELATIONSHIP('status'[Column1], 'Table'[Column2]))+Count('Table'[Column1])
olgad_2-1683584134701.png

 




DID I ANSWER YOUR QUESTION? PLEASE MARK MY POST AS A SOLUTION! APPRECIATE YOUR KUDO/LIKE!
PROUD TO BE A SUPER USER!
Best Stories, Interesting Cases: PowerBI Storytime Newsletter
Linkedin Profile: Linkedin
YouTube Channel: PowerBI Storytime
olgad
Super User
Super User

are those statuses a separate field in another table? what is the relationship? could you please just show a few lines of your data? it look like you take column 1 with those statuses , do the count and then put the count of column 2..How many columns in total you have, 2?


DID I ANSWER YOUR QUESTION? PLEASE MARK MY POST AS A SOLUTION! APPRECIATE YOUR KUDO/LIKE!
PROUD TO BE A SUPER USER!
Best Stories, Interesting Cases: PowerBI Storytime Newsletter
Linkedin Profile: Linkedin
YouTube Channel: PowerBI Storytime

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.