PowerPivot SUM Error -- Calculation Aborted... cannot work with String.

tml85

New Member
Joined
May 2, 2016
Messages
2
Hi all,

Apologize if this has been asked before... I did a bit of searching first.

On a single table, using a Pivot Table (with no slicers or filters yet) I am trying to display the Sum of a set of values and receive the following error when I change the "Summarize by" Value from the Count of to the Sum of:

ERROR - CALCULATION ABORTED: MdxScript(Sandbox) (7, 74) The function SUM takes an argument that evaluates to numbers or dates and cannot work with values of type String.

<tbody>
</tbody>

How do I display the Sum of this field instead of the Count?

Example:

Category 1 100063
Category 2 11910
Category 3 49345

- With Category field placed in the Rows Label and the Cost field placed in Values.
- The data seems to be structured OK but I can't seem to resolve this via google searches.
- I realize this is quite basic stuff. I am comfortable with Pivot Tables and formulas in Excel but new to Power Pivot so if anyone could steer me in the right direction I would really appreciate it.
- I have solved the linking of tables but can't display the SUM instead of the Count (face palm).

Thanks
 

Excel Facts

Can a formula spear through sheets?
Use =SUM(January:December!E7) to sum E7 on all of the sheets from January through December
The problem is just what the error is saying; the Values column you are trying to Sum up are of Data Type "Text" in the model. Power Pivot doesn't do automatic type conversion so you'll need to convert the column to a Number type manually either in Power Pivot or Power Query.
 
Last edited:
Upvote 0
Goodness. It really was that simple. Thank you for the quick reply.. I really appreciate it.

I have the basics up and running. Time to crack open the books. Love this forum!
 
Upvote 0

Forum statistics

Threads
1,214,622
Messages
6,120,580
Members
448,972
Latest member
Shantanu2024

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top