I’m stock…
In an event management app I have three tables. Event, Activities, Contacts.
Each event has activities refs. And each Activities has contacts refs.
Every contact [contact] can work in different position during [role] an activity.
I’m trying to create a virtual column in my event table that can show a distinct list that show each combination of [contact] and [role] only once (and still keeping the reference to the contact).
My contacts table has columns with id, a reference column to my address book, role, and working hours/plan - ref to activity.
ex
id - contact - role - start - end - activity(ref)
xx - kasper - guard - 8pm - 10pm - play1
xx - kasper - cleaning - 4am - 6am - play1
xx - henrik - guard - 7pm - 11pm - play2
ss - kasper - cleaning - 4am - 7am - play2
xx - kasper - guard - 7pm - 10pm - play3
xx - kasper - cleaning - 3am - 6am - play3
Activity table
ID - Activity - event(ref)
xx - play1 - event1
xx - play2 - event1
xx - play3 - event1
My Event table
ID - Title - VC activities - VC activity contacts
xx - event1 - (play1, play2,play3) - (kasper-guard,kasper-cleaning,henrik-guard)
I have no problems with creating VC activities. I can also create a virtual column that shows all the contacts (kasper-guard,kasper-cleaning,henrik-guard,kasper-cleaning,kasper-guard,kasper-cleaning). But I only wan’t to show a distinct list based on the name and the role column not taking the time or other columns into account.
I’ve tried by creating a slice in the contacts table using
IFS(
(
[_THISROW] = MAXROW(
“contacts”,
“_RowNumber”,AND(
[_THISROW].[ac_activity] = [ac_activity],
[_THISROW].[ac_contact] = [ac_contact],
[_THISROW].[ac_contact_role] = [ac_contact_role]
)
)
),
True
)
But this only gives me the entire list of the event.
I’ve tried to implement a filter, unique,select within the virtual column in my event table but I can’t figure out to make it work.











