Forum Discussion

anmattos's avatar
anmattos
Advocate I
4 years ago
Solved

Accumulated Measure using EARLIER and Inactive Relationship

Dear colleagueas,   I'm trying to make this measure work for the past couple of days, but it seems over my head. I tried many things explianed elsewhere about accumulated measures, but it seems my ...
  • Greg_Deckler's avatar
    Greg_Deckler
    4 years ago

    anmattos Forgot the ALL

    Total Approval =
      VAR __Rev = MAX('fDCA'[Rev])
      VAR __Table = 
        ADDCOLUMNS(
          DISTINCT(ALL('fDCA'[Rev])),
          "__TotalApprovals",[Total Approvals]
        )
    RETURN
      SUMX(FILTER(__Table,[Rev]<=__Rev),[__TotalApprovals])