Skip to main content
KP KP 님이 #Tableau Public에 질문했습니다

I have gone in circles Googling and I must be missing something glaringly obvious. I am trying to add a worksheet to my data viz that shows the mean profit % by genre. In my data source I have the budget, revenue, profit dollars, and profit % for each movie (along with the genre).  

 

When I add the pill for the profit % the math just doesn't add up (whether I use AVG or SUM). Do I need to add a total for each genre in my spreadsheet somewhere in order to get the mean profit%? Should I remove the movies that have -100% profit from the spreadsheet> My Mystery and Science Fiction genres show 1000%+ and that should be way off. None of the other genres are correct either. I am new to Tableau. I love the platform but I still clearly struggle with the Excel -> Tableau workflows. Thank you for any help or suggestions! 

 

My Data Viz on Public: 

https://public.tableau.com/views/Movies_17901921237330/Sheet1?:language=en-US&:sid=&:redirect=auth&:display_count=n&:origin=viz_share_link

 

 

#Tableau Public

답변 2개
  1. 10월 2일 오전 6:15

    You need to create a calculated field in Tableau to compute the Profit % as follows: SUM([profit]) / SUM([budget]). 

    You should not use the pre-computed value in your data.

0/9000