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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

Reply
UncleLewis
Resolver III
Resolver III

Get Parts List For Shipped Equipment

Hi all,

Using PBIRS, Sept, 2021.

I am trying to generate a list of needed parts for orders that have been shipped.

The shipping table has a list of modules that have been shipped and are en route.
There may be more than 1 of the same module that has been shipped.


I created a dim table with unique module_id's and module_names
I created relationships to the other 2 tables so I have 2 1:M relationships

I added a Table Visual to the Report Canvas and added the Shipped[Module_id]
I tried to add the ListOfParts[Part_id] but I get a "Fix this" error.

How can I get a list of parts for each of the en-route modules?
I cannot create M:M bi-directional relationship.

The pbix file is available here.

Thanks,

-w





A module has a list of parts. This is given in ListOfParts Table.

The 2 tables contain mutliple instances

1 ACCEPTED SOLUTION
UncleLewis
Resolver III
Resolver III

I was either overthinking it or not thinking about it clearly.
In the end, it was a simple merge query.

For module 10, I had 3 en-route and each module has 3 parts so I expecteded 9 rows in the merge query, which is exactly what I have.

let
Source = Table.NestedJoin(Shipped, {"Module_id"}, ListOfParts, {"Module_id"}, "ListOfParts", JoinKind.LeftOuter),
#"Expanded ListOfParts" = Table.ExpandTableColumn(Source, "ListOfParts", {"Part_id", "Part_Name"}, {"Part_id", "Part_Name"})
in
#"Expanded ListOfParts"



modules_parts.png

View solution in original post

2 REPLIES 2
UncleLewis
Resolver III
Resolver III

I was either overthinking it or not thinking about it clearly.
In the end, it was a simple merge query.

For module 10, I had 3 en-route and each module has 3 parts so I expecteded 9 rows in the merge query, which is exactly what I have.

let
Source = Table.NestedJoin(Shipped, {"Module_id"}, ListOfParts, {"Module_id"}, "ListOfParts", JoinKind.LeftOuter),
#"Expanded ListOfParts" = Table.ExpandTableColumn(Source, "ListOfParts", {"Part_id", "Part_Name"}, {"Part_id", "Part_Name"})
in
#"Expanded ListOfParts"



modules_parts.png

Kishore_Kadhir
Resolver II
Resolver II

Hi,

 

Can you create a measure like this, drag it to the table and see if it works?

Kishore_Kadhir_0-1657324645133.png

Regards,

Kishore

Helpful resources

Announcements
Sept PBI Carousel

Power BI Monthly Update - September 2024

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

September Hackathon Carousel

Microsoft Fabric & AI Learning Hackathon

Learn from experts, get hands-on experience, and win awesome prizes.

Sept NL Carousel

Fabric Community Update - September 2024

Find out what's new and trending in the Fabric Community.