Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
4 years ago
Solved

Running totals over multiple sites

Hello all,   Not sure if I'm asking too much of PowerBI/Power query, or if I'm asking too much of myself 🙂 I have a data table that shows a production value total for 4 sites each day. I need...
  • Jihwan_Kim's avatar
    4 years ago

    Hi,

    I tried to create a sample pbix file like the attached.

    Please check the below picture and the attached pbix file.

     

     

    Value measure: = 
    SUM( Data[Value] )

     

    Running value per site: = 
    IF (
        ISFILTERED ( 'Calendar'[Date] ),
        CALCULATE ( [Value measure:], 'Calendar'[Date] <= MAX ( 'Calendar'[Date] ) )
    )