如何在画面中按年日期维度小计计算的度量
how do I subtotal Calculated measure by Year Date dimension in tableau
我正在尝试小计我的年龄。当我这样做时,小计是一个疯狂的#.
test = [MT]/[FA]
Formula for Cells = ((SUM([test]))*12)*(SUM([FA]) / TOTAL(SUM([FA])))
公式正在使用窗格向下计算
将您的 test
计算替换为:
SUM( [MT] )/SUM( [Faccounts] )
您的 window 计算会出错。
如下所示实现您的 main calculation
:
(([test])*12)*(SUM([Faccounts]) / TOTAL(SUM([Faccounts])))
你会得到正确的结果。
我无法上传工作簿。
我正在尝试小计我的年龄。当我这样做时,小计是一个疯狂的#.
test = [MT]/[FA]
Formula for Cells = ((SUM([test]))*12)*(SUM([FA]) / TOTAL(SUM([FA])))
公式正在使用窗格向下计算
将您的 test
计算替换为:
SUM( [MT] )/SUM( [Faccounts] )
您的 window 计算会出错。
如下所示实现您的 main calculation
:
(([test])*12)*(SUM([Faccounts]) / TOTAL(SUM([Faccounts])))
你会得到正确的结果。 我无法上传工作簿。