JRJohnson4
New member
- Local time
- Today, 18:32
- Joined
- Apr 18, 2017
- Messages
- 4
I have built a query called "Carotid Reports - Symptomatic (Totals) 1" that gives a Sum of the following fields:
CS
CS Carotid Symptomatic
CE
CE Carotid Symptomatic
30 Days Post Procedure Stroke
30 Days Post Procedure Death
In addition, this table only calculates the totals for these fields that meet the Status of "Emergent".
The problem that I am having is that I need the query to only count those cases that fall under the 30 Days Post Procedure Stroke or 30 Days Post procedure Death, if they meet the following criteria:
[P4P / Goals]![CS Carotid Symptomatic]=True Or [P4P / Goals]![CE Carotid Symptomatic]=True
I have tried utilizing an IIF function that included the Sum function if the expression above was true, but it didn't work. Here is the expression that I utilized:
IIf([P4P / Goals]![CS Carotid Symptomatic]=True Or [P4P / Goals]![CE Carotid Symptomatic]=True,Sum(IIf([P4P / Goals]![30 day post procd stroke]=True,1,0)),0)
I have also tried utilizing separate IIF statements in the Criteria field on the query, but that just asked for information, instead of, perform the calculation like I wanted.
The problem is that I have two separate reports: 1) Symptomatic 2) Asymptomatic
And I need these two 30 Days Post procedure fields to calculate the total cases that fall under Carotid Symptomatic or Carotid Asymptomatic, instead of, calculating the total for both types of cases.
Any assistance would be greatly appreciated.
CS
CS Carotid Symptomatic
CE
CE Carotid Symptomatic
30 Days Post Procedure Stroke
30 Days Post Procedure Death
In addition, this table only calculates the totals for these fields that meet the Status of "Emergent".
The problem that I am having is that I need the query to only count those cases that fall under the 30 Days Post Procedure Stroke or 30 Days Post procedure Death, if they meet the following criteria:
[P4P / Goals]![CS Carotid Symptomatic]=True Or [P4P / Goals]![CE Carotid Symptomatic]=True
I have tried utilizing an IIF function that included the Sum function if the expression above was true, but it didn't work. Here is the expression that I utilized:
IIf([P4P / Goals]![CS Carotid Symptomatic]=True Or [P4P / Goals]![CE Carotid Symptomatic]=True,Sum(IIf([P4P / Goals]![30 day post procd stroke]=True,1,0)),0)
I have also tried utilizing separate IIF statements in the Criteria field on the query, but that just asked for information, instead of, perform the calculation like I wanted.
The problem is that I have two separate reports: 1) Symptomatic 2) Asymptomatic
And I need these two 30 Days Post procedure fields to calculate the total cases that fall under Carotid Symptomatic or Carotid Asymptomatic, instead of, calculating the total for both types of cases.
Any assistance would be greatly appreciated.