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
chad_oge
Frequent Visitor

Calculate SUM from a related table?

I have a primary order table:

chad_oge_0-1620312065936.png

And a secondary parts table:

chad_oge_1-1620312098556.png

They are joined on Order:

chad_oge_2-1620312134746.png

When building a table from Orders and adding the sum of Qty, I get this:

chad_oge_3-1620312198834.png

My desired result is this:

chad_oge_4-1620312264244.png

I want to keep all orders from the original Orders table and ignore the Qty from non-matches.

 

Any help is appreciated!

1 ACCEPTED SOLUTION

@chad_oge 

can meger table solve your problem? you can use table A left join table B.





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




View solution in original post

5 REPLIES 5
amitchandak
Super User
Super User

@chad_oge ,because order 4 is not there.

Try "Show item with no data option" and chek

 

ShowItemwithoutdata.JPG

Hmm, that did solve my main issue, but on my actual project I had conditional fomatting applied to the table and only the rows with data now have the formatting..

@chad_oge 

can meger table solve your problem? you can use table A left join table B.





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




Yes this will work! Thanks.

@chad_oge , blank will not have conditional formatting, I even tested with isblank in a color measure

 

+0 to a measure is an alternate, that gives 0 in place of blank

 

Sum(Table[Qty]) +0

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.