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
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
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel

Power BI Monthly Update - May 2024

Check out the May 2024 Power BI update to learn about new features.

LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

Top Solution Authors
Top Kudoed Authors