Forum Discussion
Forecast for running total
how to make a running total for each month ?
In power bi, I have a table refering the image below contains 12 month per year that only show single month and actual column is value get from summary table
But I want to display the cumulative forecast like if slicer is selected to January it will show the cumulative actual for january value until december like below image (below table is illustrated in excel. Not going to be load in power bi)
But if slicer is selected to February it will show like below. Which mean January value will be the actual but february is the sum of Jan + feb then the cumulative of march until dec will be using the feb actual value (below table is illustrated in excel. Not going to be load in power bi)
Same goes for the rest of the month if it already has the actual value.
Below are the tables i have in power bi
4 Replies
- Dangar332Resident Rockstar
Hi, Shuuuu
make a seprate table of Month no from date table
newtable = all(date[month no])and use it in a slicer and don't make relationship with your data model
make a new column in actual spent table
column = var curr_month = selectedvalue(newtable[month no]) return sumx( filter( CROSSJOIN( values(date[month no]), values(actual spent[actual forecast]) ), date[month no]<=curr_month ), actual spent[actual forecast] )