Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Apps - Power Apps Pro Dev & ISV
Unanswered

Setting Variables

(0) ShareShare
ReportReport
Posted on by 4
I have a Choice column in a Dataverse table.

The column has 4 different options:
Active
On Hold
Complete
Unresponsive
 
In PowerApps, In the OnSelect property of a button, I want the below YAML
 
Set(
    varMOLDVStatusFL,
    LookUp(
        Choices('Master Ops List DVTS'.'APPLICATION STATUS'),
        Value = "Active"
    )
);

Navigate(MOLDVTableScreen, ScreenTransition.Fade);

The problem is that PowerApps says
 
Incompatible types for comparison. These types can't be compared: OptionSetValue, Text.
 
I've tried using

Set(
    varMOLDVStatusFL,
    LookUp(
        Choices([@'Master Ops List DVTS'].'APPLICATION STATUS'),
        @Value = "Active"
    )
);

Navigate(MOLDVTableScreen, ScreenTransition.Fade);

and tried

Set(
    varMOLDVStatusFL,
    LookUp(
        Choices([@'Master Ops List DVTS'].[APPLICATION STATUS]),
        Value = "Active"
    )
);
Navigate(MOLDVTableScreen, ScreenTransition.Fade);
 
Set(
    varMOLDVStatusFL,
    LookUp(
        Choices('Master Ops List DVTS'.'APPLICATION STATUS'),
        Value(Value) = "Active"
    )
);

Navigate(MOLDVTableScreen, ScreenTransition.Fade);

Different warnings.
 
I want to be able to call this variable in the Items property of a table on another screen.

Why is this happening?
What else can I do?

Please help! 😣 
 

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

Michael Gernaey – Community Spotlight

We are honored to recognize Michael Gernaey as our June 2025 Community…

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard >