Forum Discussion

TravisGlanzer's avatar
TravisGlanzer
Frequent Visitor
5 years ago
Solved

SumX Total

I finally figured out a DAX to calculate the product of two attributes without creating a table:   That produces the third column below which looks great.  The total row is off though as it i...
  • jameszhang0805's avatar
    jameszhang0805
    5 years ago

    Let me give you an example:

    In the above picture :

    SalesQty V1 = SUM( Sales[Quantity] )   
    SalesQty V2 = [SalesQty V1] +1000
    you can see the total number of SalesQty V2 is incorrect.  Because in the total line there is no filter.
    So the calculation logic of the total number is to calculate all category sales quantity +1000, 140180+1000. But that's not your expectation. Your expectation is to SUM all the values in the Sales Qty V2 column in the matrix. At this time you need to do like the below picture to get the correct result.