and percent_difference values are created with periodOverPeriodPercentDifference
What I’m trying to do is create a filter, which would keep only the groups (with all months values) if last_month percent_difference is, for example, below 0.
So in the case above, this filter should keep only name_2 values (again, with all months).
It seemed trivial, but turned out to be surprisingly painful.
Hi @Valentin,
So when you try to setup a filter based on the periodoverperiod field, how did you try to set it up and what was the outcome?
If you could provide a screenshot of the filter setup you tested, that would be helpful as well!
In field test_filter_value(max) I see ‘1’ only in last month (if percent difference in last month is below zero) and I need to, I guess, pre-calculate this filter to show ‘1’ for all values if last month’s percent_difference is below zero.
test_filter calculated field now looks like this
So when I add filter ‘test_filter_value’ (aggregation - max) equals ‘1’ I would see all the months for group if last month percent_difference is below zero.
Thank you for the detailed breakdown; so when you add a filter for ‘test_value_filter’ to filter out if it equals zero, that does not remove the whole group?
To get the outcome you’re looking for in the second visual picture, where you have 1’s across the entire row, I believe you would need to account for the max date in your ifelse, that way it would say something like if max date, calculation is less than zero, then apply a 1.
Since we have not heard back from you, I’ll go ahead and close/archive this topic. However, if you have any additional questions, feel free to create a new topic in the community and link this discussion for relevant information.