Forum Discussion

lab's avatar
lab
Frequent Visitor
4 years ago

Completing a rollforward in Power BI

I'd like to create a roll forward of headcount data .  My data is in this format

 

 FunctionDate
Hire1AJan
Leaver1BFeb
Hire2CMarch
Hire3DJune
Leaver2EJuly
Leaver3FFeb

 

The roll forward should look like this.  I'm not clear on how to get the next month's data to automatically roll forward.

 JanFebMarAprMayJunJul
Total Hdct120121119120120120121
Hire11      
Leaver1 -1     
Hire2  1    
Hire3     1 
Leaver2      -1
Leaver3 -1     
EOM121119120120120121120

1 Reply

  • VijayP's avatar
    VijayP
    Icon for Community Champion rankCommunity Champion

    lab 
    Calculate(sum(value),Filter(allselected(Datesdim),datesdim[Date]>=min(datesdim[date]))
    Try this and let me know, but you must have a date table