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

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes! Register now.

Reply
AnthonyJoseph
Resolver III
Resolver III

Show Dates that blank irrespective of the date slicer selection

Hi,

 

I have a table with 4 columns.


AlexAntidius_1-1639654852783.png

 

 

I want to have "Completed or Stat date" column as date slicer and my table visual should show the rows with the blank date (irrespective of date slicer selection) along with the rows falling in the selected date.

For example:
If I filter by dates 1 - June-21 to 31-Dec-21 in "Completed or Stat date".
My table should show all the rows that are in the date range (1 - June-21 to 31-Dec-21) and also the row items that have a blank value in the "Completed or Stat date".

Thanks,

Alex

 

 

1 ACCEPTED SOLUTION
bcdobbs
Community Champion
Community Champion

I would do the following.

1) Create a disconnected date table (if Power Bi puts a relationship in delete it)

 

Date = CALENDARAUTO(12)

 

bcdobbs_1-1639660031850.png

 

2) Add a measure to your table (I called mine Task):

 

Date Filter = 
VAR SelectedDates = 
    CALCULATETABLE (
        VALUES( Task[Completed or Stat Date]),
        TREATAS ( VALUES ( 'Date'[Date] ), Task[Completed or Stat Date] )
    )

VAR RowsToInclude =
    FILTER (
        VALUES( Task[Completed or Stat Date] ),
        SelectedDates || ISBLANK( Task[Completed or Stat Date] )
    )

VAR ShowDate = INT ( NOT ( ISEMPTY ( RowsToInclude ) ) )
    
RETURN 
    ShowDate

 

 

3) Use the date column from your new date table in the slicer.

 

4) In your table visual put the "Date Filter" measure into the visual filter pane and set it to "Is 1"

bcdobbs_2-1639660104071.png

I'm getting I think your desired results:

bcdobbs_4-1639660333848.png

 

 

 



Ben Dobbs

LinkedIn | Twitter | Blog

Did I answer your question? Mark my post as a solution! This will help others on the forum!
Appreciate your Kudos!!

View solution in original post

3 REPLIES 3
Kate_Lashko
Frequent Visitor

Had the same issue. Your solution works! Thank you

bcdobbs
Community Champion
Community Champion

I would do the following.

1) Create a disconnected date table (if Power Bi puts a relationship in delete it)

 

Date = CALENDARAUTO(12)

 

bcdobbs_1-1639660031850.png

 

2) Add a measure to your table (I called mine Task):

 

Date Filter = 
VAR SelectedDates = 
    CALCULATETABLE (
        VALUES( Task[Completed or Stat Date]),
        TREATAS ( VALUES ( 'Date'[Date] ), Task[Completed or Stat Date] )
    )

VAR RowsToInclude =
    FILTER (
        VALUES( Task[Completed or Stat Date] ),
        SelectedDates || ISBLANK( Task[Completed or Stat Date] )
    )

VAR ShowDate = INT ( NOT ( ISEMPTY ( RowsToInclude ) ) )
    
RETURN 
    ShowDate

 

 

3) Use the date column from your new date table in the slicer.

 

4) In your table visual put the "Date Filter" measure into the visual filter pane and set it to "Is 1"

bcdobbs_2-1639660104071.png

I'm getting I think your desired results:

bcdobbs_4-1639660333848.png

 

 

 



Ben Dobbs

LinkedIn | Twitter | Blog

Did I answer your question? Mark my post as a solution! This will help others on the forum!
Appreciate your Kudos!!

Works perfectly as expected. Thank you so much 🙂

Helpful resources

Announcements
September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 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.