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

Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM. Register now.

Reply
yatinpurohit
Helper I
Helper I

Item name in hierarchy from another table

I have 2 tables. Expenses and Item Master. 

 

Fields in Expenses - ItemID, Expense Type, Amount

Fields in Items - ItemID, ItemName

 

The Expenses table has a many to one relationship with the Items on ItemID.

 

I want to create a bar chart with heirarchy which displays Amount by Expense Type and drill down to Amount by Expense Type and Item Name. Effectively, I should be able to drill down an expense type to items adding up to that expense. The created heirarchy in Expenses table works fine with ItemID. But I want to show the ItemName rather than the ItemID.  

 

I created a new calculated column Item Name = LOOKUPVALUE(Items[ItemName],Items[ItemId],Expenses[ItemId]). This also now works when I add the calculated Item Name field to the heirarchy and remove ItemID.

 

However, I want to know if this is the most optimized way to do this. Considering the relationship is already in place, do I really need a calculated column? Seems like duplication.

1 ACCEPTED SOLUTION
v-piga-msft
Resident Rockstar
Resident Rockstar

Hi @yatinpurohit,

 

By my tests, it seems that if you want to create a hierachy in Power BI, you need to create a calcuated column for the current table.

 

If you don't want to create another column, you could create the bar chart with hierachy.

 

Untitled.png

In addition, you could have a reference of this similar thread.

 

Best  Regards,

Cherry

Community Support Team _ Cherry Gao
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

2 REPLIES 2
v-piga-msft
Resident Rockstar
Resident Rockstar

Hi @yatinpurohit,

 

By my tests, it seems that if you want to create a hierachy in Power BI, you need to create a calcuated column for the current table.

 

If you don't want to create another column, you could create the bar chart with hierachy.

 

Untitled.png

In addition, you could have a reference of this similar thread.

 

Best  Regards,

Cherry

Community Support Team _ Cherry Gao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Thanks. This works perfectly. You do not need to create hierarchy at all. Simply add columns in order of drill down to axis. Power BI will allow drill down of relevant.

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.