Forum Discussion

AFRATH34's avatar
AFRATH34
Icon for Helper I rankHelper I
2 years ago
Solved

How can I sum total recurring revenue

Hi Anonymous    I hope you're doing well. The solution you provided in our previous discussion is working fine. However, I'm having trouble getting the sum of the measure column. Could you please a...
  • mickey64's avatar
    mickey64
    2 years ago

    Is the 'total number of month' '19'? (I think it is '17'.)

    I have created some measures but I am not sure if my measures are correct.

     

    Step 1: I unpivot 'Table' on Power Query Editor.

     

    Step 2: I add 2 columns on Power Query Editor.

    - 'Flag' column -

    - 'Date' column -

     

    Step 3: I make 2 measures and make a matrix below.

    M_RunningFlag2 = CALCULATE(SUMX('Table','Table'[Flag]*'Table'[Recurring Gross Profit per Period]),FILTER(ALLSELECTED('Calendar'[Date]),'Calendar'[Date]<=MAX('Calendar'[Date])))

     

    M_RF2 Sum = SUMX(SUMMARIZE('Calendar','Calendar'[Month and Year],"M_RF2",[M_RunningFlag2]),'Table'[M_RunningFlag2])