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 / Filtering SQL-table wi...
Power Apps
Unanswered

Filtering SQL-table with multiple values

(0) ShareShare
ReportReport
Posted on by 4

Hi,

 

I have a SQL table called "Prod" that I'm viewing in a gallery.

 

How can I filter and view product A+B+C and so on ? It could potentially be 10-20 products that I want to view from the Prod-table.
If I had a few products I would use and/or operator but here I would use combobox or a collection to use as a filter products.

Categories:
I have the same question (0)
  • Nogueira1306 Profile Picture
    7,390 Super User 2024 Season 1 on at

    Use comboboxes...

    Imagine, in your combobox you have the categorys from the products. In your gallery you write:
    If(

    IsBlank(ComboBox1.Selected),

    Prod,

    Filter(Prod, Category = ComboBox1.Selected)

    )

     

    https://www.youtube.com/watch?v=pjs0ZsnJZXo&t=8s

     

    If you need additional help please tag me in your reply and please like my reply.
    If my reply provided you with a solution, pleased mark it as a solution ✔️!

    Best regards,
    Gonçalo Nogueira

    Check my LinkedIn!

    Check my User Group (pt-PT)!

    Last Post on Community

    My website!

  • ppedersen1985 Profile Picture
    4 on at

    Hi, I can not use product category based filter. For example a user want to list order that contains product A, or B or C or D and so on.

    I have manged to get the right result by using a long filter code:
    Filter(Prod, ProdNo=AAA || ProdNo=BBB || ProdNo=CCC || ProdNo=DDD || ProdNo=DDD and so on...)
    But Im trying to make this more user friendly so each user can select multiple products and filter by this.

    For now I have created a collection that collects the selected product numbers. The question is how to filter another table (orders or customer) to filter based on a table with product numbers.

  • ppedersen1985 Profile Picture
    4 on at

    So to use your example, how can I filter when selecting multiple categories?

    In my case, I want to filter orders based on multiple product numbers and multiple customer numbers.

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 Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Valantis Profile Picture

Valantis 474

#1
Valantis Profile Picture

Valantis 474

#3
WarrenBelz Profile Picture

WarrenBelz 375 Most Valuable Professional

Last 30 days Overall leaderboard