是否可以同时显示百分比和计数? [英] Is it possible to display percentage and count together?
问题描述
我在 Tableau 中创建了一个 100.00% 堆积条形图,我想知道是否可以在列出的百分比旁边显示每个类别中的条目总数.
I have created a 100.00% stacked bar chart in Tableau, and I want to know if I can show the total count of entries within each category next to the percentage that is listed.
这是我目前拥有的:
这就是我想要的:
_____________________________________________
|______66.66% (666)______|___33.33% (333)___|
这有可能吗?
推荐答案
是的,将您的度量拖到文本架并设置它占总数的百分比,就像您在列中所做的那样.在文本架中再次放置相同的度量.点击标签按钮,可以如下编辑标签
Yes, drag your measure to the text shelf and set it a percent of total like you have done in columns. Place the same measure again in the text shelf. Click the Label button and you can edit the label as follows
<% of Total SUM(Quantity)> (<SUM(Quantity)>)
在此处查看示例工作簿:https://www.dropbox.com/s/gn8hfazwvp80ad1/170726%20stack%20question.twbx?dl=0
See sample workbook here: https://www.dropbox.com/s/gn8hfazwvp80ad1/170726%20stack%20question.twbx?dl=0
这篇关于是否可以同时显示百分比和计数?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!