I am trying to count number of ids which meet certain requirements:
- over 1k income for month a
- below 500 income for month a + 1
how do I achieve this in tableau? I tried using the following calculated filed: If {fixed [id],month[date]: sum(income)} >=1000 and {fixed [id],month[date]+1: sum(income)} <500 then 1 else 0 end
But not sure whether such month(date) + 1 method worked here.