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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

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
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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