Forum Discussion
Apply a date filter by default
- 4 years ago
Hi, Anonymous
In the date slider, there is no filtered date and the date slider is an effect on the border, isfiltered function can't distinguish between the two cases.
In your cases, you can use 'enter data' in desktop to create a table like this, and use it as a slicer.
Then create a measure to distinguish whether there is a filter date.
Like this:
number of car sold = IF ( SELECTEDVALUE ( 'table 2'[Date selected] = "No" ), DISTINCTCOUNT ( car[N° car] ), TOTALYTD ( DISTINCTCOUNT ( car[N° car] ), Periode[Date] ) )Did I answer your question? Please mark my reply as solution. Thank you very much.
If not, please feel free to ask me.Best Regards,
Community Support Team _Janey
Hi, Anonymous
In the date slider, there is no filtered date and the date slider is an effect on the border, isfiltered function can't distinguish between the two cases.
In your cases, you can use 'enter data' in desktop to create a table like this, and use it as a slicer.
Then create a measure to distinguish whether there is a filter date.
Like this:
number of car sold =
IF (
SELECTEDVALUE ( 'table 2'[Date selected] = "No" ),
DISTINCTCOUNT ( car[N° car] ),
TOTALYTD ( DISTINCTCOUNT ( car[N° car] ), Periode[Date] )
)
Did I answer your question? Please mark my reply as solution. Thank you very much.
If not, please feel free to ask me.
Best Regards,
Community Support Team _Janey