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
Newguy12
Regular Visitor

How to remove some part of the line graph?

Some of my line graph is flat because it has missing dates or the dates contain the same temperature data as previous dates. how do i remove them? 

 

 

 

Newguy12_0-1690782761635.png

 

 

1 REPLY 1
kpost
Super User
Super User

two solutions.

1) The way I've dealt with situations like this is to create a measure that defaults to blank if the sum is zero.  (This is assuming you KNOW the data should never actually be zero... which, for a temperature readout seems feasible).


MEASURE = 
var line_value = COALESCE(SUM([value]), 0)
return
IF(line_value = 0 , BLANK(), line_value)

2)  If you are okay with the x axis skipping values, change it from "Continuous" to "categorical"

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.