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

The Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.

Reply
Anonymous
Not applicable

Remove Blank Records in Line charts from X Axis data series

Hi Team,

 

Ihave a line chart and a measure is used in Values. The X axis is a date range for last 12 months from the current day.When ever the measure is returing a Blank() i.e no values exists for few dates in the data series, the line is shown as a slant line for these blank() values. How can we avoid these slant lines. I mean can we remove dates in teh series when no values exists for those days..

 

Regards

Amar

4 REPLIES 4
amitchandak
Super User
Super User

@Anonymous , You can make blank as 0 in that case

 

Measure = sum(Table[Value])+0

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

Thankyou Amit for quick response.

 

I tried to replace the calculated measure value with 0 when ever we got a blank(), but this is creating all other legends which are not eixisting previously when we had a blank() value. Becaus for all the legends which are not existing previously are now calculated as 0 and showing in the chart..

harshnathani
Community Champion
Community Champion

Hi @Anonymous ,

 

You can try changing the the values to Categorical.

 

1.jpg

 

Regards,

Harsh Nathani

Did I answer your question? Mark my post as a solution! Appreciate with a Kudos!!

Anonymous
Not applicable

Thank you Harsh,

 

When i change it will create a Horizontal Scroll bar and the customer does'nt wants the scroll bar.

Because the line chart is for last 12 months, the customer has to scorll very long to see the pattern(value) changes day by day

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!

FebPBI_Carousel

Power BI Monthly Update - February 2025

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

Feb2025 NL Carousel

Fabric Community Update - February 2025

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