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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

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])

Share with Power BI Enthusiasts: 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])

Share with Power BI Enthusiasts: 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
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

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