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

Get certified in Microsoft Fabric—for free! For a limited time, get a free DP-600 exam voucher to use by the end of 2024. 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
Community Champion
Community Champion

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
Community Champion
Community Champion

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
Community Champion
Community Champion

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
November Carousel

Fabric Community Update - November 2024

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

Live Sessions with Fabric DB

Be one of the first to start using Fabric Databases

Starting December 3, join live sessions with database experts and the Fabric product team to learn just how easy it is to get started.

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! Early Bird pricing ends December 9th.

Nov PBI Update Carousel

Power BI Monthly Update - November 2024

Check out the November 2024 Power BI update to learn about new features.