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

javascript - How to synchronize the Three.js and HTML/SVG coordinate systems (especially w.r.t. the y-axis)? -

javascript - How do I find how many occurences are there of a highlighted string, and which occurence is it? -

java - Reading data from multiple zip files and combining them to one -