Tableau 将维度转换为度量 [英] Tableau converting dimension to measure
问题描述
我有一个与 Tableau 相关的技术问题.我在维度部分有一个类别字段,其中包含三个指标:可支配收入、GDP 和消费者支出.我想自行将可支配收入"转换为度量值.
I have a technical question relating to Tableau. I have a Category field in the dimensions section which has three indicators: Disposable Income, GDP and Consumer Expenditure. I would like to convert 'Disposable Income' into a measure value on its own.
这可以吗?
由于数据限制,我无法共享 Tableau 数据源.
I cannot share the Tableau data source due to data restrictions.
推荐答案
我在这里提出了您的问题的替代解决方案,但它需要完全重塑您的数据.我已经创建了一个示例数据来进行这样的解释
Alternate solution to your problem I propose here, but it needs reshaping your data altogether. I have created a sample data for explanation like this
选择三年列并单击数据透视表..适当重命名字段后,您将获得这样的视图
select three years column and click on pivot.. you will get a view like this after renaming the fields appropriately
从这里您可以按照上述进行操作.
From here you can proceed as described above.
这篇关于Tableau 将维度转换为度量的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!