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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Anonymous
Not applicable

Matrix with values on different levels

Hello,

 

I am trying to combine two tables in matrix, where values are on different levels, as following:

Table 1:

 

TypeType 2Type 2Value1
Aaaa100
 baa200
 ccc200
Bacc1000
 b 500
Caaa30
 abb50
 baa300
 caa100

 

Table 2:

 

TypeValue2
A1000
B100
C200



In Table1 Value1 is on third level (Type2), while in Table2 Value2 is on first level (Type). I would like to se matrix, where Value2 is shown only on the first level, and Value1 is in hierarchy - first to third level:

 

TypeValue 1Type 2Type 2Value 1
A1000aaa100
  baa200
  ccc200
B100acc1000
  b 500
C200aaa30
  abb50
  baa300
  caa100

 

 

Any suggestions? Should I combine two tables in one on primary source? 
Thank you!

3 REPLIES 3
lkalawski
Memorable Member
Memorable Member

Hi @Anonymous

The first thing you need to do is fill in all the blank values in table one. You can do this cleverly by using Fill Down.

lkalawski_1-1599595832370.png

Then you need to create a relationship between the two tables using the Type columns.

The next step is to build a matrix.
In the option under Row headers, turn off Stepped layout and +/- icons.

lkalawski_3-1599595965233.png

 

And this is how you put the columns in the matrix settings. Also remember to do a drilldown on the visualization.

lkalawski_4-1599596033572.png

The result:

lkalawski_5-1599596059842.png

 

I also prepared file with solution for you. Please use this link: https://gofile.io/d/uxXTGs



_______________
If I helped, please accept the solution and give kudos! 😀 

Anonymous
Not applicable

Hey @lkalawski,

 

Thanks a lot, your solution helped, but I am looking for the view where Value 1 under Type 2 and Type 2.1 should stay "flexible" - should be enabled to drill down. Is it possible to turn off +/- icons only for Value 2?

 

Thanks.

Hi @Anonymous

Unfortunately not. +/- can only be disabled or enabled for all levels.



_______________
If I helped, please accept the solution and give kudos! 😀

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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