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
CuriousGuy001
Helper I
Helper I

Building a Line Chart With Forecast and Actual in One Line

Hi everyone,

 

I am currently building a line chart with forecast and actual in one line. I am stuck in one problem where the "Actual and Forecast" column doesn't display the revenue forecast for the month of June, in the actual revenue I do have few data for June but it is filter out with a measure. 

Screenshot 2024-06-14 084930.png

 

This is the DAX measure,

 

Actual and Forecast =
    VAR LastSalesDate =
        CALCULATE(
            MAX(SalesTeam_YTD[Actual Appointment Date]),
            REMOVEFILTERS()
)
    VAR Actual = [Actual Revenue]
    VAR Forecast =
CALCULATE(
    [Forecast Revenue],
    Filter(
        'Forecast_Plan_2024',
        'Forecast_Plan_2024'[Year 2024]>LastSalesDate
    )
)
VAR Result = Forecast + Actual

RETURN  
Result
 
I would appreciate if anyone can help me, thank you!
1 ACCEPTED SOLUTION

Hi,

 

Thank you! I solved it by adding few June's data and now it is working!

View solution in original post

2 REPLIES 2
some_bih
Super User
Super User

Hi @CuriousGuy001 without your model, it is hard to provide solution for your case.

Still, check example about showing actual and forecast data on link





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!






Hi,

 

Thank you! I solved it by adding few June's data and now it is working!

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.