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
MeganadeVA
Frequent Visitor

Measure to Carry Forward Variance to Future Months

Hello! I am working on a staffing variance report. I need to carry forward a measure for our current staff variance to future months. I have tried the following measure that worked in an old Excel PowerQuery report but it is not working in PowerBI. I also tried PARRELLPERIOD instead of DATESBETWEEN, and could not get it to work. Any help will be appreciated. 

 

VarRF = CALCULATE([StaffVar],DATESBETWEEN(dim_Date[Date],EOMONTH(TODAY(),-2)+1,EOMONTH(TODAY(),-1)))

MeganadeVA_0-1675181768204.png

I would like the VarRF field to to carry -3.36% through Mar. Once we have actual staff for Feb, Mar would then adjust to Feb's variance.

 

 

1 ACCEPTED SOLUTION
MeganadeVA
Frequent Visitor

I ended up figuring this out but thought I'd leave the solution here in case anyone ever has the same problem. The above measure does work; however, not if "Today()" is still in January. Once "TODAY()" was a date in February (like today 2/2/23), the measure works. 

 

MeganadeVA_0-1675359235915.png

 

 

 

View solution in original post

1 REPLY 1
MeganadeVA
Frequent Visitor

I ended up figuring this out but thought I'd leave the solution here in case anyone ever has the same problem. The above measure does work; however, not if "Today()" is still in January. Once "TODAY()" was a date in February (like today 2/2/23), the measure works. 

 

MeganadeVA_0-1675359235915.png

 

 

 

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.