简体   繁体   English

如何在Spotfire中显示前10列值

[英]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 - 可视化水平

  1. Open your visualization's properties and go to the Data tab. 打开可视化文件的属性,然后转到“数据”选项卡。
  2. Select "Edit..." under "Limit data using expression:" and include the following expression: 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 - 分析级别

  1. Insert a calculated column with the following expression: Rank([values],"desc") . 使用以下表达式插入计算列: Rank([values],"desc")
  2. Use the built in filters to only include Rank 1-10 for the top 10. This will filter all of your visualizations in your given filtering scheme to just the top 10. 使用内置过滤器仅包括前10名的等级1-10。这会将您给定过滤方案中的所有可视化过滤到前10名。

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链接应该具有更大的分辨率可见。

Within the Properties > Show/Hide Items , you can add a rule to show only the top 5 or 10 items by the Value Axis. 在“ Properties >“ Show/Hide Items ,您可以添加规则以仅显示“值轴”中的前5个或10个项目。

在此输入图像描述

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`

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

相关问题 Spotfire-在堆叠的条形图中显示最高值 - Spotfire - Show top values in stacked bar chart Spotfire-如何对数据表列中的唯一未过滤值进行属性控制 - Spotfire - How to have a property control on unique not-filtered values from a column of a datatable TIBCO Spotfire-如何在图形表上划分两个计算值? - TIBCO Spotfire - How to divide two calculated values on graphical table? Spotfire栏标题颜色 - Spotfire column title colors Spotfire Web 报告是幻灯片吗? - Spotfire Web reports as a slide show? 在Spotfire中删除/删除或隐藏列 - Remove/ delete or hide column in spotfire 如何使用IronPython脚本(最好使用外部名称)在Spotfire中创建计算列? - How can I create a Calculated Column in Spotfire with IronPython script (preferably using External Name)? Spotfire-如何在数据表可视化中将多个列分组在一个列下 - Spotfire - How to group multiple columns under a single column in data table visualization 按月显示总价值和Spotfire的差异 - Show total value by month and difference in spotfire 如果没有行用于设置的ax和y轴值,如何在tibco spotfire散点图中提供默认形状和颜色 - How to give default shape and color in tibco spotfire scatter plot, if there is no row for a set a x and y axis values
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM