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

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more

Reply
Anonymous
Not applicable

Filtering nested entries in data

Hello,

I've been tasked by my company to create a system that will find all part data for a specific assembly. I have a giant table of data, and I have two main pieces of data. I have a column I've called "ALL PARTS" and another called "ALL PARENTS". ALL PARTS consists of every part that we have produced. ALL PARENTS consists of groupings of thse parts. However, we might have an assembly within an assembly within an assembly. In that case, an assembly will be listed as a part, with it's parent assembly listed. I've included a screenshot below of a sample of my data.

 

Capture.PNG

 

So what I'm trying to do is create a system that will allow a user to type in any Part number, and filter down the list to that part number and any parts/assemblies (and any parts nested within said assemblies) nested within it. I created one system that pulled all Parts for a parent, then applied that list as a filter on a second table, but it took ages to compute and was not feasible for use. It also only searched through the first level of the assembly, and I need it to follow the heirarchy to it's full extent.

My current idea is to create a custom column to sort of track the heirarchy of parts in an assembly by taking the Parent and adding a number afterwards representing its heirarchy. Then I could simply filter the table to only include Parts with a Tracker that included PART_XXXXXX 1 or something.

Let me know if more infromation is required, I'm very new to power query, specifically new to coding in M.

 

1 REPLY 1
v-xicai
Community Support
Community Support

Hi @Anonymous ,

 

I am not sure what desired result would you want, could you please share your sample data or desired output screenshots for further analysis? You can also upload sample pbix to OneDrive and post the link here. Do mask sensitive data before uploading.

Please read this post to get your answer quickly.

https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490

 

Best Regards,

Amy

 

 

Helpful resources

Announcements
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

July Power BI Update Carousel

Power BI Monthly Update - July 2026

Check out the July 2026 Power BI update to learn about new features.

60 days of Data Days Carousel

Data Days 2026

Join Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Top Solution Authors