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 / Maximum Switch statements
Power Apps
Unanswered

Maximum Switch statements

(0) ShareShare
ReportReport
Posted on by 1,257 Super User 2024 Season 1

Is there a maximum number of items you can have in a switch statement?  Looks like I might have approx 25 is this too many? does it affect performance?

Categories:
I have the same question (0)
  • CNT Profile Picture
    10,921 Super User 2024 Season 1 on at

    @vffdd The documentation does not specify any limit. Also there no performance issues because only one branch of the Switch is going to be executed. But....

    ...having 25 branches doesn't seem very good design let alone maintainability of the code!

  • zmorek Profile Picture
    3,272 on at

    I agree with @CNT , perhaps there's a better way to do it? Care to share some specifics and maybe we can help?

  • vffdd Profile Picture
    1,257 Super User 2024 Season 1 on at

    Yeah you are right ! I need to have a think about it myself to see if a more efficient way 🙂 I'll come back to you as will prob need suggestions but going to work on it myself first.. thanks I'll leave this open for the moment if that's ok

  • CNT Profile Picture
    10,921 Super User 2024 Season 1 on at

    @vffdd Let me know if you need any help to redesign!

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!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 542 Most Valuable Professional

#2
Haque Profile Picture

Haque 206

#3
Kalathiya Profile Picture

Kalathiya 201 Super User 2026 Season 1

Last 30 days Overall leaderboard