简体   繁体   English

统计的平均排名

[英]average of calculated rank in tableau

I would like to calculate the average of calculated rank for each competitor variable. 我想计算每个竞争对手变量的平均排名。 I have trouble finding a solution as calculated rank is aggregated value. 我无法找到解决方案,因为计算出的排名是合计值。 Can anyone help me with this? 谁能帮我这个?

在此处输入图片说明

It is the 2015_06 packaged file, and see "sheet 7". 它是2015_06打包文件,请参见“第7页”。

https://drive.google.com/open?id=0B1PGq-fzDlKcWi03emxrQm1wdWs https://drive.google.com/open?id=0B1PGq-fzDlKcWi03emxrQm1wdWs

I had a look at your workbook. 我看了看你的工作簿。 You need to do a change to your calculated field but then you can do it fairly easily with the table calculations. 您需要对计算字段进行更改,但随后可以通过表计算轻松地进行更改。

Change the field Prem Rank to Rank(sum([Premium]),'asc') Right click on it in the Marks section and make sure that "Compute Using" is set to "Table (Down)" 将字段Prem Rank更改为Rank(sum([Premium]),'asc')在Marks部分中右键单击它,并确保将“ Compute Using”设置为“ Table(Down)”

  1. Create a calculated field with WINDOW_AVG([Prem Rank]) (I called it WINDOW_AVG([Prem Rank]) ). 使用WINDOW_AVG([Prem Rank])创建一个计算字段(我称它为WINDOW_AVG([Prem Rank]) )。
  2. Drop it into the column shelf 将其放入柱架
  3. Right click on AVG(rank) -> Edit Table Calculation -> choose "Compute using: Advanced" 右键单击AVG(rank)->编辑表计算->选择“使用以下方法计算:高级”
  4. Change the settings according to this picture: 根据此图片更改设置:

在此处输入图片说明

  1. Right click on AVG(rank) again and choose "Discrete" 再次右键单击AVG(等级),然后选择“离散”

The result will be a table like this: 结果将是一个这样的表:

在此处输入图片说明

I think that is what you are after? 我认为那是你所追求的?

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM