Forum Discussion
dynamic date filter
Hi,
I have a Fact table "Reporting AllPolicies(Yellow Table) and I want to filter that base on that based on the users selection on the slicer "Accounting Date (Green Drop Down).
I have added a measure on the Yellow table to get the selected value from the slicer ("_SelectedDate")
Then I have added a new column and thought a basic if statement would allow me to filter the results.
See formula "_InForce" =
Hi Anonymous
Try MAX(PolicyInceptionDate) it should give a the right result, measure will need some sort of aggregation as it does not have a row context.Hope this helps
Mariusz
3 Replies
- MariuszCommunity Champion
HI Anonymous
You need to use Measure instad of a ColumnMariusz
- AnonymousNot applicable
Thanks for responding Mariusz
I thought I would try a measure, but as part of the if statement I couldn't choose the field "PolicyInceptionDate"
- MariuszCommunity Champion
Hi Anonymous
Try MAX(PolicyInceptionDate) it should give a the right result, measure will need some sort of aggregation as it does not have a row context.Hope this helps
Mariusz