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

The Power BI Data Visualization World Championships is back! It's time to submit your entry. Live now!

Reply
LarryFisherman
Frequent Visitor

Matrix with same rows and columns

Hi,

 

I am trying to create below visual, but I can't seem to make it work with either a table or a Matrix:

The columns and rows are the same, and the number is the count of cases in each category. A case can have more than 1 category.

 

 Category 1Category 2Category 3Category 4Category 5
Category 116335
Category 282713
Category 353344
Category 451252
Category 531399

 

My data looks like this:

 

Case IDCategory
1Category 1
1Category 2
1Category 3
1Category 4
2Category 4
2Category 3
3Category 2
3Category 1
4Category 2
4Category 1

 

How do I achieve this in Power BI?

 

Thanks in advance,

3 REPLIES 3
HotChilli
Community Champion
Community Champion

Let's keep it simple.  The original data and the desired result should reflect each other (with an explanation of how to get from one to the other).

So let's start with the sample data. What would the end result be and how do we get there?

HotChilli
Community Champion
Community Champion

Can you provide the source data for this end result please?

Hi, I have updated the post with some sample data.

 

Thanks for pointing out.

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! It's time to submit your entry.

January Power BI Update Carousel

Power BI Monthly Update - January 2026

Check out the January 2026 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.