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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
dclaudio
Frequent Visitor

Need help with a very specific If/Then formula

I am trying to get an estimated budget number each month.  Here is what the relevant data looks like:

 

 Week 1 (Days 1-7)Week 2 (Days 8-14)Week 3 (days 15-21)Week 4 (Days 22-28)Week 5 (Days 29-31)
2023 Actuals100----
2023 Esitmate100    
2022 Actuals200190202250198

 

What I want is to calculate the "2023 Estimate" using the formula [(Month to date actuals/same period last year actuals)*same period last year actuals] ONLY if the current week is not complete.  When I have 2023 actuals, I would like that value to appear in the 2023 estimate cell for that week.  Im thinking something like (for week 2) if 'pst'(settlementdate) days < 15, then use the above formula.  ELSE it shoudl = 2023 actuals for the same period.  Help!

1 REPLY 1
lbendlin
Super User
Super User

Read about COALESCE

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.