0

I am trying to create a simple formula for calculation in table .

This is the table structure

EXPERIENCE  PLATFORM    REVENUE
PC          WEBSITE     100
MOBILE      ANDROID     20
MOBILE      IPAD        10
MOBILE      IPHONE      20

My calculation is trying to find the share :

Calc1: Share of site= sum of revenue from mobile / sum of revenue (mobile+PC)

Calc2: share of platform= sum of revenue from apps/revenue from mobile

Can someone highlight how I can create a formula , I am very new to tableau.

Thanks

1

1 Answer 1

0

For Calc1, try a 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 also be able to get what you need using the Tableau built in table calculations, by dragging in what you need and adjusting filters as necessary.

Your Answer

Reminder: Answers generated by Artificial Intelligence tools are not allowed on Stack Overflow. Learn more

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.