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 / combobox and gallery
Power Apps
Answered

combobox and gallery

(0) ShareShare
ReportReport
Posted on by 141

norashura_1-1693986433662.png

Hello Everyone,
i am  able to view all list when the combobox  search field is empty but another issue arise is when i try to insert data in combobox field . the gallery wont display what i searched for in the combobox . btw, this is the code that i insert in gallery item field
SortByColumns(
Filter(
[@'***** Lesson Learn'],
IsBlank(ComboBox.Selected) || ComboBox.Selected.'Project Name' = " "
),
"Title",
If(
SortDescending1,
SortOrder.Descending,
SortOrder.Ascending
)
)

extra question: in my gallery i have 5 columns, is it possible to display only 1 column at a time using checklist feature?

Categories:
I have the same question (0)
  • Verified answer
    LaurensM Profile Picture
    12,516 Moderator on at

    Hi @norashura,

     

    Your Filter condition is currently not linked to a field within your datasource. You will have to add which column the selected 'Project Name' maps to in your data source:

    SortByColumns(
     Filter(
     [@'***** Lesson Learn'],
     //Currently linked it to the project name field, adjust to the correct column if needed
     IsBlank(ComboBox.Selected.'Project Name') || ComboBox.Selected.'Project Name' = 'Project Name'
     ),
     "Title",
     If(
     SortDescending1,
     SortOrder.Descending,
     SortOrder.Ascending
     )
    )

     

    Since you are already displaying a few columns you could work with dynamic visibility, X and Y values and only display certain header labels / gallery labels when a checkbox is checked. Example Project Name:

    //Visible property (same logic for the gallery project name label)
    ckbProjectName.Value = true

     

    Alternatively you could create a dropdown with the following values as an example:

    ["Project Name", "Title"]

     

    Instead of having several header labels, you would have 1 that displays text depending on the selection:

    //Text property Header label
    ColumnDropdown.Selected.Value

     

    The Text property of the label within your gallery would be:

    Switch(
     ColumnDropdown.Selected.Value,
     "Project Name",
     ThisItem.'Project Name',
     "Title",
     ThisItem.Title
    )

     

    If this solves your question, would you be so kind as to accept it as a solution & give it a thumbs up.

    Thanks!

  • norashura Profile Picture
    141 on at

    it works, thank you so much.

    norashura_0-1694049988359.png

    the function search and filter is now working the way i wanted

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

#2
11manish Profile Picture

11manish 225 Super User 2026 Season 2

#3
Mohsin Ali Profile Picture

Mohsin Ali 211

Last 30 days Overall leaderboard