Michael Gray
02/29/2024, 4:05 PMJakub Sterba
02/29/2024, 4:55 PMselect avg(select sum({fact/new_customers}) by {attribute/date.day})
. It will calculate sum of new customers across stores (and other dimensions) by day and average across data points on time axis. It will be average of two values if you select two months because sum by day will return only two values because there is only one data point per month.
You can use also select avg(select sum({fact/new_customers}) by {attribute/date.month})
. It will calculate sum by month and then calculate average of the monthly values.Michael Gray
02/29/2024, 4:56 PMJakub Sterba
02/29/2024, 4:58 PMMichael Gray
02/29/2024, 5:01 PMJakub Sterba
02/29/2024, 5:03 PM