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! Request now

Reply
Anonymous
Not applicable

Loop through tables to get all possible combinations

I have a simple model but complex request. Below is the simplified version of the model.

 

PixelatedFern_0-1671203171007.png

 

In Table1, we have list of units and parts that go into those units. In Table2, we have vehicles where those parts are installed. And in Table3, we have population of those vehicles.

 

The request that I received is that the user wants to get summarized population but based on expanded logic. First, when user selects Unit ID, they should see all parts that go into that unit and vehicles where those parts are installed. In following columns, they want to continue expanding this table by adding all units that are installed in those vehicles (not just the originally selected unit), get related parts to those units, and again lookup vehicles where those parts are installed. This table would expand until all possible units and parts are listed and then population would be shown in the last column.

 

I am not sure if this makes sense but if not, I would be happy to elaborate further with examples.

 

Any suggestions on what approach to take in order to come up with such summary?

1 REPLY 1
Greg_Deckler
Community Champion
Community Champion

@Anonymous Fairly sure that if you change the Table2 and Table3 relationship to Both filter direction that you could add the columns from the various tables into a Matrix ad-hoc hierarchy and it would work.



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

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