I am attempting to create a flag in Tableau. I have rules that are created for tables that are running daily. The rules have a column that identify the category of rule for example RC001, DC001, FC001. I want to look at what rules run for the most recent day, and create a flag that says if rule types (RC001 OR RC003) AND DC001 AND NC001 AND (FR001 OR SC001) AND SL001 all ran then I want to give it a value of 1 else 0. Eventually I want to turn this into a visualization to show what percentage of tables aligned to a particular domain are checking all of the rule types and which are not.
I tried creating a flag, but I am very novice, and have no idea what I am doing in Tableau. Here was one of my attempts at this which just throws me a syntax error. Not sure how to program this. Maybe I need a parameter? Not sure.
CASE
WHEN
[Rule Type Id]=((RC001 OR RC003)
AND NC001
AND DC001
AND (FR001 OR SC001)
AND SL001)
THEN 1
ELSE 0
END