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

Try your skills in the Power BI Dataviz World Championship! Round one ends June 26. Join now

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 is here Carousel

Fabric Data Days 2026

Don't miss out on Data Days, June 15 through August 7. Learn Fabric, Power BI, SQL, AI and more.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.