Starting December 3, join live sessions with database experts and the Microsoft product team to learn just how easy it is to get started
Learn moreShape the future of the Fabric Community! Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions. Take survey.
Hello everyone,
I want to return result if value from Column A matches with Value from Column B but with conditions. For example,
IF Date Comparison, FAILED & Qty Comparison, PASS THEN 0
IF Date Comparison, PASS & Qty Comparison, FAILED THEN 0
IF Date Comparison, PASS & Qty Comparison, PASS THEN 1
Thanks!
Solved! Go to Solution.
pls try this
Column = IF( [Date Comparison]= "FAILED" && [Qty Comparison]= "PASS" , 0,
IF ([Date Comparison] = "PASS" && [Qty Comparison]= "FAILED", 0,
IF ([Date Comparison]= "PASS" && [Qty Comparison]= "PASS", 1)))
-----or -----
Column = SWITCH(TRUE(),
[Date Comparison]= "FAILED" && [Qty Comparison]= "PASS" , 0,
[Date Comparison] = "PASS" && [Qty Comparison]= "FAILED", 0,
[Date Comparison]= "PASS" && [Qty Comparison]= "PASS", 1)
This should work. The 9999 is for error handling:
pls try this
Column = IF( [Date Comparison]= "FAILED" && [Qty Comparison]= "PASS" , 0,
IF ([Date Comparison] = "PASS" && [Qty Comparison]= "FAILED", 0,
IF ([Date Comparison]= "PASS" && [Qty Comparison]= "PASS", 1)))
-----or -----
Column = SWITCH(TRUE(),
[Date Comparison]= "FAILED" && [Qty Comparison]= "PASS" , 0,
[Date Comparison] = "PASS" && [Qty Comparison]= "FAILED", 0,
[Date Comparison]= "PASS" && [Qty Comparison]= "PASS", 1)
User | Count |
---|---|
93 | |
90 | |
90 | |
81 | |
49 |
User | Count |
---|---|
156 | |
145 | |
104 | |
72 | |
55 |