Forum Discussion

Sandhya877's avatar
Sandhya877
Frequent Visitor
1 year ago
Solved

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...
  • tamerj1's avatar
    1 year ago

    Hi Sandhya877 

    to force summing the visible values 

    Measure =
    SUMX (
    SUMMARIZE ( 'Table', [Category], [Name] ),
    CALCULATE ( SUM ( [Quantity] ) * SUM ( [Price] ) )
    )