Question

So in my Desktop intelligence report, I have detail from my universe that can can have many different double digit response codes ("00","01","02",etc, etc) per a terminal. What I am trying to do is count all of the response codes that are not "00" at the terminal level without having to display the Response Code.

I have tried the following:

=CountAll (If (<Response Code> = "00") Then 1 Else 0) ForEach( <Response Code> ) 

=CountAll (If (<Response Code> = "00") Then 1 Else 0) In Report 

Using a ForEach will always equal 1 and using the In Report statement will always come back with 237! Anybody have an idea of what i'm missing?

thanks

Was it helpful?

Solution

Two ways:

First, create a variable, let's call it <Non Zero Response>:

=If <Response Code> <> "00" Then <Response Code>

Then in the report block:

=Count(<Non Zero Response>)

The second method works, but I'm not sure why. So I can't be sure it will work in all versions:

=Count(=If <Response Code> <> "00" Then <Response Code>)
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top