Forum Discussion
Dynamic Date Filter
May be add a calculate field on your calendar table called, "Within Campaign Date Range" and add filter on this field, check the syntax for following
WithinCampaignDateRange = if(Calendar[Date]>=Campaign[StartDate] && Calendar[Date]<=Campaign[EndDate], 1, 0)
Now on filter drop WithinCampignDateRange and put condition is 1
It will only show dates where value is 1. Just an idea.
- mcolb889 years agoHelper III
Funny, had that thought too...
DateInCampaign =IF([Call Date] >= [Campaign Start Date] && [Call Date] <= [Campaign End Date], TRUE(), FALSE())
[Campaign Start Date] and [Campaign End Date] are measures calauclated as the min() and Max() of thoise dates in the scenario where mutliple campaigns are selected.
So I drop a table on a report showing the Call Date and DateInCampaign.
When I select a campaign, in the slicer, these Campaign Start and End change, but the values for DateInCampaign do not :(
Thanks for the idea, this should work though right? Or are the calculated columns re-calculated at process time?