1
votes

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

2

2 Answers

1
votes

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.

0
votes

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.