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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
fonsogijon
Frequent Visitor

Check if more than one column has value

Hello,

 

I have created a calculated table as follows and I would like to create a calculated column called "Repeated" doing the following:

IDCol1Col2Col3Col4Repeated
AAA1    
BBB 12 Yes
CCC 3 5Yes
DDD  4  
EEE3  6Yes
FFF 251Yes

 

[Repeated] would be a calculated column that if two or more columns contains a value then it returns "Yes".

All rows have value, but only want to get where rows has values in two or more columns.

The way I was doing it was using IF:

 

Repeated = IF([Col1]>0 && [Col2]>0,"Yes",IF([Col1]>0 && [Col3]>0,"Yes",IF([Col3]>0 && [Col2]>0,"Yes")))
 

But I did when have 3 columns, now I have 4 and I can have more in the future, so I'm asking if you know a better way and simpler way to get that goal.

 

Thank you in advance!!

1 ACCEPTED SOLUTION
fonsogijon
Frequent Visitor

I have just realized I can do it with CONCATENATE and LEN:

 IF(LEN(CONCATENATE([Col1], CONCATENATE( [Col2], CONCATENATE([Col3], [Col4]))))>=2,"Yes")

View solution in original post

1 REPLY 1
fonsogijon
Frequent Visitor

I have just realized I can do it with CONCATENATE and LEN:

 IF(LEN(CONCATENATE([Col1], CONCATENATE( [Col2], CONCATENATE([Col3], [Col4]))))>=2,"Yes")

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

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

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