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

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes! 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
September Power BI Update Carousel

Power BI Monthly Update - September 2025

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

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.

Top Solution Authors
Top Kudoed Authors