Forum Discussion
Anonymous
4 years agoNot applicable
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
Anonymous
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
1 Reply
- RayWu
Memorable Member
Anonymous
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