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
Anonymous
Not applicable

Line chart show lines without zeros

Hello there,

 

hope you are well,

 

I do not want to show value 0s because it cause dramatic increase/decreases in my line chart.

 

Can you please help.

 

Ahmet_Oz_0-1605860814326.png

 

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@Anonymous , it is continuous axis, so showning blank should work

 

new measure =

if([measure]=0, blank(), [measure])

Full Power BI Video 20 Hours YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

View solution in original post

4 REPLIES 4
amitchandak
Super User
Super User

@Anonymous , it is continuous axis, so showning blank should work

 

new measure =

if([measure]=0, blank(), [measure])

Full Power BI Video 20 Hours YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube
Anonymous
Not applicable

Yes however i need the months, because then they can filter in another line so there can be 2 lines. see below please

 

 

Ahmet_Oz_0-1605861312336.png

 

Rafgva
Frequent Visitor

Hello,

Would be easier if you give some sample data, but as I see it now:

Create a measure to be used in the chart:

 

.Values-skipping-zero =
CALCULATE(
    MAX('YourDataTableName'[YourDataColumn]),
    'YourDataTableName'[YourDataColumn] > 0
)
 
...and use it for the chart in 'Values' field.
 
Your thumb up if that helps will be appreciated.
 
Anonymous
Not applicable

A point on a line consists of an x and and y 

You could remove the point (which means you dont show the months where the values is 0)

 

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.