I have two tables, users and purchases. They are inner-joined in the Data Source on a user_id.
For simplicity's sake let's assume that users only have the user_id field. purchases are made up of user_id, amount and category.
Now, I want to create a calculated field for the users table that will resolve to a boolean indicating whether a user had spent at least 200 on purchases with a category of "chair".
In a Pseudo-code/Tableau-langue hybrid, this is what I am looking to achieve:
IF TOTAL(SUM([amount] WHERE category="chair")) >= 200 THEN TRUE ELSE FALSE END