Forum Discussion

aidaamieira's avatar
aidaamieira
New Member
3 years ago
Solved

calculate accumulations

Hi, I need help with the following: I have a database with quarterly results, my objective is to present the quarterly and accumulated results, that is, whoever consults the dashboard could consult...
  • Anonymous's avatar
    Anonymous
    3 years ago

    Hi  aidaamieira ,

     

    Here are the steps you can follow:

    1. Create calculated table.

    2. Create measure.

    Rank_measure =
    RANKX(
    ALL('Table'),
        CALCULATE(MAX('Table'[Date])),,ASC)
    Group_Rank =
    MINX(
        FILTER(ALL('Table'),
        'Table'[Year]=MAX('Table'[Year])&&'Table'[Qu]=MAX('Table'[Qu])),[Rank_measure])
    Rank_True =
    RANKX(
        ALL('Table'),[Group_Rank],,ASC,Dense)
    Sum_True =
    SUMX(
        FILTER(ALLSELECTED('Table'),
        'Table'[Date]<=MAX('Table'[Date])),[Value])

    3. Place [Flag]in Filters, set is=1, apply filter.

    4. Result:

     

     

     

    Best Regards,

    Liu Yang

    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly