如何在 Tableau 中对一列中的所有行进行乘积

How to do a product of all rows in a column in Tableau

我有一栏如下。我想将所有值相乘并得到一个值

Yield
0.90
0.85
0.71
0.25

Yield Total_Prod
0.90   0.135
0.85   0.135
0.71   0.135
0.25   0.135

哪里Total_Prod = 0.90*0.85*0.71*0.25

假设收益率总是 > 0

exp(sum(ln(Yield)))

Running product is given by this calculation as mentioned in comments

[积分] : EXP(RUNNING_SUM(LN(SUM([Yield]))))

但要找到 Total Product 使用此计算:

LOOKUP([RP],LAST())

要得到这样的输出:

回复评论:

Running total using Exp and Log rules explains exp and how formula works and More info on Lookup by examples 查找用于导航 view.It 中的不同结果采用参数来提供导航控制。 More Info on last Last value您认为是最终的计算结果。