The ultimate Microsoft Fabric, Power BI, Azure AI, and SQL learning event: Join us in Stockholm, September 24-27, 2024.
Save €200 with code MSCUST on top of early bird pricing!
Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started
Hi,
How do i compare text across multiple columns ignoring any blanks and ignoring case.
e.g.
Column1 | Column2 | Column3 | Column4 | Column5 | Expected Result |
cat | cat | cat | cat | cat | TRUE |
cat | Cat | CAT | cat | cat | TRUE |
cat | cat | TRUE | |||
cat | cat | cater | cat | cat | FALSE |
In Excel, i used the following formula and it worked fine:
=SUMPRODUCT((A2:E2<>"")/COUNTIF(A2:E2,A2:E2&""))=1
Thanks for any help.
Solved! Go to Solution.
Both Solutions work. Thank You so much.
here's a fun way:
= SWITCH(TRUE(),[Column1]<>[Column2],FALSE(),[Column1]<>[Column3],FALSE(),[Column1]<>[Column4],FALSE(),[Column1]<>[Column5],FALSE(),TRUE())
Doesn't seem to work if there are any blank columns.
Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.
Check out the August 2024 Power BI update to learn about new features.
User | Count |
---|---|
21 | |
20 | |
17 | |
15 | |
13 |
User | Count |
---|---|
42 | |
36 | |
23 | |
22 | |
17 |