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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
Florie
Helper I
Helper I

Creating a drill down using a matrix?

Hi. I'm trying to create a visual to show for each person ID their addresses so it looks something like this (excel example): 

Florie_0-1749638773894.png

So a user can click on the person ID and the addresses appear. I'm sure it's simple to do but I can't figure out what visual to use. I think it's a matrix but can't work out what to do. Thank you!

1 ACCEPTED SOLUTION
Nasif_Azam
Super User
Super User

Hey @Florie ,

Yes, you're absolutely right a Matrix visual in Power BI is the perfect way to replicate this kind of expandable structure where users can drill down from Person ID to Placement ID and see details like address and dates.

Here’s how to do it:

Create a Drill Down Matrix in Power BI

1. Load Your Data

Ensure your Excel data is imported into Power BI. The data should be in a tabular format with headers like:

  • Person ID
  • Placement ID
  • Address
  • Placement Start Date
  • Placement End Date

If Address is split across columns, consider merging them in Power Query (Transform Data).

2. Insert a Matrix Visual

  1. In Power BI Desktop, go to the Visualizations pane.

  2. Select the Matrix visual (it looks like a grid).

3. Set Up Hierarchy

Drag the following fields into the Rows section in this order:

  • Person ID
  • Placement ID
  • Address (optional)

Then drag the following into the Values section:

  • Placement Start Date
  • Placement End Date

This will allow the matrix to group by Person ID, and when expanded, show the placement details.

4. Enable Drill Down

Make sure:

  • The row headers have the small expand/collapse (+/-) icons.

  • You enable drill mode (a downward arrow icon above the matrix) if you want to use clickable drill-through.

5. Format the Matrix (Optional but Recommended)

  • Turn on Stepped Layout (or off, if you prefer indentation).

  • Adjust word wrap for long addresses.

  • Use conditional formatting or row styles for visual clarity.

 

Things to remember

  • If you want a cleaner layout, you can combine Address with Placement ID in Power Query or a DAX calculated column.

  • If a placement has multiple addresses or overlapping dates, ensure your data model handles it appropriately.

 

If you found this solution helpful, please consider accepting it and giving it a kudos (Like) it’s greatly appreciated and helps others find the solution more easily.


Best Regards,
Nasif Azam



Did I answer your question?
If so, mark my post as a solution!
Also consider helping someone else in the forums!

Proud to be a Super User!


LinkedIn

View solution in original post

4 REPLIES 4
Nasif_Azam
Super User
Super User

Hey @Florie ,

Yes, you're absolutely right a Matrix visual in Power BI is the perfect way to replicate this kind of expandable structure where users can drill down from Person ID to Placement ID and see details like address and dates.

Here’s how to do it:

Create a Drill Down Matrix in Power BI

1. Load Your Data

Ensure your Excel data is imported into Power BI. The data should be in a tabular format with headers like:

  • Person ID
  • Placement ID
  • Address
  • Placement Start Date
  • Placement End Date

If Address is split across columns, consider merging them in Power Query (Transform Data).

2. Insert a Matrix Visual

  1. In Power BI Desktop, go to the Visualizations pane.

  2. Select the Matrix visual (it looks like a grid).

3. Set Up Hierarchy

Drag the following fields into the Rows section in this order:

  • Person ID
  • Placement ID
  • Address (optional)

Then drag the following into the Values section:

  • Placement Start Date
  • Placement End Date

This will allow the matrix to group by Person ID, and when expanded, show the placement details.

4. Enable Drill Down

Make sure:

  • The row headers have the small expand/collapse (+/-) icons.

  • You enable drill mode (a downward arrow icon above the matrix) if you want to use clickable drill-through.

5. Format the Matrix (Optional but Recommended)

  • Turn on Stepped Layout (or off, if you prefer indentation).

  • Adjust word wrap for long addresses.

  • Use conditional formatting or row styles for visual clarity.

 

Things to remember

  • If you want a cleaner layout, you can combine Address with Placement ID in Power Query or a DAX calculated column.

  • If a placement has multiple addresses or overlapping dates, ensure your data model handles it appropriately.

 

If you found this solution helpful, please consider accepting it and giving it a kudos (Like) it’s greatly appreciated and helps others find the solution more easily.


Best Regards,
Nasif Azam



Did I answer your question?
If so, mark my post as a solution!
Also consider helping someone else in the forums!

Proud to be a Super User!


LinkedIn
Florie
Helper I
Helper I

Thank you. The +/- icon is toggled on but I can't work out how to set-up the visual for the data to appear as I'd like it to. This is how it looks at the moment. The address doesn't show but there is an address in the total row. I don't know how to lay it out in the Build section?

Florie_0-1749640509000.png

Many thanks

Have you created a measure to display the address or this is simply the field? If meausre, please provide the code. If it's a field, please right click on it in the Build panel and see if there is any aggregation selected.

andrewsommer
Super User
Super User

Yes, you would use the Matrix visual and you will need to go to Format Your Visual > Row Headers > +/_ Icons and toggle them on

andrewsommer_0-1749639282517.png

 

Please mark this post as a solution if it helps you. Appreciate Kudos.

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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.

Top Solution Authors
Top Kudoed Authors