Quantcast
Channel: Desktop topics
Viewing all articles
Browse latest Browse all 213819

Divide aggregate values by different denominators dependent on column value

$
0
0

Hello, 

 

I have created a table which aggregates the sum of Units, Call, and Accounts based on Campaign. I'm trying to display a conversion value where the calculation is dependent on the Campaign. 

 

If the Campaign is Radio, the conversion formula is: Units / Calls

If the Campaign is Print, the conversion formula is: Units / Accounts

 

It seems that my attempts at the Conversion column evaluate each row and fails because many rows include 0 in the Calls or Accounts column. I'd like to just divide by the aggregated value of Calls or Accounts. Any ideas?

 

CampaignUnits SoldCallsAccountsConversion
If Radio, Units / Calls
If Print, Units / Accounts
Radio1002003500.5
Print20020010000.2

 

Thank you!

Maggie


Viewing all articles
Browse latest Browse all 213819

Trending Articles