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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
Anonymous
Not applicable

Hierarchy start-up. Help!!

Hi,

 

I want to construct a hierarchy and have been told that I proabably only need two columns.

The columns I have is:

Stock Item Code (from 'Stock item master table'), and

Paren Stock Item (from 'Work order BOM' table).

 

As you see, the columns are from two different tables.

Can I construct a hierarchy anyway or?

I have read some posts on hierarchies in Power BI and found that many uses the 'PATH' function. When I try that function it tells me that I cannot use columns from two different tables.

 

 

Any ideas, trips or tricks on how I can get this started properly?

 

Many thanks!!

3 REPLIES 3
daXtreme
Solution Sage
Solution Sage

Hi @Anonymous 

 

Hierarchies can't be created from columns in different tables. That's about it. You have to bring the columns into one table. There are many ways to do it. You can bring a column to one of the original tables or you can create a completely new table with just the columns you need and then join the table to others (for it to make sense, of course).

 

On the other hand, the PATH* functions are used if you have a parent-child hierarchy in a table. Since PBI does not handle this natively, you have to flattten the hierarchy. That's what the functions are for. But it does not look like you have a parent-child hierarchy.

 

Parent-child hierarchies: Parent-child hierarchies – DAX Patterns

Hierarchies: Hierarchies – DAX Patterns

Anonymous
Not applicable

@daXtreme 

Thanks for your reply, I'm quite new to Power BI. Ok, then it was as I suspected.
I think the easiest approach for me would be to create a completely new table with those two columns.
How do I do that?

Something tells me that I first need to go to 'Transform Data'?

 

Ok, what do you mean by flatten the hierarchy?

 

With kind regards.
 

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

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

Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.