cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
oliverblane
Helper III
Helper III

Using a Date Table Slicer with a table that has dates outside Date Table range

I have a date table that includes dates from 1st March 2021 to the present date. I have a table of data that looks like the following:

oliverblane_0-1638814845633.png

I am looking to use the Date column from my date table to slice on Review Date. However, I notice that when the full date table range is selected, then every row in the table of data is included, even the row at the bottom which is outside the date range. This is not the behaviour I want, which is that the bottom row should be excluded (31st December 2021 > present date). However, if I move the beginning of the date slicer by just one day, then the bottom row is excluded as hoped. See below for a demonstration of this:

oliverblane_1-1638815060427.png

Moving the start date by one day fixes the problem:

oliverblane_2-1638815087416.png

I assume that this is an issue with the Review Date being outside of the date table range, but how would I fix this? I like to slice using the date table because it allows me to slice multiple tables using one slicer on a report page.

Thank you for any help on this!

1 ACCEPTED SOLUTION
V-lianl-msft
Community Support
Community Support

Hi @oliverblane ,

 

Try to create a measure like below:

 

Measure = calculate(count('table'[role id]),filter('table','table'[review date]>=min('date'[date])&&'table'[review date]<=max('date'[date])))

 

If the problem persists, can you provide a sample pbix after deleting sensitive data.


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

 

View solution in original post

1 REPLY 1
V-lianl-msft
Community Support
Community Support

Hi @oliverblane ,

 

Try to create a measure like below:

 

Measure = calculate(count('table'[role id]),filter('table','table'[review date]>=min('date'[date])&&'table'[review date]<=max('date'[date])))

 

If the problem persists, can you provide a sample pbix after deleting sensitive data.


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

 

Helpful resources

Announcements
Power BI Show Ep 4 Post Show Carousel.jpg

The Power BI Community Show

Shabnam Watson demos Incremental refresh & Hybrid Tables and Leila Etaati demos Charticulator.

PBI April Release 2022 768x460.png

Check it out!

Click here to read more about the April 2022 updates!

Power BI Dev Camp Session 22 768x460.jpg

Check it out!

Mark your calendars and join us on Thursday, May 26 at 11a PDT for a great session with Ted Pattison!

charticulator_carousel_with_text (1).png

Charticulator Design Challenge

Put your data visualization and design skills to the test! This exciting challenge is happening now through May 31st!