Forum Discussion

rodfernandez's avatar
rodfernandez
Helper I
7 years ago
Solved

cumulative bar graph

I have the following Graph  but I want to create a cumulative graph of the previous graph. I create the following code Acomulado RCA = CALCULATE( COUNTA('Reporte'[Etiqueta]); FILTER( CA...
  • v-lili6-msft's avatar
    7 years ago

    hi, rodfernandez 

    You could try this way:

    Step1:

    Create a fact Mes table, then create the relationship with report table by Mes

    Step2:

    Use this formula to add a measure

    Acomulado RCA = 
    CALCULATE (
        COUNTA ( 'Reporte'[Etiqueta] ),
        FILTER (
            ALLSELECTED ( Mes ),
            ISONORAFTER ( 'Mes'[Mes], MAX ( 'Mes'[Mes] ), DESC )
        )
    )

    Result:

     

    and here is my sample pbix file, please try it.

     

    Best Regards,

    Lin