简体   繁体   中英

How to create a "Percentage of Success" field in Tableau

In TABLEAU, I'm looking at creating a field that calculates the percentage of success of certain types of kickstarter campaigns.

I've tried using the calculated fields option to no avail.

Present in the dataset is a status dimension

I'm looking to have a simple formula like SUM([Status]= Successful)/ SUM(([Status]= Successful)+([Status]= Failed)) *100

Thank you

Might be worth looking at this: https://help.tableau.com/current/pro/desktop/en-us/calculations_percentages_options.htm

In this case though you should be able wrap your divisor in a total() in order to get the correct result.

IF all you are looking for is the % of success you can use a calculation:

Success = SUM(IIF(Status="successful",1,0))/Count(Status)

This should give the % of success. Hope this helps.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM