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

View all the Fabric Data Days sessions on demand. View schedule

Reply
fushiosu
New Member

total spent measure question

Hey everyone, I'm trying to get this measure which is supposed to be the total value in money spent

the first table is the number of units bought, and the second, the price of the units bought. Both tables have date columns and there are multiple lines per month (hence the SUM) for example, the total spent that's coming out of that measure is 37530 (10.4+10.45)*(1000+800)

however, I'd like totalSpent to be: (10.4 x 1000)+(10.45 x 800) = 18760

aaa.pngunknown (6).png

1 ACCEPTED SOLUTION
RayWu
Memorable Member
Memorable Member

@fushiosu 

Try this.

New Measure = SUMX('Product', 'Product'[Price] * RELATED('Inventory'[Quantity])) (edited)
 
there are similar threads, you might want to take a look at. https://community.powerbi.com/t5/Desktop/Pricing-Table/td-p/1938605

View solution in original post

1 REPLY 1
RayWu
Memorable Member
Memorable Member

@fushiosu 

Try this.

New Measure = SUMX('Product', 'Product'[Price] * RELATED('Inventory'[Quantity])) (edited)
 
there are similar threads, you might want to take a look at. https://community.powerbi.com/t5/Desktop/Pricing-Table/td-p/1938605

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