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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

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
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

Check out the June 2025 Power BI update to learn about new features.

June 2025 community update carousel

Fabric Community Update - June 2025

Find out what's new and trending in the Fabric community.