cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Hayes3d
Level 8

!IsEmpty for a nested table in collection returns all items

I'm working on an app for on-call from a SharePoint list. The "On Call" column in the list is a multi-select choice field.

 

I tried to pull all of the data into a collection as the data is small and to reduce calls back to the site for filtering. In doing so, that column becomes a table within the collection.

 

Trying to use: Filter(ColTeamMembers,!IsEmpty(ColTeamMembers.'On Call')) returns every row in the collection. I did a CountRows(ThisItem.'On Call') and most of them are a 0. What am I missing?

1 ACCEPTED SOLUTION

Accepted Solutions
Super User
Super User

Re: !IsEmpty for a nested table in collection returns all items

@Hayes3d 

IsEmpty can be very misleading in these situations.  The reality is that there is information in that column that will make IsEmpty believe there is something there based on how you collect the information.

Your best bet on the filter formula will be something like this:

Filter(ColTeamMembers, CountRows('On Call')<>0)

I hope that is helpful for you.

_____________________________________________________________________________________
Digging it? - Click on the Thumbs Up. Solved your problem? - Click on Accept as Solution. Others seeking the same answers will be happy you did.

View solution in original post

3 REPLIES 3
Super User
Super User

Re: !IsEmpty for a nested table in collection returns all items

@Hayes3d 

IsEmpty can be very misleading in these situations.  The reality is that there is information in that column that will make IsEmpty believe there is something there based on how you collect the information.

Your best bet on the filter formula will be something like this:

Filter(ColTeamMembers, CountRows('On Call')<>0)

I hope that is helpful for you.

_____________________________________________________________________________________
Digging it? - Click on the Thumbs Up. Solved your problem? - Click on Accept as Solution. Others seeking the same answers will be happy you did.

View solution in original post

Community Support Team
Community Support Team

Re: !IsEmpty for a nested table in collection returns all items

Hi @Hayes3d 

 

Do yo test with @RandyHayes 's suggestion?

And do you solve your issue?If yes,please accept it as solution.

 

Best Regards.

Yumia

Highlighted
Hayes3d
Level 8

Re: !IsEmpty for a nested table in collection returns all items

This worked great Randy!

Helpful resources

Announcements
firstImage

Microsoft Business Applications Virtual Launch Event

Join us for an in-depth look at the new innovations across Dynamics 365 and the Microsoft Power Platform.

firstImage

Watch Sessions On Demand!

Continue your learning in our online communities.

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

FirstImage

Power Platform World Tour

Coming to a city near you

thirdimage

PowerApps Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

FourthImage

Join PowerApps User Group!!

Connect, share, and learn with your peers year-round

Top Kudoed Authors
Users Online
Currently online: 210 members 3,294 guests
Please welcome our newest community members: