How to further aggregate

I would like to calculate the unit price per customer for each sales date.
If you add up the number of customers for each sales date and store with function ‘maxOver’ as shown below, it will be a strange number.

sum(Sales) / sum(maxOver(Number of customers,[Sales date, Store], PRE_AGG))

I would like to aggregate it like the attached image. Is there a way to realize it?

1 Like

お世話になります。日本語にて補足します。

各行に販売日、店舗ごとの客数を持っているのですが、
販売データと結合しているため、そのまま合計するとレコード数分、客数が倍増してしまいます。
非正規化データから、販売日、店舗ごとの客数を合計したいのですが、良い解決方法はないでしょうか?

以上、宜しくお願いします。

This issue is resolved by New function LAC-A.

Thanks you for QuickSight team.