[英]How to show the top 10 column values in Spotfire
I need to show top 10 values using Spotfire. 我需要使用Spotfire显示前10个值。 I googled lot but I could not find the best solution.
我google了很多,但我找不到最好的解决方案。
I followed this tutorial: Creating a Dynamic Top Ten Chart but did not find success. 我遵循了本教程: 创建动态十大图表,但没有找到成功。
How can I do this? 我怎样才能做到这一点?
How to limit a visualization by the top 10 values: 如何通过前10个值限制可视化:
There are 2 ways you could do this. 有两种方法可以做到这一点。 I will list them both with pros/cons.
我会用优点/缺点列出它们。
Method 1 - Visualization Level 方法1 - 可视化水平
Rank([values],"desc")<11
where [values] is the numeric column you want the top 10 of. Rank([values],"desc")<11
其中[values]是您想要前10位的数字列。 Example below. 以下示例。 Note all of the filters are untouched on the right.
请注意,右侧的所有过滤器均未受影响。
Method 2 - Analysis Level 方法2 - 分析级别
Rank([values],"desc")
. Rank([values],"desc")
。 Example below. 以下示例。 Note the RANK filter on the right and how I have it narrowed down to a max of 10.
请注意右侧的RANK过滤器以及如何将其缩小到最大值10。
Let me know if you are still having issues. 如果您还有问题,请告诉我。
Edit: Right click and open image in a new tab if you are having trouble seeing the content of my screenshots. 编辑:如果您在查看屏幕截图的内容时遇到问题,请在新标签页中右键单击并打开图片。 The source imgur link should have the larger resolution viewable.
源imgur链接应该具有更大的分辨率可见。
To do a Top 10 Report in Tableau. 在Tableau中执行前10个报表。
Approach 1:(Query level) 方法1 :(查询级别)
Using custom sql
: Edit your custom sql to something like this. Using custom sql
:编辑自定义sql到这样的东西。
select top 10 * from table order by Id desc
Approach 2:(Report level) 方法2 :(报告级别)
Using Index
使用
Index
1.Create a calculated field. `Index()`
2.Change it to discrete.
3.Drag it to column shelves(It should be the first column)
4.Change it to continuous drag it to filters shelves and select `1-10`
https://googletpoint.wordpress.com/2015/04/24/how-to-show-top-10-values-in-spotfire-6-5-2/ https://googletpoint.wordpress.com/2015/04/24/how-to-show-top-10-values-in-spotfire-6-5-2/
Check the above link.. It will be helpful 检查上面的链接..这将是有帮助的
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.