Forum Discussion
Create a Dynamic Flag based off a Date Range Slicer
Hi geraldb ,
This should do the "trick".
Flag = calculate( COUNTROWS(Projects), filter(Projects, Projects[Start Date]<Max('date'[Date]) && Projects[Finish Date]>Min('date'[Date])))Jan
- geraldb6 years agoNew Member
Jan;
Thanks for your help with this! I am still running into an error, however. When I create the measure I get an error saying, "Cannot find table 'date'." From your screenshots it looks like this should be the slicer, but the meausre doesn't seem to recognize it, how do i identify the slicer in a way that the measure can read it?
Thanks
Gerry
- Anonymous6 years agoNot applicable
Hi Gerald,
I assumed that you have a "date" table in you model. Typically it would be the same field that you use in your "Active Date Range" slicer. So if you table/field is called 'Dates'[Active Date Range] then you need to substitute 'date[Date]' with 'Dates'[Active Date Range].
Hope this helps, otherwise a bit more information is required.
Jan