Forum Discussion

JoseCuevas's avatar
JoseCuevas
Regular Visitor
5 years ago
Solved

Cumulative Total from meged query column

in the list, rather than have 1,0, 1,1,1,... i would like t have 1,1,2,3,4,... 

a cumulative sum.

  • Adding a column and following those instructions did not work, but adding a measure ( like below ) worked great.
     
    **bleep** referral 2 =
      CALCULATE(
        SUM(
          vDiscipline_Forecast[incident_ind] ) ,
        FILTER(
          ALLSELECTED( vDiscipline_Forecast[incident_date] ) ,
                                 vDiscipline_Forecast[incident_date] <= MAX( vDiscipline_Forecast[incident_date] ) ))

2 Replies

    • JoseCuevas's avatar
      JoseCuevas
      Regular Visitor
      Adding a column and following those instructions did not work, but adding a measure ( like below ) worked great.
       
      **bleep** referral 2 =
        CALCULATE(
          SUM(
            vDiscipline_Forecast[incident_ind] ) ,
          FILTER(
            ALLSELECTED( vDiscipline_Forecast[incident_date] ) ,
                                   vDiscipline_Forecast[incident_date] <= MAX( vDiscipline_Forecast[incident_date] ) ))