Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.
Hello Guys
I need your help
I need to create a new column, searching one specific value in two different columns in the same table and bringing a value like 1 or 0
Ideally, it should be something like below:
Column = SEARCH("client1",[Column X ],1,0) || SEARCH("client1",[Column Y],1,0)
Could you please help me?
Solved! Go to Solution.
Hi @Anonymous
Have you tried something like this?
Column = IF ( SEARCH("client1" , 'Table2'[Column X] , 1 , 0 ) > 0 || SEARCH("client1" , 'Table2'[Column y] , 1 , 0 ) > 0 , --THEN -- 1 , -- ELSE -- 0 )
Hi @Anonymous
Have you tried something like this?
Column = IF ( SEARCH("client1" , 'Table2'[Column X] , 1 , 0 ) > 0 || SEARCH("client1" , 'Table2'[Column y] , 1 , 0 ) > 0 , --THEN -- 1 , -- ELSE -- 0 )