# Array returning incorrect results - help please!

**URL:** <https://community.glideapps.com/t/array-returning-incorrect-results-help-please/7743>\
**Category:** Ask for Help\
**Created:** [April 24, 2020, 7:27am UTC](https://community.glideapps.com/t/array-returning-incorrect-results-help-please/7743 "2020-04-24T07:27:00Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Phil\_Jackson](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/phil_jackson/32/5939_2.png) [@Phil\_Jackson](https://community.glideapps.com/u/Phil_Jackson)\
**Post date:** [April 24, 2020, 7:27am UTC](https://community.glideapps.com/t/array-returning-incorrect-results-help-please/7743/1 "2020-04-24T07:27:00Z")

</div>

Hi,  
I have one sheet that is using a relation column to pass over a number of services from a different tab.  
The relation function works fine and lists the services I have listed in an array from the other sheet.  
However when I am using the app, if I am logged in as the second person shown on the screen shots I am seeing the service options for all of the users.  
All of the screens have the visibility set to show options for logged in user.

I’m pretty sure this is user error so any help appreciated!

 ![Untitled](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/2X/6/6046782ca6137fa40b18f3816d52c13d0290119a.png) ![Untitled 2](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/2X/c/ccfeeb653baa950472e230892f19aa87ed6db050.png) ![Untitled 3](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/2X/b/b5d3f3480b5cd681340a5c3362ef4cfc57b51d42.png)

---

<div class="post-metadata">

**Author:** ![Phil\_Jackson](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/phil_jackson/32/5939_2.png) [@Phil\_Jackson](https://community.glideapps.com/u/Phil_Jackson)\
**Post date:** [April 24, 2020, 7:31am UTC](https://community.glideapps.com/t/array-returning-incorrect-results-help-please/7743/2 "2020-04-24T07:31:39Z")

</div>

I think I have figured it out. Although the visibility is set to only show signed in user, I have to set a filter to also only show items for a signed in user as-well.

As I said - User error!

---

<div class="post-metadata">

**Author:** ![Jeff\_Hager](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/jeff_hager/32/43_2.png) [@Jeff\_Hager](https://community.glideapps.com/u/Jeff_Hager)\
**Post date:** [April 24, 2020, 12:23pm UTC](https://community.glideapps.com/t/array-returning-incorrect-results-help-please/7743/3 "2020-04-24T12:23:22Z")

</div>

A filter will filter the data based on the condition you set. Visibility simply determines if the entire component is displayed or not.
