Tableau calculated field-formula -


i trying create simple formula calculation in table .

this table structure

experience  platform    revenue pc          website     100 mobile      android     20 mobile      ipad        10 mobile      iphone      20 

my calculation trying find share :

calc1: share of site= sum of revenue mobile / sum of revenue (mobile+pc)

calc2: share of platform= sum of revenue apps/revenue mobile

can highlight how can create formula , new tableau.

thanks

for calc1, try calculated field like: sum(iif([experience]='mobile',[revenue],0))/sum([revenue])

calc2 uses similar logic: sum(iif([platform]='android',[revenue],0))/sum(iif([experience]='mobile',[revenue],0))

you should able need using tableau built in table calculations, dragging in need , adjusting filters necessary.


Comments

Popular posts from this blog

python - mat is not a numerical tuple : openCV error -

c# - MSAA finds controls UI Automation doesn't -

wordpress - .htaccess: RewriteRule: bad flag delimiters -