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 年前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南