简体   繁体   English

Spotfire 轴限制

[英]Spotfire axis restriction

I have 4 columns: Companies, Products, Sales and Sales Growth .我有 4 列: Companies, Products, Sales 和 Sales Growth

I need to create a cross table with Companies in Horizontal axis, Products in Vertical axis and Sales Growth in cell values.我需要创建一个交叉表,其中横轴为公司,纵轴为产品,单元格值中为销售额增长。 But I need to show only top 10 products (by sum of sales) and top 10 companies (by sum of sales as well) in my vizualisation and I don't know how to restrict products and companies in my axisses.但是我需要在我的可视化中显示前 10 名产品(按销售额总和)和前 10 家公司(按销售额总和) ,我不知道如何限制我的轴上的产品和公司。

I tried to calculate new ranking column which I would use as a condition in axis definition, but the result of my calculation is completely wrong and I really don't know what's wrong, it seemed so simple.我试图计算新的排名列,我将其用作轴定义中的条件,但我的计算结果完全错误,我真的不知道哪里出了问题,看起来很简单。

DenseRank([Company],"desc",sum([Sales]))

Next options are to use Show/Hide Items or Data limitation, but I didn't manage to set it correctly.下一个选项是使用显示/隐藏项目或数据限制,但我没有设法正确设置它。

Could you please give me some advice how to do this?你能给我一些建议如何做到这一点吗?

Thank you谢谢

The closest example I have is limiting to the top Nth products per company.我所拥有的最接近的例子是限制在每家公司的前 N ​​个产品。

Using show/hide with an expression of Max(DenseRank(Sum([Sales]) OVER (Intersect([Companies],[Product])),"desc",[Companies]))使用表达为Max(DenseRank(Sum([Sales]) OVER (Intersect([Companies],[Product])),"desc",[Companies])) show/hide

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

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