Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes! Register now.

Reply
Anonymous
Not applicable

Picking the same value from 2 columns under the same table

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?

1 ACCEPTED SOLUTION
Phil_Seamark
Microsoft Employee
Microsoft Employee

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
    )

To learn more about DAX visit : aka.ms/practicalDAX

Proud to be a Datanaut!

View solution in original post

1 REPLY 1
Phil_Seamark
Microsoft Employee
Microsoft Employee

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
    )

To learn more about DAX visit : aka.ms/practicalDAX

Proud to be a Datanaut!

Helpful resources

Announcements
September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors
Top Kudoed Authors