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 CDS collection ...
Power Apps
Answered

Filter CDS collection with multiple dropdowns

(0) ShareShare
ReportReport
Posted on by 109

I have created a collection from a CDS table, and using multiple dropdowns, I'd like to filter it using something like :-

Filter(
'CollApps',
Column1 = Dropdown1.Selected.Value,
Column2 = Dropdown2.Selected.Value,
Column3 = Dropdown3.Selected.Value,
Column4 = Dropdown4.Selected.Value,
Column5 = Dropdown5.Selected.Value
)

Some of the columns are optionset type, and I can't figure out how to translate this from the dropdown values.

This filter works :-

Filter(collApps, 'App Deleted' = 'App Deleted'.No))

but this doesn't

Filter(collApps, 'App Deleted' = "No"))

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

    @bd528 You are right,

    This will work,

    Filter(collApps, 'App Deleted' = 'App Deleted'.No))

    This will not work, b'coz here you are trying to compare Choices (previously called Option Set) to a Text

    Filter(collApps, 'App Deleted' = "No"))

     

    If you are using a DropDown your formula will be something like,

    Filter(
    'CollApps',
    Column1 = Dropdown1.Selected.Value,

    .....

    .....
    )

     

    If you are using a ComboBox your formula will be something like,

    Filter(
    'CollApps',
    Column1 in Combobox1.SelectedItems,

    .....

    .....
    )

     

    Hope this helps!

  • bd528 Profile Picture
    109 on at

    Filter(
    'CollApps',
    Column1 = Dropdown1.Selected.Value,

    .....

    .....
    )

     

    This doesn't work. PowerApps says the left value is optionset, and the right is text.

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

    @bd528 What is the Items property for the Dropdown?

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

    @bd528 The Items property for the Dropdown/Combobox must be,

    Choices('your option set')

  • bd528 Profile Picture
    109 on at

    [true, false]

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

    @bd528 That won't work.

    The Items property for the Dropdown/Combobox must be,

    Choices('your option set')

  • bd528 Profile Picture
    109 on at

    I've changed item for the dropdown to  Choices('App Deleted') and I'm still getting the optionset/text mismatch.

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

    @bd528 Is the Data Type for this Column Choices or Yes/No?

    CNT_0-1622908595716.png

     

    Could you share a screen shot of the error.

     

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

    @bd528 If you are using Choices, the Items property will be,

    Choices('your option set')

     

    If you are using Yes/No, the Items property will be,

    Choices('column name (your table)')

     

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

#2
WarrenBelz Profile Picture

WarrenBelz 188 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 130

Last 30 days Overall leaderboard