web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Filter combo box - Sho...
Power Apps
Unanswered

Filter combo box - Show all rows

(0) ShareShare
ReportReport
Posted on by

Hello, 

 

I'm sure there's an easy way to solve this, but I'm struggling.

 

When the cmb_0_FilterStatus is empty, the galley doesn't show any data, but I need all rows to be shown. Does anybody know the key of this?

ClearCollect(
colFilteredOrderListPool;
With({locFilterPool:

AddColumns(
AddColumns(

Filter(
ShLi_Orders;
'ShLi_Orders (Views)'.'Active ShLi_Orders';

(txt_0_FilterTitle.Text in Subject || txt_0_FilterTitle.Text in OrderId) &&
If(CountRows(cmb_0_Responsible.SelectedItems)>0;ResponsibleMail in cmb_0_Responsible.SelectedItems.userPrincipalName;true)&&
If(CountRows(cmb_0_FilterCustomer.SelectedItems)>0;Customer in cmb_0_FilterCustomer.Selected.Mail;true);

If(varCurrentLanguage="de" && CountRows(cmb_0_FilterStatus.SelectedItems)>0;
'Status (shli_status)' in cmb_0_FilterStatus.SelectedItems.Value;
'Status (shli_status)' in colStatusOrderPool)
;

Deleted = locShowDeleted;
'Created On' >= dt_0_FromDate.SelectedDate

)

;"Kategorie";Category.Name)
;"Verantwortlich";ResponsibleName)


};
If(
locSortColumnPool="0";
SortByColumns(locFilterPool;"shli_orderid";If(locSortOrderPool=SortOrder.Ascending;SortOrder.Ascending;SortOrder.Descending);"shli_orderid";SortOrder.Descending);
locSortColumnPool="1";
SortByColumns(locFilterPool;"shli_customer";If(locSortOrderPool=SortOrder.Ascending;SortOrder.Ascending;SortOrder.Descending);"shli_orderid";SortOrder.Descending);
locSortColumnPool="2";
SortByColumns(locFilterPool;"createdon";If(locSortOrderPool=SortOrder.Ascending;SortOrder.Ascending;SortOrder.Descending);"shli_orderid";SortOrder.Descending);
locSortColumnPool="3";
SortByColumns(locFilterPool;"shli_duedate";If(locSortOrderPool=SortOrder.Ascending;SortOrder.Ascending;SortOrder.Descending);"shli_orderid";SortOrder.Descending);
locSortColumnPool="4";
SortByColumns(locFilterPool;"Verantwortlich";If(locSortOrderPool=SortOrder.Ascending;SortOrder.Ascending;SortOrder.Descending);"shli_orderid";SortOrder.Descending)
;locSortColumnPool="5"
;SortByColumns(locFilterPool;"Kategorie";If(locSortOrderPool=SortOrder.A

 Thanks

Categories:
I have the same question (0)
  • ar87 Profile Picture
    353 on at

    Have you tried using:

     

    IsBlank(cmb_0_FilterStatus.Selected.{FieldName}) Or IsEmpty(cmb_0_FilterStatus.Selected.{FieldName})

     


    instead of counting rows "CountRows(cmb_0_FilterStatus.SelectedItems)>0"?

  • aorro933 Profile Picture
    on at

    I've tried but still missing all rows. I see that the key is here: 

     

     If(varCurrentLanguage="de" && CountRows(cmb_0_FilterStatus.SelectedItems)>0;
    'Status (shli_status)' in cmb_0_FilterStatus.SelectedItems.Value;
    'Status (shli_status)' in colStatusOrderPool)

    But I don't know what else I can implement. 

     

    Thanks for your reply 

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 405 Most Valuable Professional

#2
MS.Ragavendar Profile Picture

MS.Ragavendar 280 Super User 2025 Season 2

#3
Kalathiya Profile Picture

Kalathiya 272

Last 30 days Overall leaderboard