Quantcast
Channel: SCN : Discussion List - SAP BusinessObjects Web Intelligence
Viewing all articles
Browse latest Browse all 5402

Count If Else

$
0
0

Hi everyone, Along with some other fields I have a table in my report with the below two columns.

 

The ACCOUNT NUMBER in the table repeats, but is unique when the DECISION column is factored in.

 

I'm trying to find a way to count "Decision" once per Account number.

 

In a way I need to be able to do some kind of compare between all the decision before per a unique account number and count it base on value of the decision.

 

A unique account number can have up to three (3) instances (Decsions) in the table

 

So for example

 

If DECISION = "DENY" for any instance of that specific account number, ignore every other instance and add 1 to the DENY count bucket

 

Else if DECISION = "PAY" for all instances of a specific account number add 1 to the PAY count bucket

 

Else if DECISION <> "DENY" but Decision = "CHANGE" for any instances of a specific account number add 1 to the CHANGE count bucket

 

So in the end my count should look like this:

 

DENY = 2

PAY =  1

CHANGE = 2

 

I've tried using =Count([ACCOUNT NUMBER]) In([DECISION]) But that gave me higher numbers that it should. For example PAY ended up equaling 3 when it should have been 1. And i can't seem to get the sytax right for my if statments for all other attempts.

 

Any assistance will be greatly appreciated!!!

 

Table.png


Viewing all articles
Browse latest Browse all 5402

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>