Highlighted

Show counts by disposition

Explorer ,
Jan 26, 2015

Copy link to clipboard

Copied

I need to show by counselor how many students were accepted, cancelled, enrolled, etc. I also need grand totals. I tried using a calculated field where I entered:

iif(trim(query.dispos) eq DE("Accepted"), 1, 0) in the perform calculation on field but I always get 0 for the answer. I tried using single quotes around Accepted but that didn't make a difference.

Any ideas?

Then don't use the delay evaluation function. Change your code to the following:

iif(trim(query.dispos) eq query.Accepted, 1, 0)

However, if you are trying to determine its value then use the following:

iif(trim(query.dispos) eq "Accepted", 1, 0)

TOPICS
Reporting

Views

447

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more

Show counts by disposition

Explorer ,
Jan 26, 2015

Copy link to clipboard

Copied

I need to show by counselor how many students were accepted, cancelled, enrolled, etc. I also need grand totals. I tried using a calculated field where I entered:

iif(trim(query.dispos) eq DE("Accepted"), 1, 0) in the perform calculation on field but I always get 0 for the answer. I tried using single quotes around Accepted but that didn't make a difference.

Any ideas?

Then don't use the delay evaluation function. Change your code to the following:

iif(trim(query.dispos) eq query.Accepted, 1, 0)

However, if you are trying to determine its value then use the following:

iif(trim(query.dispos) eq "Accepted", 1, 0)

TOPICS
Reporting

Views

448

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Jan 26, 2015 0
Advocate ,
Jan 26, 2015

Copy link to clipboard

Copied

Is "Accepted" a field in your result set?

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Jan 26, 2015 0
Explorer ,
Jan 27, 2015

Copy link to clipboard

Copied

Yes it is.

Bonni

---

Bonni Harris

Database Analyst

Eureka College

300 E. College Avenue

Eureka, IL 61530-1500

309-467-6467

On Mon, Jan 26, 2015 at 4:57 PM, Eddie Lotter <forums_noreply@adobe.com>

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Jan 27, 2015 0
Advocate ,
Jan 27, 2015

Copy link to clipboard

Copied

Then don't use the delay evaluation function. Change your code to the following:

iif(trim(query.dispos) eq query.Accepted, 1, 0)

However, if you are trying to determine its value then use the following:

iif(trim(query.dispos) eq "Accepted", 1, 0)

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Jan 27, 2015 0
Cozmo2 LATEST
Explorer ,
Jan 27, 2015

Copy link to clipboard

Copied

Thank you for your help!

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Jan 27, 2015 0