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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
BoringName
Frequent Visitor

Line chart blank values +0 not working

Hiya,

I'm having trouble with a line chart refusing to show values as zero instead of blanks. I know many people on here have had similar issues, but none of the solutions seem to work on this one so I'd be super grateful if anyone can suss it out!

 

I've created some dummy data but can't upload the pbix file so please let me know if you need any additional info.

monthidperm_tempnewstarter
Jan-22id01perm 
Jan-22id02temp 
Jan-22id03permnew to org
Feb-22id01perm 
Feb-22id02temp 
Feb-22id03perm 
Feb-22id04tempnew to dep
Mar-22id01perm 
Mar-22id02temp 
Mar-22id03perm 
Mar-22id04temp 
Apr-22id01perm 
Apr-22id02temp 
Apr-22id03perm 
Apr-22id04temp 
Apr-22id05permnew to org
Apr-22id06tempnew to org
Apr-22id07permnew to dep
May-22id01perm 
May-22id02temp 
May-22id03perm 
May-22id04temp 
May-22id05perm 
May-22id06temp 
May-22id07perm 

*note that the empty cells in newstarter are null

 

I created a measure 'Starters' to plot the chart (as you can see, I already tried a number of variations and had a couple still commented out in there):

Starters =
VAR Result = count('Table'[newstarter])
//return Result
return Result+0
//return if(Result = blank(), 0, Result)
//return if(max('Table'[newstarter]) in values('Table'[newstarter]) , Result+0, blank())

What I want (sorry I forgot to erase the '(Blank)' line, but I should be able to just filter that out after anyway):
Capture2.PNG
 
What I get ("return Result" vs. "return Result+0"):
Capture5.PNGCapture1.PNG
 
On a side note, weirdly it works when using perm_temp as the legend instead, I imagine it's something to do with the nulls in the newstarter field but don't understand why ("return Result" vs. "return Result+0"):
Capture4.PNGCapture3.PNG(side, side note, I unintentially made the 'perm/temp' breakdown look the same as the 'new to org/dep' breakdown)
 
Thanks in advance!
1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@BoringName , Prefer to have a separate date table , and they try +0 and this option

 

Show item with No data new.png

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
Priya1969
Resolver I
Resolver I

For removing blank values, in the below link, I explained in step by step.

https://community.powerbi.com/t5/Desktop/Matrix-Table-Visual-Breakdown-Drilldown-by-Column/m-p/30156...

Thanks, however I need to keep the blank values for some of the other stuff. Someone else sorted it with using a separate date table though so all good. Cheers

amitchandak
Super User
Super User

@BoringName , Prefer to have a separate date table , and they try +0 and this option

 

Show item with No data new.png

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

Legend, thank you!

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.

Top Solution Authors