web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / if column contains any...
Power Apps
Answered

if column contains anything then... (New Column)

(0) ShareShare
ReportReport
Posted on by 232

Hi all,

 

I'm trying to make a new formula column that is auto-filled based on other columns. 

It's a fairly simple argument where if a column one contains anything then return column 1, but if column 2 contains anything then return column 2 and so on. I have 9 different columns so the formula could be quite long. I'm unable to choose the coalesce function for some reason.

 

I was hoping that this formula would work but I get errors when inputting it.

If(Not(IsBlank('column1')),'column1',If(not(isblank('column2')),'column2','column3'))

 

 

Any help is appreciated. Thanks in advance.

I have the same question (0)
  • Drew Poggemann Profile Picture
    9,287 Most Valuable Professional on at

    Hi @MD7 ,

     

    I tested with 4 of them and was able to get it to complete without errors following this syntax:

    If(Not(IsBlank(column1)),column1,If(Not(IsBlank(column2)),column2,If(Not(IsBlank(column3)),column3,column4)))
     
    dpoggemann_1-1678110405379.png

     

    What error are you getting?  Is it not accepting your formula?


     

  • md7 Profile Picture
    232 on at

    Hi, thanks for looking into this.

     

    I get the error "The result type OptionSetValue is not supported in formula columns." Does it matter that the columns1, 2, 3 ect are Choice columns? Or could it be something else?

  • Drew Poggemann Profile Picture
    9,287 Most Valuable Professional on at

    Hi @MD7 ,

     

    Not supported currently.  You can only use the following types in a formula column.  My example was text above...

     

    • Text
    • Decimal Number
    • Yes/No (boolean)
    • Date
  • md7 Profile Picture
    232 on at

    Ah that's a shame. Is there an alternative way to add this to a model driven app? Without a new column?

  • Verified answer
    Drew Poggemann Profile Picture
    9,287 Most Valuable Professional on at

    Hi @MD7 I would look at the following.  I would start with Business Rules to see if you can configure that way first.

    1. Business Rules
    2. Real-Time Workflows
    3. Power Automate
  • md7 Profile Picture
    232 on at

    Thanks for your help. I was able to do it by making a workflow using the classic view. I don't fully understand the new flows view.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 765 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 343 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 272

Last 30 days Overall leaderboard