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! Learn more

Reply
kelly008
Helper I
Helper I

Multiplication between Tables

Hello,

 

I currently have 2 values from 2 seperate tables, I am trying to multiply them together but when I do, the total for the column is way out:

kelly008_0-1648479322497.png

 

For some reason it is 44,964.38 when it should actually just be a sum off the values in the Row which is roughly 500?

 

This is the current measure I am using: 

 

Quantity_per_Unit x Quantity =
SUM('SYNBOMDetails'[Quantity_per_Unit]) * SUM('SYNProdOrderLine'[Quantity])
 
Any help would be much appreciate. Thanks!
1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @kelly008 ,

Is there any relationship created between the table SYNProdOrderLine and SYNBOMDetails? If so, which fields are they based on? Could you please provide me with the Fields pane settings for your table visual?

Relationship infoRelationship info

Fields pane settingFields pane setting

You can create a new measure based on the measure [Quantity_per_Unit x Quantity] as shown in the figure below, please find the details in the attachment.

Measure = SUMX ( VALUES ( Field with Text type on the table visual except for the field [Quantity_per_Unit],[Quantity] and the measure [Quantity_per_Unit x Quantity]  ), [Quantity_per_Unit x Quantity] )

yingyinr_2-1648714249546.png

Best Regards

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

Hi @kelly008 ,

Is there any relationship created between the table SYNProdOrderLine and SYNBOMDetails? If so, which fields are they based on? Could you please provide me with the Fields pane settings for your table visual?

Relationship infoRelationship info

Fields pane settingFields pane setting

You can create a new measure based on the measure [Quantity_per_Unit x Quantity] as shown in the figure below, please find the details in the attachment.

Measure = SUMX ( VALUES ( Field with Text type on the table visual except for the field [Quantity_per_Unit],[Quantity] and the measure [Quantity_per_Unit x Quantity]  ), [Quantity_per_Unit x Quantity] )

yingyinr_2-1648714249546.png

Best Regards

amitchandak
Super User
Super User

@kelly008 , if they are related like master details

 

then you can have

Quantity_per_Unit x Quantity =
 SUMX('SYNProdOrderLine, 'SYNProdOrderLine'[Quantity] * related('SYNBOMDetails'[Quantity_per_Unit] ) )

 

if not then have some common dimension to multiply

Assume order as common dimension

sumx(value(Order[Order_id]), calculate( SUM('SYNBOMDetails'[Quantity_per_Unit]) * SUM('SYNProdOrderLine'[Quantity]) ) )

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

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