Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
5 years ago
Solved

Cumulative Measure in Line and clustered column chart

Dear Community,  I am trying to do multiple cumulative curves together with bars in a Line and clustered column chart.  The bars are working fine but cant get the cumulative measures to work.  Pro...
  • Anonymous's avatar
    Anonymous
    5 years ago

    The solution was as followed:

     

    Dax Code:

    Curve Hours Gate Baseline = 
    CALCULATE(
    SUM('Table Name'[Hours]),
    FILTER (ALLSELECTED('WPPMDBext1P_Q'), 
    'Table Name'[DataType]="Gate Baseline"),
    
    FILTER(
    		ALLSELECTED('Table Name'[Month-Year]),
    		ISONORAFTER('Table Name'[Month-Year], MAX('Table Name'[Month-Year]), DESC)
    ))

    Result: