我有一个 OLAP 多维数据集并且我创建了一个数据透视表。我想获得每种商店格式(例如 STANDARD、MAXI、MINI)的所有销售额,然后每个商店的总计将除以他的格式的总计。
如果商店是 STANDARD 格式,则该商店的总计要除以 STANDARD 格式的销售额总计。
希望这是有道理的。
谢谢!
我想要这样的东西......这是我使用 atm 的公式,它可以工作,但文件变慢,我想使用数据透视表......
SUM(((SUMIFS(SalesFormatAll[Known Losses Amt AY];SalesFormatAll[Sites.Site Type 02];[@Format];SalesFormatAll[Merchandise Structure.Level 02 Desc];$B$5;SalesFormatAll[Calendar.Week No Retail];$B$3;SalesFormatAll[Calendar.Month Name];$B$2)+SUMIFS(SalesFormatAll[Unknown Losses Amt AY];SalesFormatAll[Sites.Site Type 02];[@Format];SalesFormatAll[Merchandise Structure.Level 02 Desc];$B$5;SalesFormatAll[Calendar.Week No Retail];$B$3;SalesFormatAll[Calendar.Month Name];$B$2))/SUMIFS(SalesFormatAll[Sales Net Amt AY];SalesFormatAll[Sites.Site Type 02];[@Format];SalesFormatAll[Calendar.Week No Retail];$B$3;SalesFormatAll[Calendar.Month Name];$B$2;SalesFormatAll[Merchandise Structure.Level 02 Desc];$B$5))))))))))))));"")