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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more

Reply
Anonymous
Not applicable

Need some help modelling data to establish parent child relation between columns

 Hi all,

 

I am trying to achieve a solution to establish Parent-child relation between two columns of data. I have provided a sample data sheet with both data level and pictorial representation of my expected result set. I wanted to see if we can write a DAX to dynamically expand the data set showing it's parent-child-child -.... relation . Attaching an excel doc link with detailed explanation and sample mock data set.

 

Mockup Data

 

I am open for any suggestion WRT data modelling and visualizations. Thanks in advance.

 

1 ACCEPTED SOLUTION
AlexisOlson
Super User
Super User

Try the Tree custom visual.

AlexisOlson_0-1641243130384.png

Result at default expanded level = 4.

AlexisOlson_1-1641243425186.png

 

Please see attached.

 

View solution in original post

5 REPLIES 5
Anonymous
Not applicable

Great, Thanks for the quick turn around. Do you think similar results are achievable with text formatted data? The mockup data i provided is by stripping off the prefixes. Actual data end up looking like "SKC11265" etc., Any workarounds for such data? BTW, with whole numbers this works perfect !!

Hi @Anonymous , you can just change the data type of the columns 'columnA' & 'columnB' into Text in Power BI and check. it is working fine.

Anonymous
Not applicable

Thanks, it worked !!

I think it should still work. If not, you can add index columns in the query editor.

AlexisOlson
Super User
Super User

Try the Tree custom visual.

AlexisOlson_0-1641243130384.png

Result at default expanded level = 4.

AlexisOlson_1-1641243425186.png

 

Please see attached.

 

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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.

Top Solution Authors