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 / Parsing dropdown selec...
Power Apps
Unanswered

Parsing dropdown selected items to control visibility of another datacard

(0) ShareShare
ReportReport
Posted on by 13

I have a PowerApps dropdown whose source is a SharePoint choice field with multiple selections enabled.
Dropdown (DataCard4) is working great and includes values US, CAN, EMEA, LAC, APAC.
If "US" is one of the choices selected I need to make another card (DataCard1) visible similar to the example below:
Example --> DataCard1 Visible Property = If(DataCardValue4.selected.value = "US", true, false)
Of course, "Selected.Value" only returns the last value selected so if US in part of a collection of selected values and not the last one selected my visibility property does not work correctly.
As part of debugging I am able to write the values selected in DataCard4 using the following syntax:

Concat (DataCardValue4.SelectedItems,Value,",") < --- writing to a text box / debugging only
How can I parse the selected values in DataCard4 and IF "US" is included control the visibility of DataCard1?

 

Categories:
  • zmansuri Profile Picture
    6,048 Super User 2024 Season 1 on at

    "US" In DataCardValue4.SelectedItems

     

    Just write this in the visible property of the datacard. You don't need if condition. If one of the selected item is US the datacard will be visible

  • MojoMike Profile Picture
    13 on at

    @zmansuri  Thank you for the quick response.  Still not working.  Below is some syntax I have tried.

     

    DataCardValue4.Selected.Value = "US" -- > This works but only when "US" is the last or only selected item

    If("US" in DataCardValue4.SelectedItems, true, false)   -- > Syntax is good but visible property when "US" not working

    "US" in DataCardValue4.SelectedItems  -- > Syntax is good but visible property when "US" not working

  • zmansuri Profile Picture
    6,048 Super User 2024 Season 1 on at

    Works on my side. 

    Can you share the combobox items property?

    a7.pnga6.png

  • MojoMike Profile Picture
    13 on at

    MojoMike_0-1673359927065.pngMojoMike_1-1673359961652.png

    More in next response ...

  • MojoMike Profile Picture
    13 on at

    MojoMike_2-1673360038889.png

     

  • MojoMike Profile Picture
    13 on at

    MojoMike_3-1673360073771.png

     

  • MojoMike Profile Picture
    13 on at

    Thank you SOOOOO much for looking at this for me!  🤓

    Currently showing Territory group because i have it set to "true"

    MojoMike_0-1673360469436.png

     

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

#2
M Bilal Khan Profile Picture

M Bilal Khan 271

#3
Mohsin Ali Profile Picture

Mohsin Ali 239

Last 30 days Overall leaderboard