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 / Issues with Switch for...
Power Apps
Answered

Issues with Switch formula and drop down

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

I want to send the end users to a different screen based on the selection made in the dropdown box. I have configured the dropdown box with 7 choices and am trying to apply this formula:

 

Switch(SiteSelection.Value, Blaine, Navigate(Blaine, ScreenTransition.None ), Canada, Navigate(Canada, ScreenTransition.None ), Japan, Navigate( Japan, ScreenTransition.None ), Melville, Navigate( Melville, ScreenTransition.None ), Northtec, Navigate( Northtec, ScreenTransition.None ), Oevel, Navigate( Oevel, ScreenTransition.None ), Whitman, Navigate( Whitman, ScreenTransition.None ) )

 

to the Next button in the Action>OnSelect area.

 

The issue I am running into seems to be with the SiteSelection.Value statement. I have tried Text, Item and Items in place of Value with no success. I also tried SiteSelection.Selected.Value and subbing in Text, item and Items with no success. SiteSelection is the name of my drop down. Going by the tutorial found here:

 

https://docs.microsoft.com/en-us/powerapps/maker/canvas-apps/functions/function-if

 

my formula should work. Can anyone tell me what I am doing wrong?

Categories:
  • Edwin-Abdalian Profile Picture
    641 on at

    is it a typo in your formula here the you didn't put the site values in double quotation marks? "Canada" , "Japan" , ...

    and you should use SiteSelection.Selected.Value

  • Verified answer
    v-siky-msft Profile Picture
    Microsoft Employee on at

    Hi @Anonymous ,

     

    Could you share the items property of your drop down?

    If the items of dropdown are text and the field is Value, you should use SiteSelection.Selected.Value to call the selected value.

    On the other hand, it seems you forget the "" on these match values, i.e Blaine, Canada,Japan, etc.

    so please modify your formula as below:

    Switch(SiteSelection.Value, "Blaine", Navigate(Blaine, ScreenTransition.None ), "Canada", Navigate(Canada, ScreenTransition.None ), "Japan", Navigate( Japan, ScreenTransition.None ), "Melville", Navigate( Melville, ScreenTransition.None ), "Northtec", Navigate( Northtec, ScreenTransition.None ), "Oevel", Navigate( Oevel, ScreenTransition.None ), "Whitman", Navigate( Whitman, ScreenTransition.None ) )

    Hope this helps.

    Best regards,

    Sik

    If my post is helpful for you, please click on “Accept as Solution” to help other members find it more quickly.

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Thanks for your reply. The Items Data is: ["Blaine","Canada","Japan","Melville","Northtec","Oevel","Whitman"] and the drop down seems to work fine. The Value is set to Value.

     

    I changed to formula as you suggested above (I did have the quotes in there at first and I forgot to mention I took them out when i was trying different iterations). I tried:

     

    Switch(SiteSelection.Selected.Value, "Blaine", Navigate(Blaine, ScreenTransition.None ), "Canada", Navigate(Canada, ScreenTransition.None ), "Japan", Navigate( Japan, ScreenTransition.None ), "Melville", Navigate( Melville, ScreenTransition.None ), "Northtec", Navigate( Northtec, ScreenTransition.None ), "Oevel", Navigate( Oevel, ScreenTransition.None ), "Whitman", Navigate( Whitman, ScreenTransition.None ) )

     

    And:

     

    Switch(SiteSelection.Value, "Blaine", Navigate(Blaine, ScreenTransition.None ), "Canada", Navigate(Canada, ScreenTransition.None ), "Japan", Navigate( Japan, ScreenTransition.None ), "Melville", Navigate( Melville, ScreenTransition.None ), "Northtec", Navigate( Northtec, ScreenTransition.None ), "Oevel", Navigate( Oevel, ScreenTransition.None ), "Whitman", Navigate( Whitman, ScreenTransition.None ) )

     

    Do I have something entered incorrectly?

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Yes, I took out the quotes when I was trying to fix the issue and forgot to add them back in. As mentioned in my post I have also tried SiteSelection.Selected.Value and it will not work. I replied to someone else with the Item properties as well as an updated formula but it is still not working.

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Fixed - I deleted everything and tried again from scratch and your solution with the SiteSelection.Selected.Value worked this time.

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

#2
WarrenBelz Profile Picture

WarrenBelz 190 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 135

Last 30 days Overall leaderboard