Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
6 years ago
Solved

Cohort base cumulative sum

Hi all,

 

I was wondering if someone can could help me.

I have data like below, what i want to have cumulative sum for each day (column) and by cohort day ( row) basically in excel this could be done :

 

for example the 25 march the 1 day will be 57158.

 

What is the best measure to get this please?

regards

Darren

  • Anonymous's avatar
    Anonymous
    6 years ago

    my solution was 

    Cumulative Cohort Revenue = ( CALCULATE (
    SUM('Cohort rev_2'[revenue] ),FILTER(ALLEXCEPT('Cohort rev_2','Cohort Rev_2'[cohort_day],'Cohort rev_2'[campaign_type],'Cohort rev_2'[app],'Cohort rev_2'[dim_country],'Cohort rev_2'[install_type]),'Cohort Rev_2'[Install days_diff]<=MAX('Cohort rev_2'[Install days_diff]))))

4 Replies

  • Anonymous's avatar
    Anonymous
    Not applicable

    Hi,

     

    Please see below, just some sample 

     

    appcohort_daydays_diffcountry_idrev
    this11/03/20207029.96
    this11/03/20209056.97

    this

    11/03/20205036.97
    this11/03/20202017.99
    this11/03/2020802.99
    this11/03/20203017.99
    this11/03/2020100.99
    this11/03/2020003.99
    this11/03/2020071.98
    this14/03/20200790.99
    this11/03/202012068.94
    this11/03/2020020190.82
    this11/03/20200380.99
    this11/03/2020133865.96
    this11/03/202010162.99
    this11/03/20206164.98
    this11/03/202031610.98
    this11/03/20207163.99
    this11/03/20208163.98
    this11/03/20200161.99
    this11/03/20205167.97
    this11/03/2020121617.99
    this11/03/20202160.99
    this11/03/202011168.99
    this11/03/20200330.99

     

    • v-frfei-msft's avatar
      v-frfei-msft
      Icon for Community Support rankCommunity Support

      Hi Anonymous ,

       

      Sorry I cannot get you based on your data. Could you please share more details about that?

       

       

      • Anonymous's avatar
        Anonymous
        Not applicable

        my solution was 

        Cumulative Cohort Revenue = ( CALCULATE (
        SUM('Cohort rev_2'[revenue] ),FILTER(ALLEXCEPT('Cohort rev_2','Cohort Rev_2'[cohort_day],'Cohort rev_2'[campaign_type],'Cohort rev_2'[app],'Cohort rev_2'[dim_country],'Cohort rev_2'[install_type]),'Cohort Rev_2'[Install days_diff]<=MAX('Cohort rev_2'[Install days_diff]))))