Forum Discussion
How to exclude rows selecting date slicer max and min date ranges
- 5 years ago
Hi, deb_power123
Based on your description, I created data to reproduce your scenario. The pbix file is attached in the end.(All dates are in 'mm/dd/yyyy' format)
Table:
DateDimention(a calculated table):
DateDimention = CALENDARAUTO()There is no relationship between two tables. You may create a measure as below.
Visual Control = IF( SELECTEDVALUE('Table'[SalesDates])<MIN(DateDimention[Date])|| SELECTEDVALUE('Table'[SalesDates])>MAX(DateDimention[Date]), 1,0 )Finally you need to put the measure in the visual level filter and use 'Date' column from 'DateDimention' table to filter the result.
Best Regards
Allan
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi, deb_power123
Based on your description, I created data to reproduce your scenario. The pbix file is attached in the end.(All dates are in 'mm/dd/yyyy' format)
Table:
DateDimention(a calculated table):
DateDimention = CALENDARAUTO()
There is no relationship between two tables. You may create a measure as below.
Visual Control =
IF(
SELECTEDVALUE('Table'[SalesDates])<MIN(DateDimention[Date])||
SELECTEDVALUE('Table'[SalesDates])>MAX(DateDimention[Date]),
1,0
)
Finally you need to put the measure in the visual level filter and use 'Date' column from 'DateDimention' table to filter the result.
Best Regards
Allan
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.