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

The Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.

Reply
soderqvistn
Helper I
Helper I

Multilevel matrix

hi,

 

Is it possible to create a matrix like this? Clean with multiple expansions?

 

Skärmbild 2024-12-17 133511.png

1 ACCEPTED SOLUTION
v-heq-msft
Community Support
Community Support

Hi @soderqvistn ,

Thanks for rohit1991 and danextian reply.

You can try the following steps and here is sample data

 

First Level Second Level Category Values Third Level
First Second A VALUES Third
First Second A VALUES Third1
First Second B VALUES Third
First Second B VALUES Third1
First Second C   Third
First Second C   Third1
First Second D   Third
First Second D   Third1
First Second E   Third
First Second E   Third1
First Second F 55 Third
First Second F 88 Third1
First Second G   Third
First Second G   Third1
First Second G   Third

Create a matrix

vheqmsft_0-1734487225198.png

Create a mesure

Icons = 
IF(
    SELECTEDVALUE('Table'[Category]) = "G",
    "data&colon;image/svg+xml;utf8, <svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'> <circle cx='50' cy='50' r='40' stroke='Green' stroke-width='4' fill='green' /> </svg>"
)

Change the mesure data category to Image URL

vheqmsft_1-1734487282757.png

Apply the measure to icon

vheqmsft_2-1734487341854.png

vheqmsft_3-1734487352341.png

Final output

vheqmsft_4-1734487364873.png

 

Best regards,
Albert He


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

3 REPLIES 3
v-heq-msft
Community Support
Community Support

Hi @soderqvistn ,

Thanks for rohit1991 and danextian reply.

You can try the following steps and here is sample data

 

First Level Second Level Category Values Third Level
First Second A VALUES Third
First Second A VALUES Third1
First Second B VALUES Third
First Second B VALUES Third1
First Second C   Third
First Second C   Third1
First Second D   Third
First Second D   Third1
First Second E   Third
First Second E   Third1
First Second F 55 Third
First Second F 88 Third1
First Second G   Third
First Second G   Third1
First Second G   Third

Create a matrix

vheqmsft_0-1734487225198.png

Create a mesure

Icons = 
IF(
    SELECTEDVALUE('Table'[Category]) = "G",
    "data&colon;image/svg+xml;utf8, <svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'> <circle cx='50' cy='50' r='40' stroke='Green' stroke-width='4' fill='green' /> </svg>"
)

Change the mesure data category to Image URL

vheqmsft_1-1734487282757.png

Apply the measure to icon

vheqmsft_2-1734487341854.png

vheqmsft_3-1734487352341.png

Final output

vheqmsft_4-1734487364873.png

 

Best regards,
Albert He


If this post helps, then please consider Accept it as the solution to help the other members find it more quickly

 

 

 

 

rohit1991
Super User
Super User

hi, hope this helps:

 

  1. Use a Matrix Visual:

    • Add hierarchical fields for rows (e.g., First → Second).
    • Values will populate as columns.
  2. Add Conditional Formatting:

    • Use Icons (like green circles) for indicators under your values column.
    • Go to Format > Conditional Formatting > Icons.
  3. Set Expand/Collapse:

    • The Matrix visual supports expandable and collapsible rows by default.

Result: Clean, hierarchical, expandable matrix with visual indicators.

danextian
Super User
Super User

Assuming the second and third are row fields, they will have to be in in their own hierarchy and will be in another row.





Dane Belarmino | Microsoft MVP | Proud to be a Super User!

Did I answer your question? Mark my post as a solution!


"Tell me and I’ll forget; show me and I may remember; involve me and I’ll understand."
Need Power BI consultation, get in touch with me on LinkedIn or hire me on UpWork.
Learn with me on YouTube @DAXJutsu or follow my page on Facebook @DAXJutsuPBI.

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

FebPBI_Carousel

Power BI Monthly Update - February 2025

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

Feb2025 NL Carousel

Fabric Community Update - February 2025

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