cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
tmendoza
Helper III
Helper III

Matrix Visual, How to have dynamic column headers based off of a slicer selection

Hello all,

 

Hoping you could help me out with this brain teaser.

Below are two Matrixes. Utilization by job level and Utilization by Service Line.

The Row field and Value field are the same in both visuals. It's just the Column fields that differ.

I would like to know if there is a way to have one matrix visual that switches between job level and service line as the column headers based off of a slicer.

 

Thank you in advance for any advice you may give!

 

 

 

Utilization by level.PNGUtilization by service line.PNG

1 ACCEPTED SOLUTION

I think I've managed to make this happen.

 

I've started at the query. I've got a data set for each matrix visual that I want and I've unionized them all together.

I've got a column in each query called dynamic Column and Dynamic Row. Even columns called Dynamic row Hierarchy 1 & 2 for the hierarchys. In these Columns I put what I want shown in the column and Row Headers. What separates all these queries from one another is a Column I've included in each data set called Slicer. This column simply has the titles that will be shown in the slicer of the visual in PBI. Each Data set has it's own slicer name. Once I've loaded the dynamic column and row columns into the fields in PBI I insert the slicer column into a slicer visual. Single select "on" and boom! A dynamic matrix. Column headers and rows change with the selection of a slicer.

 

View solution in original post

2 REPLIES 2
dax
Community Support
Community Support

Hi tmendoza,

As I know, we couldn't use measure on column value in Matrix, so we couldn't use slicer to switch it. Ig you want to achieve two visual's switch, I think you could use bookmark. You could refer to Bookmarks and Buttons: Making Power BI Charts Even More Interactive  for details.

Best Regards,
Zoe Zhi

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

I think I've managed to make this happen.

 

I've started at the query. I've got a data set for each matrix visual that I want and I've unionized them all together.

I've got a column in each query called dynamic Column and Dynamic Row. Even columns called Dynamic row Hierarchy 1 & 2 for the hierarchys. In these Columns I put what I want shown in the column and Row Headers. What separates all these queries from one another is a Column I've included in each data set called Slicer. This column simply has the titles that will be shown in the slicer of the visual in PBI. Each Data set has it's own slicer name. Once I've loaded the dynamic column and row columns into the fields in PBI I insert the slicer column into a slicer visual. Single select "on" and boom! A dynamic matrix. Column headers and rows change with the selection of a slicer.

 

View solution in original post

Helpful resources

Announcements
PBI User Groups

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group!

MBAS on Demand

Microsoft Business Applications Summit sessions

On-demand access to all the great content presented by the product teams and community members! #MSBizAppsSummit #CommunityRocks

MBAS Attendee Badge

Claim Your Badge & Digital Swag!

Check out how to claim yours today!

Top Solution Authors
Top Kudoed Authors