Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
lab
Frequent Visitor

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 1
VijayP
Super User
Super User

@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 




Did I answer your question? Mark my post as a solution! Appreciate your Kudos!!
MY Blog || My YouTube Channel || Connect with me on Linkedin || My Latest Data Story - Ageing Analysis

Proud to be a Super User!


Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.