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 Apps / Compare two types in d...
Power Apps
Unanswered

Compare two types in dataverse(OptionSetValue, Text)

(0) ShareShare
ReportReport
Posted on by 49

Hi folks,

I wanted to make project with using Dataverse. Earlier i used only SharePoint so in this case i should use ExpenseStatus.Value.

But how i can compare that two types in Dataverse?

notitle.png

Categories:
  • Ethan_009 Profile Picture
    4,840 Moderator on at

    Hi @Pabblo_96 ,

     

    Your 1st portion is OptionSet Value enum which is choices of your OptionSet field, this should be on your right side of the equals operator for comparison.

    On the left, you need to have some kind of column or text if the App accepts (to check just flip your current portions)

     

    Note: If you are comparing to some kind of field, then make sure that is on the left and optionValue is on right

     

    Hope this helps

  • Pabblo_96 Profile Picture
    49 on at

     

    It's still doesn't work.

    I'm just trying to filter my gallery with this code:

     

    Filter(ExpenseReports, varGalButtons = "ALL" || 'ExpenseStatus (ExpenseReports)' = varGalButtons)

     

     

    notitle.png
    And this is my varGalButtons. It's OnSelect Set(varGalButtons, ThisItem.Name)

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 405 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 368

#3
WarrenBelz Profile Picture

WarrenBelz 244 Most Valuable Professional

Last 30 days Overall leaderboard