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 / Operators in Switch-Fu...
Power Apps
Answered

Operators in Switch-Function

(0) ShareShare
ReportReport
Posted on by 45

I have a switch function. In that switch function I want to have an operator on a case. So for example:

Switch(
 ThisRecord.CW,
 1, Solved,
 >=7, Solved*2 //it does not work with >=
 )
Categories:
I have the same question (0)
  • Verified answer
    RandyHayes Profile Picture
    76,299 Super User 2024 Season 1 on at

    @TKEnes 

    The switch function will only work with a specific value.  You cannot use operators with it.

    Please consider changing your Formula to the following:

     

    If(ThisRecord.CW = 1, Solved,
     ThisRecord.CW >=7, Solved*2 
    )

     

    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 Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Valantis Profile Picture

Valantis 463

#2
WarrenBelz Profile Picture

WarrenBelz 364 Most Valuable Professional

#3
11manish Profile Picture

11manish 275

Last 30 days Overall leaderboard