Lastvalue table function attribute error

0

I have multiple records (history records) per opportunity and I need to get the last value for the last load date. My calculations looks as follows: lastValue({total_contract_value},[{load_date} ASC],[{opportunity_id} ASC]) I have both load date and opportunity_id in my field wells but it still says table calculation attribute references are missing from field wells. Any advice? Enter image description here

Simei
已提问 1 年前507 查看次数
1 回答
0

Hello,

The first argument in the lastValue function should be an aggregated measure to display the data on the Visual. Aggregate function is required to return a single value for the partition fields.

Please refer the AWS QuickSight document on the same: https://docs.aws.amazon.com/quicksight/latest/user/lastValue-function.html

Please modify your calculated field like below, it can be any aggregate function like sum, max etc. on the required field:

lastValue({sum(total_contract_value)},[{load_date} ASC],[{opportunity_id}])

Thanks.

已回答 1 年前

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则