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
Alphasyrius
Frequent Visitor

Search for parent value

Hello All,

 

I have a table called "Project", the unique key is a project number on 6 digits, column name "ProjectNumber". Each project can be part of a larger project, so I have a column "ParentProject" that can be either empty when there is no parent object, or contain the project number on 6 digits when there is one.

The problem is that a parent project can also have a parent, but the data I receive only include the first parent.

 

My objective here is to be able to pull out data that shows, for any given project, the complete list of child projects, including level 2, 3 or even 4.

I am a very basic user of PowerBI, I was doing fine up to now, but here, I am stuck. I thought lookupvalue function would do the trick, but I might be doing it wrong. 

Also, ideally, I would have a loop like "Do.. While" (if that is even possible) to find the highest parent of any project, but I could create additioal column also to find the level 1 level 2 and so on.

 

Last but not least : any recommendation of books for me to learn a bit more advanced functions and about DAX for PowerBI?

 

Thanks!

2 REPLIES 2
amitchandak
Super User
Super User

Refer, if this can help

https://radacad.com/parsing-organizational-hierarchy-or-chart-of-accounts-in-power-bi-with-parent-ch...

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube
v-deddai1-msft
Community Support
Community Support

Hi @Alphasyrius ,

 

According to your description, are you trying  to  Lookupvalue from another table with multiple values? You can create a calculated column for search values from another table. Please refer to https://community.powerbi.com/t5/Desktop/Lookupvalue-from-another-table-with-multiple-values/td-p/67...

 

Would you please inform us more detailed information( your sample data(by OneDrive for Business)) if possible? Then we will help you more correctly.

 

Please do mask sensitive data before uploading.

 

Thanks for your understanding and support.

 

Best Regards,

Dedmon Dai

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