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 combobox

(0) ShareShare
ReportReport
Posted on by 10

Hi,

I have go a problem when i use combobox

In my combobox i have Filter(DATABASE;column); column is control

In my gallery i have 

Spoiler (Highlight to read)
SortByColumns(Search(DATABSE;TextInput1.Text;"Title";"XX";"YY");"Title";If(SortDescending1;Descending;Ascending))
SortByColumns(Search(DATABSE;TextInput1.Text;"Title";"XX";"YY");"Title";If(SortDescending1;Descending;Ascending))

 

I can't add the code for my choice/control

 

What to do ?

thx,

Categories:
  • WarrenBelz Profile Picture
    156,940 Most Valuable Professional on at

    Hi @Val2 ,

    You just need to Filter on the Combo Box output

    SortByColumns(
     Search(
     Filter(
     DATABSE;
     Column=YourCBName.Selected.Column
     );
     TextInput1.Text;
     "Title";
     "XX";
     "YY"
     );
     "Title";
     If(
     SortDescending1;
     Descending;Ascending
     )
    )

     

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

  • Val2 Profile Picture
    10 on at

    Hi @WarrenBelz 
    It does not work...
    I have nothing in he combobox. 

    Val2_0-1613422200825.png

    So in th "App" ther is nothing?
    Combobox -> Items : 

     

    Filter(DATABASE;column);

     

    Val2_0-1613422638199.png

     


    Gallery -> items

     

    SortByColumns(
     Search(
     Filter(
     DATABSE;
     Column=YourCBName.Selected.Column
     );
     TextInput1.Text;
     "Title";
     "XX";
     "YY"
     );
     "Title";
     If(
     SortDescending1;
     Descending;Ascending
     )
    )

     

    Val2_1-1613422656320.png

     

     😕

  • WarrenBelz Profile Picture
    156,940 Most Valuable Professional on at

    @Val2 ,

    I thought your question was about filtering the gallery with the combo box output. You did not say your combo box contained no data.

    You simply need a valid filter in your combo box that produces data. You also need to specify which column is displayed in the combo box with the Edit function at the right.

     

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

  • Val2 Profile Picture
    10 on at

    @WarrenBelz With this menu, I haven't got my column choice ....

    I want can search and have choice or filter to my gallery
    With "Choices" i've got my data, so I think that i have to use it. But I don't know write in my gallery... I replaced "Filter" by "Choices" and it doesn't work 😕

  • Val2 Profile Picture
    10 on at

    I advance... It's OK, but I want add the 2 choices,  In the choice 1 or 2, i want have many choices, the "selectMultiple" is true" the 2 combobox for have 1 filter more reduced with this 2choices... 
    Now, I don't know how to write it 😕

    As a reminder :
    In my App :

     

     

     

    ClearCollect(
     AvailableOptions;
     Choices(DATABASE.XX);
     Choices(DATABASE.YY)
    )

     

     

     


    In my ComboBox1 : "Choices(DATABASE.XX)"
    In my ComboBox : "Choices(DATABASE.YY)"

    In my gallery 

     

     

     

    SortByColumns(
    	Search(
     Filter(
     	 DATABASE;
     XX.Value = ComboBox1.Selected.Value && YY.Value = ComboBox2.Selected.Value);
     	 TextInput1.Text;
     	 "Title";
     	 "AA";
     	 "ZZ");
     "Title";
     If(
     SortDescending1;
     Descending;
     Ascending
     )
     
    )

     

     

     

     Thanks for your help!

  • Verified answer
    WarrenBelz Profile Picture
    156,940 Most Valuable Professional on at

    @Val2 ,

    I was responding to your last message, but it seems to have been deleted. For multiple Choices you need this

    SortByColumns(
     Search(
     Filter(
     DATABASE;
     XX.Value in ComboBox1.SelectedItems && YY.Value = ComboBox2.SelectedItems
     );
     TextInput1.Text;
     "Title";
     "AA";
     "ZZ"
     );
     "Title";
     If(
     SortDescending1;
     Descending;
     Ascending
     )
    ) 

     

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

  • WarrenBelz Profile Picture
    156,940 Most Valuable Professional on at

    Hi @Val2 ,

    Just checking if you got the result you were looking for on this thread. Happy to help further if not.

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

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

#2
WarrenBelz Profile Picture

WarrenBelz 192 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 135

Last 30 days Overall leaderboard