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
AaronLS
Advocate II
Advocate II

Broken Line Charts

Using online report editor against SSAS DM, Line chart has gaps for missing values.  Is there anyway to get the lines to draw down to 0?  I have set "Show items with no data" for the Axis and that didn't help other than showing a month where no values existed.

LineChartGaps.png

8 REPLIES 8
AnneKeli
Regular Visitor

Seeing the same result in my report. Understandable default, but not great design if it's unchangeable. My setup is a "count rows" measure on the unit being evaluated coordinated with a legend based on the column results. with this solution a 0 should equal 0, but still no fix. Hopefully a solution is found or developed soon!

anchalg
Regular Visitor

I am facing excactly the same issue (broken line chart for months where there is no data).

Even replacing blanks with zero isn't working as the blank values are not being actually idenified as "blank".

v-haibl-msft
Microsoft Employee
Microsoft Employee

@AaronLS

 

Is the type of Month column Text? If yes, you will see the “broken” line chart. I think the only way is to fill the missing values with 0 in your SSAS.

If the type of Month column is Date, you should be able to see the continuous line.

 

Best Regards,

Herbert

I'm not sure what you mean by "fill the missing values with 0 in your SSAS".  The measures are aggregations of facts, in this case counts of facts, which returns an integer.  The months missing values are months where there is no related fact record for that intersection of values.  If for example, I add some sort of bogus fact record associated to the axi, then the count of records will be 1. So there isn't any record that can be populated with a 0, because it is a count.

@AaronLS

 

It seems that the Response Count measure may return BLANK(). What about changing your measure like below?

Measure = IF ( Count = BLANK(), 0, Count )

Then if there is no record in one month, the count will be 0 but not BLANK for that month and line chart should not broke any more.

 

Best Regards,

Herbert

Baskar
Resident Rockstar
Resident Rockstar

Hi aaron,

 

The only solution we have on this case in power BI is

 

From your Axis uncheck the "Show items with no data" option. then u can see the continuos axis value.

 

Here no other options 😞

Thanks for the reply.  Unfortunately, empty items on the axis still leaves gaps because other lines may have values for the same months where other lines do not. 

 

 

 

Anonymous
Not applicable

Did you find any solution for this. I am facing the same issue now @AaronLS 

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.