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

Get certified as a Fabric Data Engineer: Check your eligibility for a 50% exam voucher offer and join us for free live learning sessions to get prepared for Exam DP-700. Get started

Reply
zubair242
Frequent Visitor

How to expand parent-child in Power Query/M

Hi everyone,

I have got an interesting case where I need to start from the child and find its parents. Futher, I need to check that parent and see if that has another parent. So, it would be a recursive calculation. Below snapshot show the source/required result and my current result. I do not know how to fix the problem.

Can anyone please check that? I have attached the sample pbix for this.

 

zubair242_0-1696820113398.png

 

https://drive.google.com/file/d/19B1KqrfUh_hysb6Q6mMGEN4IMgr8ZamS/view?usp=sharing

 

 

 

 

 

 

1 ACCEPTED SOLUTION

Hi @mussaenda ,

 

Thank you so much for providing the workaround. Unforutnately, it is a manual workaround. However, I have used chatgpt and found out the dynamic solution without any manual steps. Please find attached file.

 

Thank you so much for taking time to help me in this issue. It is really appreciated.

 

https://drive.google.com/file/d/1vXoQS3K2KolROT8WVWNUysKlB5L-RWdK/view?usp=sharing

 

 

Kind Regards,

Zubair

View solution in original post

2 REPLIES 2
mussaenda
Super User
Super User

Hi @zubair242 ,

 

mussaenda_0-1696835217271.png

 

Hi @mussaenda ,

 

Thank you so much for providing the workaround. Unforutnately, it is a manual workaround. However, I have used chatgpt and found out the dynamic solution without any manual steps. Please find attached file.

 

Thank you so much for taking time to help me in this issue. It is really appreciated.

 

https://drive.google.com/file/d/1vXoQS3K2KolROT8WVWNUysKlB5L-RWdK/view?usp=sharing

 

 

Kind Regards,

Zubair

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Prices go up Feb. 11th.

Feb2025 Sticker Challenge

Join our Community Sticker Challenge 2025

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

Jan NL Carousel

Fabric Community Update - January 2025

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