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
anabianco09
Helper II
Helper II

How to show the line y-axis when there is no data on the y-axis (Line and stacked column chart)?

Hi all, I have a conditional column of whole numbers that changes depending on the date (X-axis).

This conditional column is the value I want to show on the Line Y-axis of a line and stacked column chart.  The Column Y-axis is the count of engines for that week.

 

However, on weeks that I don't have any engines, the line y-axis is cut:

anabianco09_0-1699553438604.png

 

How can I still show the values of the column when something like that happens?

 

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @anabianco09 ,

 

According to your description, here are my steps you can follow as a solution.

(1) This is my test data. 

vtangjiemsft_0-1700460952013.png

(2) Check the box "Show items with no data" and then the result is as follows.

vtangjiemsft_1-1700461114961.png

 

Best Regards,

Neeko Tang

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

9 REPLIES 9
Anonymous
Not applicable

Hi @anabianco09 ,

 

According to your description, here are my steps you can follow as a solution.

(1) This is my test data. 

vtangjiemsft_0-1700460952013.png

(2) Check the box "Show items with no data" and then the result is as follows.

vtangjiemsft_1-1700461114961.png

 

Best Regards,

Neeko Tang

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

MFelix
Super User
Super User

Hi @anabianco09 ,

 

When there is no value what do you want to show the line going to 0?

 

If yes on the measure you are using for the line just add the +0 on the end of the formula.


Regards

Miguel Félix


Did I answer your question? Mark my post as a solution!

Proud to be a Super User!

Check out my blog: Power BI em Português



Hi @MFelix , the line is not a measure, the Line is a column with whole numbers....

I want to show the number that is linked to the dates (which is the X-axis). The number will never be zero.

Hi @anabianco09 ,

 

Accordingly to your initial post there are dates where the numbers are blank correct? What do you want to show in those cases?

 

By default when there is no data the line is break.


Regards

Miguel Félix


Did I answer your question? Mark my post as a solution!

Proud to be a Super User!

Check out my blog: Power BI em Português



There are dates that the column Y-axis is zero indeed.

Is there another way for me to show the line when there is no data on the Y-axis?

Hi @anabianco09,

 

Sorry for insisting on the question but when there is no data on a specific date what do you want to show?

 

If this was a chart with continuous axis the line would be filled out connecting all data points since you are using a categorical x-axis the blanks are not filled, for this we need to have some value. Do you want to keep the value from the last date for example?


Regards

Miguel Félix


Did I answer your question? Mark my post as a solution!

Proud to be a Super User!

Check out my blog: Power BI em Português



Hi Miguel, I want to still show the line. It represents the capacity on our site. So even if there is no production booked that day (main Y-axis), I still want to show the line (secondary Y-axis).

@anabianco09 ,

 

Sorry once again for the question but the column where you are picking up values for the secondaryt axis has values for that specific date?

 

Can you please share a mockup data or sample of your PBIX file. You can use a onedrive, google drive, we transfer or similar link to upload your files.

If the information is sensitive please share it trough private message.


Regards

Miguel Félix


Did I answer your question? Mark my post as a solution!

Proud to be a Super User!

Check out my blog: Power BI em Português



Hi Miguel, thank you so much for the continuous help on this. I tried sending a private message but didn't work. 

I created a database where it would be the same as I have here:

serial_numbercapacitydate

sn1

601/01/2023
sn2

 

6
01/02/2023
sn3

 

6
01/03/2023
-

 

6
01/04/2023
sn4

 

4
01/05/2023
sn5

 

5
01/06/2023
sn6

 

5
01/07/2023
-601/08/2023

 

For my chart, I am showing the count of serial numbers by date (column chart, where the X-axis are the date, and the Y- the count). On a secondary Y-axis, as a line, I want to show the capacity level EVEN IF I dont have any serial number for that month.

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.

Top Solution Authors