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

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! 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
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

60 days of Data Days Carousel

Data Days 2026

Join Fabric Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.