tableau-api - 在画面中使用 LOD 计算排名
问题描述
我有一张看起来像这样的桌子
column1 column2 value
a d 10
a e 20
b d 30
b e 40
and I want to get the rank of the value without considering column1 so I use and LOD to first get the total value with: {EXCLUDE [column1]: SUM([value])}
this works and produces
rank
d 40
e 60
d 40
e 60
BUT what I want to do is get the rank. So I'd like
rank
d 2
e 1
d 2
e 1
when I do this RANK( {EXCLUDE [Pct Of Adv Buckets]: SUM([Notional])} )
I get an error "all fields must be aggregate or constants when using table calcualtions. Can you advise how to get teh rank.
解决方案
你试过 RANK(SUM({EXCLUDE [Column1]: SUM([Value])})) 我有不同的耙,但我认为那是你正在寻找的。
推荐阅读
- css - How can I import a .css-file which is in the same folder as my React-component?
- c# - 对象引用未设置为对象的实例 - 统一问题
- python - 如何存储 exec 并将其呈现为 Django 中的模板?
- python - 使用论文中的重新着色算法的问题
- rest - 替代带有正文的 Get 请求:Post vs Put vs smth else
- php - 区分真实单词和随机字符串
- python - 在 python 中实现 VARMAX 模型时,错误是前导小数不是正定的
- python - 有没有办法在使用python中的线程处理任务时动态更改/添加队列内容
- excel - 从word中提取段落到excel
- django - 获取响应序列化程序的列表