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:
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:
Moving the start date by one day fixes the problem:
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!
Solved! Go to Solution.
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.
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.
Shabnam Watson demos Incremental refresh & Hybrid Tables and Leila Etaati demos Charticulator.
Mark your calendars and join us on Thursday, May 26 at 11a PDT for a great session with Ted Pattison!
User | Count |
---|---|
364 | |
96 | |
64 | |
54 | |
38 |
User | Count |
---|---|
356 | |
110 | |
73 | |
60 | |
50 |