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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Pages / How can I refer to a c...
Power Pages
Answered

How can I refer to a choice column from a dataverse formula column

(0) ShareShare
ReportReport
Posted on by 338

Hi there

I can refer to a text column from a dataverse formula column, but when I try to refer to a choice column, it gives an error (see screenshot below where Name Prefix is a choice column).  It wants text and I suspect the error is because a choice is stored as a number, but I can't see how to refer to the text choice values and avoid the error.

Any suggestions?

 

 

MJWhite_0-1712050473025.png

 

Categories:
I have the same question (0)
  • Verified answer
    Jcook Profile Picture
    7,781 Most Valuable Professional on at

    Hello @MJWhite 

     

    Currently, Power fx columns in dataverse can’t use Choice (option set) columns in formula.

    https://learn.microsoft.com/en-us/power-apps/maker/data-platform/formula-columns?tabs=type-or-paste#data-types

     

    what is the use case you are trying to do?

  • MJWhite Profile Picture
    338 on at

    Thanks for the link.  Saves me looking further.  I'll shortly accept your reply as a solution.

     

    I frequently want to do two things:

    • Concatenate text from a text column with text from a choice column, as per the above example
    • Use text from a choice column in an IF statement, either as part of the conditional test, the true response or the false response

    For the moment, I'll continue to use real-time workflows as they can do the above and:

    • Work on the Primary Name column
    • Refer to data in related tables

    I was investigating the Power Fx column because I'm nervous that Microsoft might discontinue functionality which looks old but works (real-time workflows) with functionality that isn't yet fit for purpose but looks new (Power Fx column).

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Pages

#1
DP_Prabh Profile Picture

DP_Prabh 51

#2
rezarizvii Profile Picture

rezarizvii 35

#3
oliver.rodrigues Profile Picture

oliver.rodrigues 29 Most Valuable Professional

Last 30 days Overall leaderboard