简体   繁体   中英

Excel PivotTable “Show Values As % of item” not correctly calculated

I am having trouble using the "Show value as"-functionality in my pivottable in Excel 2013. My pivot should look like the table below:

However, when I calculate "Show value as % of "1. Turnover", only the row headers (being Turnover, General costs and variable costs) are correctly calculated. The % of turnover for the items 70XXX, 61XXX, 60XXX) display "NA" . Can anyone help me to explain how I should apply this functionality?

Thanks!

Jasper

在此处输入图片说明

我通过创建一个计算字段解决了这个问题。

DIVIDE(SUM('Table'[value]);CALCULATE(SUM('Table'[value]);'Table'[header]="1. Turnover";ALL('Table'[header];'Table'[subheader])))

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM