Forum Discussion

DK-C-87's avatar
DK-C-87
Helper I
1 year ago
Solved

Wrong total

Hi everybody Ive got a problem with my total, which are wrong. The rows are correct. If I filter the rows and removes the 0's, then the total is still wrong. Can someone see what I am doing wron...
  • johnt75's avatar
    1 year ago

    Typically this problem is because the calculation for the total line is not just adding up the individual lines, it is calculating the measure in the context of the total. 

    If you want to instead sum up the individual values, you need to create another measure which you will use in the visual instead of the current one, and this will depend on which column you are using the table or matrix visual. If you were using e.g. 'Table'[Column] in the visual, then you could create a measure like

    Total Besparelsespotentiale (gulv) = SUMX( VALUES( 'Table'[Column] ), [Besparelsespotentiale (gulv)] )