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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Anonymous
Not applicable

Data display in table when 1:M relation between tables

Hi,

 

I have 2 tables with 1:M relation between them.  table with phased out material  is connected to more than 1 phasing in material as replacement to old material. 

 

example pased out material can be replaced with more than 1 material (BA14800G)

 

Pahsed out Phased in
WCA31823WC3455
BA14800GBA1A000L
BA14800GCA14A000L
BA14100GPA14C0001

 

 

In Power BI want to display as 

ManveerN_0-1624345327667.png

 

 

but power bi repeating rows as below: 

 

ManveerN_1-1624345371145.png

 

Please suggest if there is a way.   Jooin on Phased out colum as available in boht tables. 

 

Regards,

Manveer N

1 ACCEPTED SOLUTION

Hi @Anonymous ,

 

Unfortunately, the current version cannot realize this idea. Please submit your idea.

Ideas (powerbi.com) 

 

This is a workaround. If there are multiple rows for each category in your first table, you can try to create the following calculated columns.

Last date = CALCULATE( MAX('Table'[date]), ALLEXCEPT('Table', 'Table'[Phased out material]))
Inventory_Column = CALCULATE( SUM('Table'[Inventory]), ALLEXCEPT('Table','Table'[Phased out material]) )
Schedule_Column = CALCULATE( SUM('Table'[Schedule]), ALLEXCEPT('Table','Table'[Phased out material]) )
order_Column = CALCULATE( SUM('Table'[order]), ALLEXCEPT('Table','Table'[Phased out material]) )
ATP_Column = CALCULATE( SUM('Table'[ATP]), ALLEXCEPT('Table','Table'[Phased out material]) )

image.png


Then add the fields in the first table and the Phasing in material field in the second table to the rows of the matrix, like this:

 

image.pngimage.png

 

Best Regards,
Winniz

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

4 REPLIES 4
luzwales
Regular Visitor

Not use table. should use Matrix table.

Anonymous
Not applicable

HI , Thank you for reply but if you could see the 2nd table screenshot attaced where we have multiple phase in materials against pahse out, so if we display in same table values repeated when using matrix  for phaseout material, phase in is fine. and that is misleading. 

 

regards,

Manveer N

Hi @Anonymous ,

 

Unfortunately, the current version cannot realize this idea. Please submit your idea.

Ideas (powerbi.com) 

 

This is a workaround. If there are multiple rows for each category in your first table, you can try to create the following calculated columns.

Last date = CALCULATE( MAX('Table'[date]), ALLEXCEPT('Table', 'Table'[Phased out material]))
Inventory_Column = CALCULATE( SUM('Table'[Inventory]), ALLEXCEPT('Table','Table'[Phased out material]) )
Schedule_Column = CALCULATE( SUM('Table'[Schedule]), ALLEXCEPT('Table','Table'[Phased out material]) )
order_Column = CALCULATE( SUM('Table'[order]), ALLEXCEPT('Table','Table'[Phased out material]) )
ATP_Column = CALCULATE( SUM('Table'[ATP]), ALLEXCEPT('Table','Table'[Phased out material]) )

image.png


Then add the fields in the first table and the Phasing in material field in the second table to the rows of the matrix, like this:

 

image.pngimage.png

 

Best Regards,
Winniz

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

v-kkf-msft
Community Support
Community Support

Hi @Anonymous ,

 

Maybe you can try the matrix visual, and close stepped layout.

 

image.png

If the problem is still not resolved, please provide detailed error information or the expected result you expect. Let me know immediately, looking forward to your reply.

Best Regards,
Winniz

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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