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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

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...

Join us as experts from around the world come together to shape the future of data and AI!
At the Microsoft Analytics Community Conference, global leaders and influential voices are stepping up to share their knowledge and help you master the latest in Microsoft Fabric, Copilot, and Purview.
️ November 12th-14th, 2024
 Online Event
Register Here
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
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!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.