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
peteralberts
New Member

Problem with line chart

I have 2 reports with a "two line" line chart visual.

1. PowerBI report, with excel import data for a forcast 12 month values, and an actual YTD values up to the current month

2. Exact same report logic, but the 2nd PowerBI report MS SQL direct query for a forcast 12 month values, and an actual YTD values up to the current month

 

Problem;

Both reports show the forcasted 12 month values the same and correctly. The excel DB report for the actuals shows up to the YTD current month correctly, and then the line stops at the current month

My problem is that for the actuals in the direct query report, then actuals YTD shows correctly, but then the line carries on at a flatline through to the end of the 12 month period.

 

I have looked at all logic, whatever I could check and stumped with this issue.

 

The users would like the direct query report actual line also to stop at the current month

peteralberts_0-1629317279986.png

Are there possible difference in how imported vs direct query values are presented to the visuals that could cause this, or a setting that I am missing on the visual

Any insights and help to understand appreciated



 

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

Hi @peteralberts ,

 

I couldn't reproduct your problem, the following image is the line chart I created with import and direct query mode, both of which are consistent. 

 

tempsnipsss.png

 

I think you need use a measure, like this:

 

Measure = 
IF(
    SUM('Table'[Resolved Cumulative]) = 0,
    BLANK(), 
    SUM('Table'[Resolved Cumulative])
)

 

If the problem is still not resolved, please provide detailed error information or the expected result you expect. Let me know immediately, looking forward to your reply.

Best Regards,
Winniz

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

3 REPLIES 3
peteralberts
New Member

Thank you, this solution works perfectly

v-kkf-msft
Community Support
Community Support

Hi @peteralberts ,

 

I couldn't reproduct your problem, the following image is the line chart I created with import and direct query mode, both of which are consistent. 

 

tempsnipsss.png

 

I think you need use a measure, like this:

 

Measure = 
IF(
    SUM('Table'[Resolved Cumulative]) = 0,
    BLANK(), 
    SUM('Table'[Resolved Cumulative])
)

 

If the problem is still not resolved, please provide detailed error information or the expected result you expect. Let me know immediately, looking forward to your reply.

Best Regards,
Winniz

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

lbendlin
Super User
Super User

To prevent rendering of future data points change your measure to output BLANK() in such a scenario.

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.

Top Solution Authors