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 then PowerFx formul...
Power Apps
Answered

If then PowerFx formula column based on choice column

(0) ShareShare
ReportReport
Posted on by 10

I have a choice column in my Dataverse with following choices: "Active", "Inactiv", "Delete", and also with blank values. I want to create a formula column, which displays "No Status" for the blank values, otherwise it takes the values from the choice column. 

This new formula column should optimally be a choice column as well.

I tried this formula, but it didn´t work out:

 

If( IsBlank([crd6c_status]), "Kein Status", [crd6c_status] )

 

I´m grateful for any inputs. 

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

    Hi @Dorottya,

     

    I think you need to be able to display as the text value for the output in this case.  I did the following and it worked but had to evaluate all choices...  I had a Breed which had 4 options...

     

    Switch(Breed, Blank(),"No Breed", 'Breed (Cats)'.Siamese,"Siamese",'Breed (Cats)'.Bengal,"Bengal",'Breed (Cats)'.Sphinx, "Sphinx",'Breed (Cats)'.Tabby,"Tabby") 
    

     

    Note, you could also create a "No Status" option in your Choice field and default the value to this to save having to create a new field...  This way it is a valid option in the choice list and defaulted if none selected...
  • Dorottya Profile Picture
    10 on at

    Thank you! That´s exactly what I wanted! 

    Unfortunately the "No status" as default value method didn´t work out for me, since my choice column gets the data automatecally imported, and the blank values are not considered as no value, and because of that those won´t get the label "No status". 

    Anyways thank you for the solution!

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 739 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 268

Last 30 days Overall leaderboard