Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
2 years ago

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

  • HotChilli's avatar
    HotChilli
    Community Champion

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

    • Anonymous's avatar
      Anonymous
      Not applicable

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

       

      Thanks for pointing out.

  • HotChilli's avatar
    HotChilli
    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?