Forum Discussion
Sandhya877
1 year agoFrequent Visitor
Row level Totals - Miscalculation
Hi, I am trying to calculate the total price as shown below. DAX measure i am using is = sum(quantity) * sum(price) Instead of caluclating this way : (10 *4) + (20*5) + (30*6) i am gettin...
- 1 year ago
Hi Sandhya877
to force summing the visible values
Measure =
SUMX (
SUMMARIZE ( 'Table', [Category], [Name] ),
CALCULATE ( SUM ( [Quantity] ) * SUM ( [Price] ) )
)
tamerj1
Community Champion
1 year agoHi Sandhya877
to force summing the visible values
Measure =
SUMX (
SUMMARIZE ( 'Table', [Category], [Name] ),
CALCULATE ( SUM ( [Quantity] ) * SUM ( [Price] ) )
)
Sandhya877
1 year agoFrequent Visitor
Thank you. It worked.