[英]AWS Quicksight calculated field average
Hi I am having trouble with this calculated field.嗨,我在使用这个计算字段时遇到了问题。 I am trying to get the sum of money_val for each customerkey.我正在尝试获取每个 customerkey 的 money_val 总和。 Then I want to have a KPI visual to show the average money_val.然后我想要一个 KPI 视觉对象来显示平均货币价值。 I found that PRE_AGG and PRE_FILTER gave wrong values so I want to use POST_AGG_FILTER.我发现 PRE_AGG 和 PRE_FILTER 给出了错误的值,所以我想使用 POST_AGG_FILTER。
sumOver(sum({money_val}),[customerkey], POST_AGG_FILTER)
But when I put it in the value field well of the KPI visual, I get this:但是当我把它放在 KPI 视觉对象的 value 字段中时,我得到了这个:
I only have cust-amnt-total(custom) as a Value in the field well.我在字段中只有 cust-amnt-total(custom) 作为值。 Also, how can I get the average since the only option is Custom?另外,由于唯一的选择是自定义,我如何获得平均值?
您还需要在您的油井中使用 money_val 和 customerkey 才能使视觉效果正常工作,但我不确定您要在这里实现什么
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.