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! Request now

Reply
yoyfreddy
Frequent Visitor

Is it possible to multiply a column to a measure (before aggregating the column) ?

I wish to multiply each "Price" column value with measure "SUM(Sales Volume) of the same product", and then calculate total revenue.

We all know (A+B) * (C+D) ≠ (A*C) + (B*D), so a typical Calculate(SUM[Sales Volume])*Price doesn't work in my case.
Is there any possible syntax to calcualte the total revenue correctly?

 

Price Table

ProductPrice
A10
B20
C30
D40

 

Sales Table

ProductSales DateSales Volume
AJan1
BJan2
CJan3
AFeb4
BFeb5
CFeb6

 

Intended outcome

yoyfreddy_1-1646930415753.png

 

 

 

1 ACCEPTED SOLUTION
AntonioM
Solution Sage
Solution Sage

Hi, 

I think this will give you your intended outcome, assuming you have a relationship between 'Price Table'[Product] and 'Sales Table'[Product]

 

Measure = SUMX('Sales Table', 'Sales Table'[Sales Volume] * RELATED('Price Table'[Price]))

View solution in original post

2 REPLIES 2
AntonioM
Solution Sage
Solution Sage

Hi, 

I think this will give you your intended outcome, assuming you have a relationship between 'Price Table'[Product] and 'Sales Table'[Product]

 

Measure = SUMX('Sales Table', 'Sales Table'[Sales Volume] * RELATED('Price Table'[Price]))

@AntonioM  It works, Thank you !!

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI update to learn about new features.

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!

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
Top Kudoed Authors