Forum Discussion
Setting variable dates as filters
- Anonymous6 years ago
I've actually managed to fix this!
Turns out I had a filter being applied via another slicer which was changing the date ranges and therefore not applying the assumed window.
Thanks anyway all!
Hi Anonymous ,
Very weird, using your formula I can return the correct result.
Measure =
VAR x =
CALCULATE(
MIN(RawData[Date]),
FILTER(
RawData,
RawData[Type] = "after"
)
)
VAR y = x + [Years Value]*365
RETURN
CALCULATE(
COUNT(RawData[Ref]),
FILTER(
RawData,
[Date] >= x && [Date] <= y
)
)(Fact table)
(What IF parameter)
Could you provide more information about the problem you have met?
Best regards,
Lionel Chen
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
I've actually managed to fix this!
Turns out I had a filter being applied via another slicer which was changing the date ranges and therefore not applying the assumed window.
Thanks anyway all!
- v-lionel-msft6 years agoCommunity Support
Hi Anonymous ,
If your problem has been solved, please consider Accept it as the solution to help the other members find it more quickly.Best regards,
Lionel Chen