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

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more

Reply
Anonymous
Not applicable

Fill in Missing Dates for Multiple Rows

Hi all,

 

I've got a dataset that has four variables that serve as slicers (location, employee type, status1, and status2) by date. Our data system does not create rows for days with zero reports, so my dataset is some missing dates. I've incorporated a date table in Power BI and merged that into the original file so all dates in the range appear in my line chart, with zeros for the blank days.
I need these daily zero counts  to appear on the chart regardless of the combination of slicer values selected. But, since there is no location, employee type, etc. attributed to these rows, the values on the line chart disappear when I click on the slicer selections. How can I make the zeros show for all permutations of slicer selections?

 

Here is the basic design of the report and source data layout. 

 

pbix pic.PNGexcel pic.PNG

 

The PBIX and sample source data are here.

 

Any guidance would be greatly appreciated!

3 REPLIES 3
Greg_Deckler
Community Champion
Community Champion

@Anonymous - So generally you handle that like this:

 

Measure = 
  VAR __Calc = <some calculation goes here>
RETURN
  IF(ISBLANK(__Calc),0,__Calc)


Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...
Anonymous
Not applicable

@Greg_Deckler 

 

Thank you. I tried the measure as suggested and it does not seem to work if any of the slicers are used. If no slicers values are selected, the zero dates appear fine. But when I click on a slicer value, the zero count days disappear, since there is nothing in the zero day data row to correspond to the slicer values of location, type, etc. values being filtered on.

@Anonymous - It sounds like you might want to be using a disconnected table for your slicer. If you do that, then you have much more control over what gets displayed and what does not get displayed.



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

Helpful resources

Announcements
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

60 days of Data Days Carousel

Data Days 2026

Join Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Top Solution Authors