Get certified for free when you join Fabric Data Days 2026 and dive into Fabric, Power BI, SQL, AI, and other essential data skills.
Join nowJuly 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more
Hello,
I am trying to sum like values from different columns across multiple records. I can't seem to figure out to how to get them to sum all together.
Here is an example data set:
Record ID Category #1 Category #2 Category #3 Category #4 Record Count
| 1 | A | B | 1 | ||
| 2 | B | 1 | |||
| 3 | B | D | F | 1 | |
| 4 | B | B | 1 | ||
| 5 | C | 1 | |||
| 6 | C | E | 1 | ||
| 7 | C | E | E | 1 | |
| 8 | C | B | C | C | 1 |
| 9 | C | C | C | B | 1 |
| 10 | C | F | 1 |
What I am trying to do in PowerBI is return a value that displays the sum total like so:
A = 1
B = 7
C = 10
I would like this displayed in a graph if possible as well. Any help would be appreciated.
Solved! Go to Solution.
One option would be to unpivot your Category columns using the Power Query Editor
This will take your table that currently looks like this:
And turn it into this:
You can now create a visual and simply drop the "Value" column (or whatever you end up naming it) into both the Axis (or legend) and Value fields (Count of Value). Finally, just filter the visual to not include records where the value is blank.
One option would be to unpivot your Category columns using the Power Query Editor
This will take your table that currently looks like this:
And turn it into this:
You can now create a visual and simply drop the "Value" column (or whatever you end up naming it) into both the Axis (or legend) and Value fields (Count of Value). Finally, just filter the visual to not include records where the value is blank.
Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.
Join Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.
| User | Count |
|---|---|
| 29 | |
| 27 | |
| 26 | |
| 23 | |
| 16 |
| User | Count |
|---|---|
| 53 | |
| 46 | |
| 38 | |
| 29 | |
| 21 |