The Brown Growler
Registered User.
- Local time
- Today, 19:04
- Joined
- May 24, 2008
- Messages
- 85
Hi,
Would anyone please be able to help with a conditional total in a report? What I wish to do is to total the values of a report numeric field only if the value of another text field equals a specific value.
For example I have a monthly breakdown in numeric values of a training program in a field called [Cursus]. The field that contains the other values is called [KPI] What I wish to do is to only sum the [Cursus] field values where the [KPI] field value is equal to "People Trained" (quotation marks only included for illustration)
I have tried using the expression
=IIf([KPI]="People Trained",Sum([Cursus]),0)
However, it just gives me the 0 value when it should be giving a number. There are no null values in the report data, ie, all values are either 0 or a number.
Regards
Would anyone please be able to help with a conditional total in a report? What I wish to do is to total the values of a report numeric field only if the value of another text field equals a specific value.
For example I have a monthly breakdown in numeric values of a training program in a field called [Cursus]. The field that contains the other values is called [KPI] What I wish to do is to only sum the [Cursus] field values where the [KPI] field value is equal to "People Trained" (quotation marks only included for illustration)
I have tried using the expression
=IIf([KPI]="People Trained",Sum([Cursus]),0)
However, it just gives me the 0 value when it should be giving a number. There are no null values in the report data, ie, all values are either 0 or a number.
Regards