[英]Count and Percentage of an aggregated field in tableau
i am new to tableau, i have created a calculated field (as below) based on which I want the find the percentage.我是 tableau 的新手,我创建了一个计算字段(如下所示),我希望根据该字段查找百分比。
If [x] = > 10 Then "A"
elseif [x] < 10 Then "B"
elseif [x] < 5 Then "C"
END
I now need to know the percentage of A, B, & C, is this possible?我现在需要知道 A、B 和 C 的百分比,这可能吗?
The calculation (call it 'Letter') needs to be as follows to avoid the current ambiguity between B and C (also use <= not =>)计算(称其为'字母')需要如下所示以避免B和C之间的当前歧义(也使用<=不是=>)
IF [X] < 5 Then "C" ELSEIF [X] < 10 Then "B" ELSEIF [X] >= 10 Then "A" END IF [X] < 5 然后 "C" ELSEIF [X] < 10 然后 "B" ELSEIF [X] >= 10 然后 "A" END
Add letter to the rows shelf将字母添加到行架
Add x to the text mark and change it from sum to count by right clicking the pill将 x 添加到文本标记并通过右键单击药丸将其从 sum 更改为 count
In the analysis menu, select Percentage of then Column在分析菜单中,select 列的百分比
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.