在 Tableau 中使用参数交换字段时无法更改格式
Unable to Change Format When Using Parameters to Swap Fields in Tableau
使用参数交换字段时,我无法更改格式(增量 RR 以百分比 (%) 表示,其余以数字 ($) 表示)。我创建了一个名为 -Select 指标的参数,并编写了如下计算:
IF [Select Metric]='Avg HH-Balance' then [Average Balance]
ELSEIF [Select Metric]='CPI-HH (Checking)' then [CPI-HH (Checking)]
ELSEIF [Select Metric]='CPI-A (Any Acct)' then [CPI-A (Any Acct)]
ELSEIF [Select Metric]='Incremental RR' then [Incremental Response Rate] else null
END
它采用的格式是自动的,但我希望轴根据 parameters.Thanks 的选择而改变。
查看来自 Andy Kriebel 的 great answer。
使用参数交换字段时,我无法更改格式(增量 RR 以百分比 (%) 表示,其余以数字 ($) 表示)。我创建了一个名为 -Select 指标的参数,并编写了如下计算:
IF [Select Metric]='Avg HH-Balance' then [Average Balance]
ELSEIF [Select Metric]='CPI-HH (Checking)' then [CPI-HH (Checking)]
ELSEIF [Select Metric]='CPI-A (Any Acct)' then [CPI-A (Any Acct)]
ELSEIF [Select Metric]='Incremental RR' then [Incremental Response Rate] else null
END
它采用的格式是自动的,但我希望轴根据 parameters.Thanks 的选择而改变。
查看来自 Andy Kriebel 的 great answer。