Forum Discussion
Problem with a date filter
- Anonymous4 years ago
Hi jsteffe ,
Slicer just filters the data of the columns in the connexions table, but the measure will not be changed by the selection of the slicer
You can use Flag to filter the date, only the date selected by the slicer is displayed in Visual
Here are the steps you can follow:
1. Create measure.
Flag = var _min=MIN('Calendar'[Date]) var _max=MAX('Calendar'[Date]) return IF( MAX('connexions'[lastConnexionDate])>=_min&&MAX('connexions'[lastConnexionDate])<=_max,1,0)2. Place [Flag]in Filters, set is=1, apply filter.
3. Result:
Best Regards,
Liu Yang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly
Is the date column in your table the same as the date column in your slicer?
Could you share a picture of your model or a demo pbix file?
I get 2 dates :
- one in my table connexions (the one which is in the table)
- one in my calendar date (which is in my slicer).
I put a relationship betxeen these 2 dates in my model.
You get the pbix file there :
https://filez.agro-bordeaux.fr/xs57gp
Thanks,