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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. 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

v-xiaocliu-msft
Community Support
Community Support

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
v-xiaocliu-msft
Community Support
Community Support

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
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Prices go up Feb. 11th.

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

Jan NL Carousel

Fabric Community Update - January 2025

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