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 / Multi Filter Gallery f...
Power Apps
Unanswered

Multi Filter Gallery from Dataverse Table with LookUp Columns

(0) ShareShare
ReportReport
Posted on by

Hello Community,

I've been trying for weeks trying to achieve a multi filtering formula on my gallery which is connected to a Dataverse Table which has multiple Columns (With LookUp Columns), lets just get right into it without any history.

Columns in my dataverse Table
Supplier - (LookUp Column | Text)
Ordernumber - (Single Line of Text)
Department - (LookUp Column | Text)
Article Number - (LookUp Column where the table has also the product name in it | Text)
Product Name - (LookUp Column where the table has also the Article Number in it | Text)
Qty - (Number)
Unit - (LookUp Column | Text)
Date - (Date column)
Company .- (LookUp Column | Text)
Employee - (LookUp Column | Text)

Now my app has 1 dropdown control, (Department column) 2 comboboxes, (Employee & Company Column) 1 Datepicker (Date) & 1 searchbar (for Article Number, Product Name & Ordernumber)

So i want the gallery to dynamically filter my Datasource depending on the values of the controls, the formula must be delegable.

All the formulas I tried does not achieve my requirements (see below) 


VincentGiovanni_1-1710509637192.png

 



If(
    IsBlank(ddDepFilter.Selected.Department) && IsBlank(cbCompanyFilter.Selected.CompanyGUID) && IsBlank(cbAvropareFilter.Selected.Personal) && IsBlank(txtSearch.Text);
    Sort(
        'Inleveranser 2024S';
        'Lev.Datum';
        SortOrder.Descending
    );
    Filter(
        'Inleveranser 2024S';
        IsBlank(ddDepFilter.Selected.Department) || Avdelningar.Department = ddDepFilter.Selected.Department && IsBlank(cbCompanyFilter.Selected.CompanyGUID) || Organisation.CompanyGUID = cbCompanyFilter.Selected.CompanyGUID && (IsBlank(cbAvropareFilter.Selected.Personal) || Avroparen.Personal = cbAvropareFilter.Selected.Personal) && IsBlank(txtSearch.Text) ||
        StartsWith(
            Ordernummer;
            txtSearch.Text
        ) ||
        StartsWith(
            Produkt.Varunummer;
            txtSearch.Text
        ) &&
        StartsWith(
            Produkt.'Produkt Namn';
            txtSearch.Text
        ) &&
        ('Lev.Datum' = dateFilter.SelectedDate)
    )
)

 

I've tried multiple formulas but there's always one or more component missing, search bar for example which filters only Ordernumber or one of the LookUp columns or dropdown/combobox control.

Please help.



Categories:
  • CU18061035-1 Profile Picture
    Microsoft Employee on at

    hey @VincentGiovanni 

     

    can you try this please:

    If(
     IsBlank(ddDepFilter.Selected.Department) && IsBlank(cbCompanyFilter.Selected.CompanyGUID) && IsBlank(cbAvropareFilter.Selected.Personal) && IsBlank(txtSearch.Text),
     Sort('Inleveranser 2024S', 'Lev.Datum', Descending),
     Filter(
     'Inleveranser 2024S',
     (IsBlank(ddDepFilter.Selected.Department) || Avdelningar.Department = ddDepFilter.Selected.Department) &&
     (IsBlank(cbCompanyFilter.Selected.CompanyGUID) || Organisation.CompanyGUID = cbCompanyFilter.Selected.CompanyGUID) &&
     (IsBlank(cbAvropareFilter.Selected.Personal) || Avroparen.Personal = cbAvropareFilter.Selected.Personal) &&
     (IsBlank(txtSearch.Text) ||
     StartsWith(Ordernummer, txtSearch.Text) ||
     StartsWith(Produkt.Varunummer, txtSearch.Text) ||
     StartsWith(Produkt.'Produkt Namn', txtSearch.Text)) &&
     ('Lev.Datum' = dateFilter.SelectedDate || IsBlank(dateFilter.SelectedDate))
     )
    )
    

     

    Let me know if my answer helped solving your issue.

    If it did please accept as solution and give it a thumbs up so we can help others in the community.



    Greetings

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

#2
WarrenBelz Profile Picture

WarrenBelz 188 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 120

Last 30 days Overall leaderboard