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 / Filter a Gallery based...
Power Apps
Answered

Filter a Gallery based on the selected value in a Data Card of the Allowed Values type

(0) ShareShare
ReportReport
Posted on by 15

Hi All,

 

I have a screen that contains an Edit Form and a Gallery. When the users change one of the values in a Data Card (it is a drop down with allowed values), I want to filter the gallery with that data. I was able to make this work on another screen that was using a normal drop-down input object that was not inside of an edit form.

 

My edit for object is DataCardValue8 and my gallery filter is currently: Filter(L_ITDowntime_ApplicationLookup,Title=DataCardValue8.SelectedText.Value)

 

I've tried also just referencing the value in the data card in a text label using this as the text value:

"Selected Dept: " & DataCardValue8.SelectedText.Value

 

However, both the gallery and the text label are returning blank/null when referencing DataCardValue8.SelectedText.Value, even though there is an item selected. Any ideas on what I need to do to reference the selected text in an allowed values data card on an edit form?

2022-12-07_9-29-07.png
Categories:
I have the same question (0)
  • SebS Profile Picture
    4,867 Super User 2026 Season 2 on at

    @BrandyS 

     

    Please try to use :

     

    DataCardValue8.Selected.Value

     

  • BrandyS Profile Picture
    15 on at

    Hi Seb,

     

    That returns an Error. I believe you can only use .Selected.Value for a Text Input object, and not a drop-down object.

    2022-12-07_10-36-40.png
  • SebS Profile Picture
    4,867 Super User 2026 Season 2 on at

    @BrandyS  

    SelectedText as far I’m aware will be taken out soon so the other option you can try is Selected.”ColumnName” try this and let me know 

  • Verified answer
    BrandyS Profile Picture
    15 on at

    That also is not working, I still get a NULL value. 

    I ended up creating a Drop-Down object outside of the edit form that I was able to reference. Then I filtered by gallery based on that drop-down, and I set the default value of the Data Card to that Drop-Down as well. 

     

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 392 Most Valuable Professional

#2
11manish Profile Picture

11manish 136 Super User 2026 Season 2

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 109 Super User 2026 Season 2

Last 30 days Overall leaderboard