Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
10 years ago
Solved

Applying filters to running total?

Hi,   I'm trying to create a chart that shows the progressive work completed on a project; So at week 1 0% (0hours) have been completed; by week 50 (end of project), it should show 100% (1000hours)...
  • v-yulgu-msft's avatar
    10 years ago

    Hi, Anonymous

     

    You want to make the cumulativeHours re-calculate based on the selected filters, right? If so, please create a measure to calculate running total rather than calculated column.

     

    The DAX formula should be like:

     

    MeasureRunningTotal = 
    CALCULATE(
    SUM(Running[TotalDay]),
    FILTER(ALLSELECTED(Running),
    Running[WeekName]<=MAX(Running[WeekName])
    ))

    Thanks,
    Yuliana Gu