Forum Discussion
jonnyA
Responsive Resident
3 years agoNeed help Updating a working formula
I have the following formula which works, (but i need to add a 3rd option) ↓
State Medicare Mix Test = CALCULATE([Visits],FILTER(vw_Demo_Charge_Dataset_BP, or( vw_Demo_Charge_Dataset_BP[Insurance_Type] = "HMO Medicare", vw_Demo_Charge_Dataset_BP[Insurance_Type] = "Medicare", vw_UHC_Charge_Dataset_BP[Insurance_Type] = "Medicare")))
But I also need to include "USA State Plan" as a 3rd option.
Can anyone help me on completing the formula?
Does it have something to do with the OR (Highlighted yellow)
Thanks in advance!
2 Replies
- Ahmedx
Super User
pls tru this
State Medicare Mix Test = CALCULATE( [Visits], vw_Demo_Charge_Dataset_BP[Insurance_Type] in { "HMO Medicare", "Medicare","Medicare","USA State Plan"} ) - AnonymousNot applicable
State Medicare Mix Test = CALCULATE([Visits], vw_Demo_Charge_Dataset_BP[Insurance_Type] IN {"HMO Medicare", "Medicare", "USA State Plan"})