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?
Solved! Go to Solution.
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.
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.
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
This worked great Randy!
User | Count |
---|---|
137 | |
132 | |
79 | |
75 | |
72 |
User | Count |
---|---|
210 | |
200 | |
69 | |
63 | |
53 |