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

Choices

(0) ShareShare
ReportReport
Posted on by 43

Hello everyone,

I have a comboxbox, linked to a Choices (Table.direction).
In the table.direction I have three choices (D1, D2, D3).
I would like to be able to display in the combobox a result according to a variable. Example: if my variable = "1", then the display in the combobox = D1.
I tried to filter in the choices or in the combobox, but without results.
Do you have an idea ?

Thanks in advance.

Categories:
I have the same question (0)
  • Nogueira1306 Profile Picture
    7,390 Super User 2024 Season 1 on at

    I would recommend using a combobox, I always use combobox.

     

    And try this on DefaultSelectedItem:

     

    Switch(Variable,

    1,

    "Option 1",

    2,

    "Option 2",

    "Default Option"

    )

  • ChezWam Profile Picture
    43 on at


    Thanks for your post, however my combobox is linked to a sharepoint list with a choice and I don't see how to select an element of my choice in the combobox based on the variable.

  • Verified answer
    Nogueira1306 Profile Picture
    7,390 Super User 2024 Season 1 on at

    On Dropdown you also have default.. Try this:

     

    Switch(Variable,

    1,

    ["Option 1"],

    2,

    ["Option 2"],

    ["Default Option"]

    )

     

    If you need additional help please tag me in your reply and please like my reply.
    If my reply provided you with a solution, pleased mark it as a solution ✔️!

    Best regards,
    Gonçalo Nogueira

    Check my LinkedIn!

    Check my User Group (pt-PT)!

    Last Post on Community

    My website!

  • ChezWam Profile Picture
    43 on at

    thank you ! 

     

  • Verified answer
    ChezWam Profile Picture
    43 on at

    perfect thank 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

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 358 Most Valuable Professional

#2
11manish Profile Picture

11manish 214 Super User 2026 Season 2

#3
Mohsin Ali Profile Picture

Mohsin Ali 185

Last 30 days Overall leaderboard