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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
FEninja_
Frequent Visitor

Unexpected Blank Values

Hey, I am trying to create a forecast line that starts where actual data ends. However, I am getting unexpected results and was wondering if somene can share some insight.
My goal is to create something that looks like this:

FEninja__6-1677618246179.png


However my issue is that for some reason the variable in my DAX is causing issues when returning the numerical Value.

 

For example: When I hardcode the # 44 into the DAX - the expression works and the forecast line is visible. However when I reference the variable lastScope - the line is not visible and the value is not 44. (Screenshots below)


I am currently here:

FEninja__4-1677618073657.png

FEninja__3-1677618045091.png

 

FEninja__7-1677618402142.png

 

FEninja__5-1677618113083.png
Any thoughts on what I may be doing wrong? I imagine it could be a filter context issue?

 

1 ACCEPTED SOLUTION
v-stephen-msft
Community Support
Community Support

Hi @FEninja_ ,

 

You can try replacing 'DATE' with ALLSELECTED('DATE').

27.png

 

And if your data is regular to forecast, you can try the forecast line under analyze.

vstephenmsft_0-1677725302539.png

Use the Analytics pane in Power BI Desktop - Power BI | Microsoft Learn

 

   

                                                                                                                                                         

Best Regards,

Stephen Tao

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.           

View solution in original post

1 REPLY 1
v-stephen-msft
Community Support
Community Support

Hi @FEninja_ ,

 

You can try replacing 'DATE' with ALLSELECTED('DATE').

27.png

 

And if your data is regular to forecast, you can try the forecast line under analyze.

vstephenmsft_0-1677725302539.png

Use the Analytics pane in Power BI Desktop - Power BI | Microsoft Learn

 

   

                                                                                                                                                         

Best Regards,

Stephen Tao

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.           

Helpful resources

Announcements
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel

Power BI Monthly Update - May 2024

Check out the May 2024 Power BI update to learn about new features.

LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.