Hi there people.
Got a query for your mighty brains, if you can help me out with this, that would be quite several awesomes.
I need to be able to build a report for management that basically counts the number of events that are attended, and also split by event type as well.
We have two tables, Events, and Eventtypes.
Events can be as little as the following for this example:
ID, ClientSerial, Date, Attended
Each event is linked to a set of Eventtypes, being the actual components recorded by workers for the event they're recording. Looks kinda like this:
EventTypeID, EventID, Eventtype
That making sense? This would probably best be described by example.
Events Table
EventID¨¨ClientSerial¨¨Date¨¨¨¨¨¨Attended
1000¨¨¨¨6000¨¨¨¨¨¨¨01/12/2010¨¨True
1001¨¨¨¨6005¨¨¨¨¨¨¨07/12/2010¨¨False
1003¨¨¨¨7291¨¨¨¨¨¨¨08/12/2010¨¨True
Eventtype Table
ID¨¨¨¨EventID¨¨Eventtype
10000¨¨1000¨¨¨¨triage
10001¨¨1000¨¨¨¨session6
10002¨¨1001¨¨¨¨session2
10003¨¨1001¨¨¨¨session4
10004¨¨1001¨¨¨¨session7
10005¨¨1003¨¨¨¨session3end
10006¨¨1003¨¨¨¨discharge
What I would like to do, is create a formula with a name EventHasTriage, that would do the following:
For each Event.EventID, looking at the related Eventtype.EventID, that if any Eventtype.Eventtype = 'Triage' then EventHasTriage = 'Triage', else EventHasTriage = 'Other'
Is there help to be had?