Hello everyone! I have been struggling with one issue in Quicksight recently and would appreciate someone’s help!
Below, you can see the table with sample data, showing user churn across quarters.
As you can see, the quarterly values of user churn are different and are stated in the “User Churn” column. My goal is to find the average of those values across quarters and to display that average in a separate KPI visual. That figure should be (18.4 + 23.0 + 13.7 + 50.3)/4 = 26.3. It’s currently stated in the adjacent column in this same table.
However, when I tried finding this average and displaying it in a separate KPI visual, I ran into many issues.
There are two main issues I am encountering:
1. Nesting of aggregate functions like {{aggregateFunction1}} and {{aggregateFunction2}} is not allowed. This is what I get in the calculated field window itself when I try using, for example:
sum({User Churn})/dateDiff(min({ACCESS_DATE}),max({ACCESS_DATE}),‘Q’)
avg(sum({User Churn}, [{QUARTER_OF_ACCESS},{YEAR_OF_ACCESS}]))
sum({User Churn})/dateDiff(min({ACCESS_DATE}),max({ACCESS_DATE}),‘Q’)
avg(sumOver({User Churn}, [{QUARTER_OF_ACCESS},{YEAR_OF_ACCESS}], PRE_AGG))
2. Table Calculation Attribute References are missing in field wells. This is what I get in the KPI visual itself, when I try using variations of the following calculated field:
avgOver({User Churn}, [{QUARTER_OF_ACCESS},{YEAR_OF_ACCESS}])
I think I read all the articles in the forum about related issues, but all the solutions recommended there did not work for me. I tried different ways of aggregation, but no result.
Can anyone help me, please? Maybe, we can do a quick screenshare with anyone from the Quicksight team and figure this out? Thank you so much in advance!