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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
cheid_4838
Helper IV
Helper IV

How to get date slicer to show data with no dates

I have been asked to add a date slicer to the below driver scorecard dashboard.  The date is based on when an event/incident occured with each driver.  What they would like to do is select a date range so the dashboard shows how many events (Total Points) a driver had in a given period of time.  When I select the date range it filters to only those drivers with an incident.  Some drivers have had no incidents so there will be no event date and those drivers do not show up in the dashboard.  How do I get the slicer to show both the drivers with an incident and drivers without an incident since there is no event date listed for those drivers?

 

 

cheid_4838_1-1716911879465.png

 

 

5 REPLIES 5
Ritaf1983
Super User
Super User

Hi @cheid_4838 
If you want to show these drivers with blank cells, you can use the functionality of "show items without data" 

Ritaf1983_0-1716950731182.png

Note that you need the drivers to be in "driver's" table :

Ritaf1983_1-1716950794652.png

If you want them with "0" then you can create a measure like :

accidents qty = DISTINCTCOUNT('Table'[issue id])+0
Result :
Ritaf1983_2-1716951005797.png

pbix with the example is attached

If this post helps, then please consider Accepting it as the solution to help the other members find it more quickly.

Regards,
Rita Fainshtein | Microsoft MVP
https://www.linkedin.com/in/rita-fainshtein/
Blog : https://www.madeiradata.com/profile/ritaf/profile
Anonymous
Not applicable

Hi @cheid_4838 

 

The slicer serves to filter the data.

 

You mentioned that “Some drivers have had no incidents so there will be no event date ”, so the data for those drivers will not be displayed in the date range selected by the slicer.

 

You can create a calculated column in the data model that can be used to assign default dates to drivers that do not have events, and include that date when filtering with the date slicer.

 

"Table"

vnuocmsft_0-1716950751480.png

 

Create a column.

 

Column = 
IF(
    ISBLANK('Table'[date]), 
    CALCULATE(MAX('Table'[date]), FILTER(ALL('Table'), 'Table'[driver] = EARLIER('Table'[driver]))), 
    'Table'[date]
)

 

Here is the result.

 

vnuocmsft_1-1716950839994.png

 

Regards,

Nono Chen

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

I thought this would the solution, but for some reason it's not showing those drivers with no date.    I was expecting to see the data filtered down to those with event dates and without event dates, but that is not happening. I am not seeing drivers with no dates.

 

EventDt =
IF(
    ISBLANK('Driver Scores'[Event Date]),
    CALCULATE(MAX('Driver Scores'[Event Date]),FILTER(ALL('Driver Scores'),'Driver Scores'[Driver ID]=EARLIER('Driver Scores'[Driver ID]))),'Driver Scores'[Event Date])
Anonymous
Not applicable

Hi @cheid_4838 

 

Did you create slicer using the New column?

Is there away to fill in the blank dates with the max date selected from the date slicer?  Is that feasible?

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors