문제

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

도움이 되었습니까?

해결책

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>)
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top