Forum Discussion

AVIE's avatar
AVIE
Frequent Visitor
5 years ago
Solved

Measure total of difference

Dear,   I can't share my data source due to confidentiality, but I'm struggling to get the sum of all differences shown correctly in a measure.    Source data: Delivery period Economical per...
  • amitchandak's avatar
    amitchandak
    5 years ago

    AVIE , Try diff like

    Diff = SUMX(VALUES('Date'[Period]),if(not(ISBLANK([Prior Value])) && not(ISBLANK([Total value])),[Total value] -[Prior Value],BLANK()))