Good afternoon folks, I have a tricky problem that I've been unable to solve and am banging my head on the monitor by now!
I have a SQL Server database with multiple tables, the two that I'm working with on this report have a one-to-many relationship, the first one is "incidents" (the one record) and related "actions" where there are no to many records per incident.
The actions can fall into many categories that are defined by a field. I'll label the actions A, B, C, D and so on. Each Incident can have any one or more of the actions, up to all of them.
I want to count how many actions take place in a timeframe (calendar month, year, etc) but here is the tricky part, they need to be counted based on what actions are present.
Example:
Incident 1
Action A <---Count
Action B
Incident 2
Action A <---Count
Action B
Action C
Incident 3
Action B <--- Count
Action C
I've written running totals (one for each action to be counted) to try to count his with a formula in the Evaluation section, but it is not functioning correctly, it is counting the B records even when an A is present.
Thanks for all help in solving this!
I have a SQL Server database with multiple tables, the two that I'm working with on this report have a one-to-many relationship, the first one is "incidents" (the one record) and related "actions" where there are no to many records per incident.
The actions can fall into many categories that are defined by a field. I'll label the actions A, B, C, D and so on. Each Incident can have any one or more of the actions, up to all of them.
I want to count how many actions take place in a timeframe (calendar month, year, etc) but here is the tricky part, they need to be counted based on what actions are present.
Example:
Incident 1
Action A <---Count
Action B
Incident 2
Action A <---Count
Action B
Action C
Incident 3
Action B <--- Count
Action C
I've written running totals (one for each action to be counted) to try to count his with a formula in the Evaluation section, but it is not functioning correctly, it is counting the B records even when an A is present.
Thanks for all help in solving this!