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
Addis
New Member

matrix : Different measure for row drill down

I have two related tables about customers called Tree and Order. A Tree Table contains hierarchy of customers which have four levels. So the columns in this table are four:  level1, level2, level3 and four(all values are the customer ids on that level). As you can see in the table , in some cases customer of level1 and level2 can be the same(C100). The second table total amount of order of each customer(if they order).

 

 

Now I want to create matrix of the four level with "family total order"

 

Level1 - (level1 + level2 + level3 + level4) of its family under  it

Level2 - (level2 + level3 + level4) of its family under it

Level3 - (level3 + level4) of its family under it

Level4 - (level4) - as it’s the last level

 

 

Capture.PNGcapture result.png

1 REPLY 1
MFelix
Super User
Super User

Hi @Addis ,

 

Believe that this could be achieve using the Parent-child hierarchies.

 

Check the article below with an explanation on how to achieve it.

 

https://www.daxpatterns.com/parent-child-hierarchies/

 

Comparing to your data I believe you need to change the format of the tree table but have a look and if you have any doubts please reach out.


Regards

Miguel Félix


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

Proud to be a Super User!

Check out my blog: Power BI em Português



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.