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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
AnushaMallepadd
Microsoft Employee
Microsoft Employee

Show actual values for previous months and forecast values for forecast month to future months

Hi,

 

I have sales data in single table for 5 scenarios(Actual, Budget, Jan Forecast, Mar Forecast and Jun Forecast).

Actual data is to be displayed for all the months in current year.

Budget data is to be displayed for all the months in current year.

But Forecast data is to be displayed for current year based on Forecast month.

If forecast month is January then Jan forecast sales data is available for whole year.

If forecast month is March then Mar forecast sales data is available only form March to future months of the year and previous months(Jan, Feb) will not have any forecast data.

If forecast month is June then Jun forecast sales data is available only form June to future months of the year and previous months(Jan, Feb,March,April,May) will not have any forecast data.

 

 Scenario    
FiscalMonthActualBudgetJan ForecastMar ForecastJun Forecast
Jan-2210008001250  
Feb-2220009001350  
Mar-223000100014501450 
Apr-224000110015501550 
May-225000120016501650 
Jun-2260001300175017501750
Jul-2270001400185018501850
Aug-2280001500195019501950
Sep-2290001600205020502050
Oct-22100001700215021502150
Nov-22110001800225022502250
Dec-22120001900235023502350

 

Here i want to show the Actual data in place of Empty forecast months.

 

AnushaMallepadd_0-1643183776316.png

 

I have tried doing this by creating a simple DAX measure, but it is not working as expected.

 

If (ISBLANK([March Forecast]) && SELECTEDVALUE('Date' [FiscalYearId]) = 22, [Actual], [Forecast])
 
Can some one please help me to solve this.
 
Thanks,
Anusha
1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@AnushaMallepadd , Try like

 

If (ISBLANK([March Forecast]) && Max('Date' [FiscalYearId]) = 22, [Actual], [Forecast])

 

or

If (ISBLANK([March Forecast]), [Actual], [Forecast])

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

View solution in original post

2 REPLIES 2
amitchandak
Super User
Super User

@AnushaMallepadd , Try like

 

If (ISBLANK([March Forecast]) && Max('Date' [FiscalYearId]) = 22, [Actual], [Forecast])

 

or

If (ISBLANK([March Forecast]), [Actual], [Forecast])

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Hi,

Thanks for your response. This is working when the amount is sliced at higher grain like Fiscal month, but not working when sliced with Scenario.

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI update to learn about new features.

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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.

Top Solution Authors
Top Kudoed Authors