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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
Anonymous
Not applicable

Matrix visual and measures

Hi everyone ! 

I am having some issues while trying to create a matrix visual. Since it's not possible to create a hierarchy with measures I can't disply the matrix the way I want.
I don't want the measures related to another team to be shown in the column. I've divided my visual into 2 matrix to explain what I'm looking for. Here's a screenshot to make things clrearer.  Screenshot 2022-06-15 153902.png
Does anyone have a solution or a work around for this type of issues ? 

Thanks in advance ! 

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

Hi @Anonymous ,

 

Create a table that contains what columns you need under each level you specify, like the following:

vchenwuzmsft_0-1655708186409.png

Then create a measue to switch measure which you have created to calcualte.

Example measures = 
switch(SELECTEDVALUE('Table in matrix visual'[level2]),
"column_name_1",CALCULATE([column1],'Table'[level1] = SELECTEDVALUE('Table in matrix visual'[level1])),
"column_name_2",CALCULATE([column2],'Table'[level1] = SELECTEDVALUE('Table in matrix visual'[level1])),
"column_name_3",CALCULATE([column3],'Table'[level1] = SELECTEDVALUE('Table in matrix visual'[level1])),
"column_name_4",CALCULATE([column4],'Table'[level1] = SELECTEDVALUE('Table in matrix visual'[level1])),
"column_name_5",CALCULATE([column5],'Table'[level1] = SELECTEDVALUE('Table in matrix visual'[level1])))

 

The result:

vchenwuzmsft_1-1655708740089.png

 

Pbix in the end you can refer.

Best Regards

Community Support Team _ chenwu zhu

 

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

1 REPLY 1
v-chenwuz-msft
Community Support
Community Support

Hi @Anonymous ,

 

Create a table that contains what columns you need under each level you specify, like the following:

vchenwuzmsft_0-1655708186409.png

Then create a measue to switch measure which you have created to calcualte.

Example measures = 
switch(SELECTEDVALUE('Table in matrix visual'[level2]),
"column_name_1",CALCULATE([column1],'Table'[level1] = SELECTEDVALUE('Table in matrix visual'[level1])),
"column_name_2",CALCULATE([column2],'Table'[level1] = SELECTEDVALUE('Table in matrix visual'[level1])),
"column_name_3",CALCULATE([column3],'Table'[level1] = SELECTEDVALUE('Table in matrix visual'[level1])),
"column_name_4",CALCULATE([column4],'Table'[level1] = SELECTEDVALUE('Table in matrix visual'[level1])),
"column_name_5",CALCULATE([column5],'Table'[level1] = SELECTEDVALUE('Table in matrix visual'[level1])))

 

The result:

vchenwuzmsft_1-1655708740089.png

 

Pbix in the end you can refer.

Best Regards

Community Support Team _ chenwu zhu

 

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

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 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.