Forum Discussion
Idonotknowthis
2 years agoNew Member
IF Function with multiple conditions
Hello, everyone! New here, so any help is appreciated... I have: Table 1 CaseID a556kk b67rgg v0102g f384kk b68rga c456gk Table 2 CaseID RelatedBug-ID TypeOfBug...
- 2 years ago
output
calculated column :
Column = var ds = FILTER(tbl_2, tbl_2[CaseID] = tbl_1[CaseID] && (tbl_2[TypeOfBug] = "nontech" || tbl_2[TypeOfBug] = "reqtype")) RETURN if( ISEMPTY(ds), "NO", "YES")If my answer helped sort things out for you, i would appreciate a thumbs up 👍 and mark it as the solution ✅ to help other people to find it more quickly .
- Anonymous2 years ago
Hi Idonotknowthis ,
Daniel29195 Great solution, here's mine.AssociatedReq = IF( CALCULATE( COUNTROWS(Table2), FILTER( Table2, Table2[CaseID] = EARLIER(Table1[CaseID]) && (Table2[TypeOfBug] = "nontech" || Table2[TypeOfBug] = "reqtype") ) ) > 0, "Yes", "No" )Final output
Best regards,
Albert He
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly
Daniel29195
2 years agoCommunity Champion
output
calculated column :
Column =
var ds =
FILTER(tbl_2,
tbl_2[CaseID] = tbl_1[CaseID] && (tbl_2[TypeOfBug] = "nontech" || tbl_2[TypeOfBug] = "reqtype"))
RETURN
if( ISEMPTY(ds), "NO", "YES")
If my answer helped sort things out for you, i would appreciate a thumbs up 👍 and mark it as the solution ✅ to help other people to find it more quickly .
Idonotknowthis
2 years agoNew Member
Thank you! It works perfectly!