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

Microsoft is giving away 50,000 FREE Microsoft Certification exam vouchers. Get Fabric certified for FREE! Learn more

Reply
ale-hd
Helper I
Helper I

Create a Hierarchy from elements on the same columns

Hi All, hope all the best for you all.

I could share the .pbix file for this case but I don't know how! I will do it with please if anybody explains me how. Looking at it would probably more effective than my description.

 

Anyway simple starting point: 2 tables, 1st is Sales, 2nd is Channels (where the sales are from).

Looking at the matrix at the bottom below, you will see the Channels as columns headers, but this result is wrong.

The problem is in the "Channels" table:

channels are all in the same columb but actualli they are from different levels: i.e. level 1 is Web, sublevels are "Direct", "Campaign" and each of this sublevel can have as many subsequent sublevels as you like.

The problem is that the software generates all the leveles in the same table. As you can see in the image they are all listed together with the field "Level" that indicates the level.

In this specific case the operators created up to the 3 level, but the number of level can change depending on the single client. 

 

The question is: How can I create a Hierarchy on the Channels? 

Thank  you very much!

 

NestedChannels.jpg

 

1 ACCEPTED SOLUTION
lbendlin
Super User
Super User

@ale-hd Have you tried creating a PATH column from your Channels table columns?

View solution in original post

4 REPLIES 4
v-kelly-msft
Community Support
Community Support

Hi  @ale-hd ,

 

Would you pls provide some sample data for test?

 

Remember to remove the confidential information.

 

Best Regards,
Kelly

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

Hello Kelly, I have a pbix file created as example to share it, but I do not know how to do it...

Thank you.

lbendlin
Super User
Super User

@ale-hd Have you tried creating a PATH column from your Channels table columns?

Thank you @lbendlin thanks to your suggestion I have found this article which describes and solves my exact case! 

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

 

Thanks to @v-kelly-msft for having proposed to investigate further into my question.

Alessandro.

Helpful resources

Announcements
March PBI video - carousel

Power BI Monthly Update - March 2025

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

March2025 Carousel

Fabric Community Update - March 2025

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

Top Solution Authors