Forum Discussion

sverderame's avatar
sverderame
Helper I
3 years ago

Creating rolling totals with on-off filter capability

 

Hello,

I am trying to create a rolling total. I am using excel and have 2 seperate worksheets. Worksheet #1 list many projects with savings that may or may not occure in the same year. I would like to capture the savings in worksheet #2 as a rolling total with the ability to filter by project meaning having a slicer that when a project is seleected it reduces the rolling total, when it is deselected the savings are removed from the rolling total. Although not shown here, there are multiple Sites (Site 1, Site 2, Site 3, etc... which will each have their own individual rolling totals staring in year 2022 thru 2050.

 

 

Site IDProject NameYear CompleteSavings 1
Site 1Project 12024500
Site 1Project 22024100
Site 1Project 3202550
Site 1Project 42026300
Site 1Project 52027200

 

Site IDYearRolling Total
Site 120225000
Site 120235000
Site 120244400
Site 120254350
Site 120264050
Site 120273850
Site 120283850
Site 120293850

2 Replies

  • Greg_Deckler's avatar
    Greg_Deckler
    Community Champion

    sverderame Is this more of an Excel question with Excel formulas or ? Where does the Rolling Total column come from, is that part of your data or is that your desired outcome? If it is the desired outcome, where do the numbers come from?

    • sverderame's avatar
      sverderame
      Helper I

      Greg_Deckler Its a PowerBi question. The running total lives in the excel spreadsheet. What I want to do is create a custom column in PowerBI that shows the effects (savings) of doing certain projects or not doing them. Essentially have a line graph that shows the baseline and each time a project is selected it would be reflected up or down.