[英]Create a calculated field in tableau
I have a set of data in the following format: 我有一组以下格式的数据:
Items Shipped | Month
A 1
B 1
C 1
D 2
E 2
F 3
G 3
H 3
I would like to show the count of items shipped each month using a calculated field in Tableau. 我想使用Tableau中的计算字段来显示每月发货的项目数。
Item_Count | Month
3 1
2 2
3 3
Any Suggestions? 有什么建议么?
You should probably have a look on the Tableau page for their basic tutorials: https://www.tableau.com/learn/training 您可能应该在Tableau页面上查看其基本教程: https : //www.tableau.com/learn/training
[month]
pill to row (if it's an actual date, change it to discrete month, otherwise leave it like it is) [month]
药丸拖到行(如果它是实际日期,请将其更改为离散的月,否则保持原样) [item_count]
to columns, click on it and change it to COUNT or COUNTD depending whether you want the total count or only the distinct elements. [item_count]
列上,单击它,然后将其更改为COUNT或COUNTD,这取决于您要的是总计数还是只需要不同的元素。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.