Forum Discussion
jcastr02
5 years agoPost Prodigy
Filtering based on two calculated columns using OR
I have two calculated columns with results either showing "yes" or "no" based on due dates. How can I filter to show results that are Yes for column A OR Yes for Column B Column A ...
amitchandak
5 years agoSuper User
jcastr02 , Try a measure like
calculate(countrows(Table), filter(Table, table[Column A] = "Yes" || table[Column B] = "Yes"))
- jcastr025 years agoPost Prodigy
Hello amitchandak I tried that but all the values are coming up the same. Looking for it to show "include" if Either column "Accept SLA late?"="yes" OR "Fix SLA late?"="yes" if not , Exclude...
- amitchandak5 years agoSuper User
jcastr02 , I suggested a measure.
For a column
if(table[Column A] = "Yes" || table[Column B] = "Yes" , "Include", "Exclude") // One is yes
or
if(table[Column A] = "Yes" && table[Column B] = "Yes" , "Include", "Exclude") // Both should be yes