简体   繁体   中英

How to add a Calculated Item(Not Field) with PowerPivot whilst pointing to the DataModel

Desired Pivot Table Image

After loads of searching I'm still trying to find a way to add a Calculated Item to a PowerPivot Table, from the Data Model.

I'm essentially looking to create a profit row that will display as a row after calculating the difference between cost and revenue.

I can do it when the data is coming from a worksheet but the "Calculated item..." option is greyed out when trying to do it from the Data Model.

I'm not looking at adding a field(column) I want to add a calculated row in essence that forms part of the pivot table.

Any help as to whether this is possible would be greatly appreciated.

Thanks,

Jon

In Power Pivot you do not use pivot table functionality to accomplish this sort of thing, rather we add measures to the data model that encapsulate our business logic.

Some reading on measures in Power Pivot 1 , 2 .

You cannot create a calculated field or a calculated item in a PivotTable based on OLAP source data. I presume that is what you are trying to do. Here is a detailed article that explains the differences: differences-between-olap-and-non-olap-pivottables-in-excel https://support.microsoft.com/en-us/help/234700

You cannot add calculated fields to a PowerPivot Pivot Table. Any additional calculations that you may need should be added to the PowerPivot model with DAX.

info is from the bellow link.

https://www.linkedin.com/pulse/10-differences-between-powerpivot-pivot-table-standard-teneva

so many years, has this problem get solved? i also crave finding a solution. . 1. you have to repeat to write above code thousand times. but the original function " Calculated item " could permanently solve the problem. 2. secondly most times the data that you want to put in comparison has to lie in rows, otherwise its very inconvenient when the table columns become to long. here i want to show my case, really ache to seek a solution, but seems Dax or PowerPivot has regressed losing the function of calculated item在此处输入图片说明

powerpivot 可以做到这一点吗?

can powerpivot do this? search so many similar questions, but people gives an unexpected answer about add a new column or measure.

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