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 Apps
Answered

Variable Error

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Morning, all! 😁

 

 

I am trying to create a variable (see below). ECPark = ECPark column content is "Yes" in the Collection. Though it shows no error in the App Start, when is try to type it in the control it doesn't come up as an option.

 

Set(varIsECPark,If("ECPark" in ParkListCollection.ECPark,"Yes",true);

3csman_0-1608140683094.png

 

Categories:
  • Verified answer
    RandyHayes Profile Picture
    76,299 Super User 2024 Season 1 on at

    @Anonymous 

    You cannot define a variable as both Boolean (true false) and String ("Yes", "No").  In your formula you are trying to do both.  You need to choose one or the other.

     

    I hope this is helpful for you.

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 352 Super User 2026 Season 2

#2
M Bilal Khan Profile Picture

M Bilal Khan 323

#3
Mohsin Ali Profile Picture

Mohsin Ali 226

Last 30 days Overall leaderboard