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

Level up your Power BI skills this month - build one visual each week and tell better stories with data! Get started

Reply
mg00842082
Regular Visitor

Urgent : Bar Chart Line is not displaying if there is no data.

Hi All.

 

In Bar Chart pink line y - axis is not displaying for the date 8/25/24 if there is no data.

 

I want to display Pink line in this chart if there is no data it will show as '0' by not showing as below screenshot.

(Note : Pink line should be cut it will cover all the bars in the chart)

mg00842082_0-1726839106032.png

 

Regards,

krishna.

 

2 ACCEPTED SOLUTIONS
SamWiseOwl
Super User
Super User

Hi @mg00842082 

Create a measure or modifiy your existing measure.

Show 0 =
IF(
IsBlank([Your Calculation])

,0

,[Your Calculation]
)

Use this in your visual 🙂


If you are happy with this answer please mark as a solution for others to find !

Kudos are always appreciated! Check out our free Power BI video courses.

View solution in original post

Anonymous
Not applicable

Hi @mg00842082 ,

 

Have a good day. Have you solved the problem?

I followed @SamWiseOwl 's solution and it worked.

Here are the detailed steps.

vxiaocliumsft_0-1727339546361.png

vxiaocliumsft_1-1727339582390.png

If this helps, please consider mark @mg00842082 's solution.

 

Best Regards,

Wearsky

View solution in original post

4 REPLIES 4
Anonymous
Not applicable

Hi @mg00842082 ,

 

Have a good day. Have you solved the problem?

I followed @SamWiseOwl 's solution and it worked.

Here are the detailed steps.

vxiaocliumsft_0-1727339546361.png

vxiaocliumsft_1-1727339582390.png

If this helps, please consider mark @mg00842082 's solution.

 

Best Regards,

Wearsky

SamWiseOwl
Super User
Super User

Which bit isn't working?

  1. Making the measure
  2. Putting the measure in the visual (Line section)
  3. Remove the old field

If you are happy with this answer please mark as a solution for others to find !

Kudos are always appreciated! Check out our free Power BI video courses.

SamWiseOwl
Super User
Super User

Hi @mg00842082 

Create a measure or modifiy your existing measure.

Show 0 =
IF(
IsBlank([Your Calculation])

,0

,[Your Calculation]
)

Use this in your visual 🙂


If you are happy with this answer please mark as a solution for others to find !

Kudos are always appreciated! Check out our free Power BI video courses.

Hi @SamWiseOwl - it is not working can you please tell where to update in filters?

Helpful resources

Announcements
April Power BI Update Carousel

Power BI Monthly Update - April 2026

Check out the April 2026 Power BI update to learn about new features.

Fabric SQL PBI Data Days

Data Days 2026 coming soon!

Sign up to receive a private message when registration opens and key events begin.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

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.