Quicksight - Total line in Table to show Sum of Max values from each row

0

Hi All, I have a data set in which I have to use the "max" function in displaying a particular measure (i.e. not sum) but I need the Total line to show the sum of the max values coming from each row. In Excel, a pivot table can do that, i.e. a measure in max function in the table can still be summed in the total line. In Quicksight, Total line gives me the max of all the max values it finds in the table Is this possible in Quicksight? i.e. controlling what the Total line should show for a measure?

已提問 2 年前檢視次數 4356 次
2 個答案
1
已接受的答案

You could create a calculated field and use the sumOver function .

the measure would be the aggregated value you are looking for (max in your case), partition by the dimension in the pivot and you can leave blank the third parameter (the default is POST_AGG_FILTER that is what you are looking for).

Using QuickSight samples Sales Pipeline analysis the calculated field (max_revenue) would be:

sumOver(max({Weighted Revenue}),[Region])

the result would look like the pivot table on the right in this screenshot.

AWS
專家
已回答 2 年前
profile picture
專家
已審閱 1 個月前
0

Thank you very much for this. This was exactly what I needed

已回答 2 年前

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

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

回答問題指南