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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
Anonymous
Not applicable

Check 4 columns > Return the one that is not blank.

Hi guys,

 

I swear i have tried everything all searched all the forumns but couldn´t find a solution.

 

Basically, need to check 4 columns and there is a standard:

>> always 3 blanks and 1 filled (in different orders)

 

Need to return the filled value in another column.

 

Many thanks for helping!

Cheers.

 

PBI_Question.png

1 ACCEPTED SOLUTION
v-lili6-msft
Community Support
Community Support

hi  @Anonymous 

In power  query, you could create a conditional column as below:

Home->Add column->Conditional column

1.JPG

 

Regards,

Lin

Community Support Team _ Lin
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

2 REPLIES 2
v-lili6-msft
Community Support
Community Support

hi  @Anonymous 

In power  query, you could create a conditional column as below:

Home->Add column->Conditional column

1.JPG

 

Regards,

Lin

Community Support Team _ Lin
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
amitchandak
Super User
Super User

@Anonymous 

You can use IF/Switch true and isblank , if you are a version before March 2020

if(isblank([Col]),if(isblank[col2]),[col3],[col2]),[col1])

From march you have coalesce

https://docs.microsoft.com/en-us/dax/coalesce-function-dax

coalesce([col1],[col2],[col3])

 

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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