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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
shivam04
Frequent Visitor

How to connect hierarchy dimension table with fact table

Hi,

 

I have a dimension table shown below which is in the hierarchy form and I want to create the relationship between diemnsion table and a fact table. The fact table has column 'object_oh_name3_lvl4' which is a common column in both the tables.  The problem is that this column is not unique in the dimension table beacuse of which I am unable to create the relationship. I want to drill down the measure in the fact table from the top level of the hierarchy to the lowest level.

 

Any help would be appreciated.

 

Dimension table with 4 hierarchy levels (lvl_1, lvl_2,lvl_3,lvl_4)-
Dimension table with 4  hierarchy levelsDimension table with 4 hierarchy levels

1 REPLY 1
TomMartens
Super User
Super User

Hey,

 

the data model inside Power BI does not support recursive dimension structures (e.g. Parent / Child dimensions). For this you have model your dimension in another way.

 

This article describes this in a very concise way: https://www.daxpatterns.com/parent-child-hierarchies/

 

Hopefully this provides what you are looking for.

 

Regards,

Tom



Did I answer your question? Mark my post as a solution, this will help others!

Proud to be a Super User!
I accept Kudos 😉
Hamburg, Germany

Helpful resources

Announcements
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

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.