Hey everyone
Does anyone know the formula and how to make a slice to seperate users on the calendar function.
I have field workers and I want to use the calendar to schedule where they need to be BUT i dont want them seeing where everyone else is scheduled to be. Otherwise, the calendar will be full of junk not relevant to them. I just want them to see what is relevant to them
Can anyone help me please?
Thanks
John
Hi @johnni88
You may benefit from using a Slice, and set your calendar view data source on this slice.
How to:
Option 1
-
go to Data/Slice
-
set a row filter condition, such as :
[Section]=LOOKUP(USEREMAIL(), "USER", "email", "section")
Note: this assumes you have a table USER, with columns Email and Section.
And this assumes you want to separate viewings according to each section
More information here:
Slices: The Essentials
LOOKUP
Option2: use security filter
basically the same function, but only relevant data will be loaded on userās device
How to:
-
Go under panel Security/Security Filter
-
pick your schedule table
-
same expression than above
More information here:
Security filters: The Essentials
2 Likes
Thank you very much. Iāll check it out and see if i can make sense of it. Iām still learning expressions but i should be able to manage.
Thanks again 
1 Like
What does āsectionā mean? what are you referring to?
By āsectionā, I was referring to a company service.
Letās say: HR services should not see manufacturing informations. Thatās just an example, I probably picked a wrong word, English is not my native language 
1 Like
its ok
I appreciate your help.
because the data is coming directly from google calendar, there is no table on google sheets to reference.
Therefore, do I need to create a new USER table in google sheets? somehow I need to distinguish users via google calendar directly.
I might need to ask for some direct advice
Hi @johnni88
Iām afraid I donāt have experience when it comes to dealing with Google Calendar and multiple users.
Maybe @Joseph_Seddik , @Steve @Marc_Dillon
3 Likes
A GCal table should come with an [Attendees] column. Use a Slice with the expression IN( USEREMAIL() , [Attendees] ) should work, Iād think.
3 Likes
Havenāt encountered that need, but Iād definitely go with Marcās proposal.
3 Likes
Thanks marc youāre spot on! but I found I had to add it in as a security filter, not a slice.
Massive help anyway! really appreciated!
2 Likes
Hey Aurelien, FYI
Use the expression IN( USEREMAIL() , [Attendees] ) in a security filter, not a slice
Thanks for your help!
2 Likes