Error when adding a measure to a pivot table

starrfire

New Member
Joined
Jul 17, 2013
Messages
8
I am trying to create a median measure on a particular column in my excel pivot table. I have done so successfully for one column but am unable to do so for another column. I get the following message:
"The measure formula is invalid and contains errors".

When I set up the pivot I made sure to tick "add this data to the data model ". Then I right click in the pivot fields to add the measure. The measure is just a simple =median([columnname]). As I say it worked for one column but not another.

I have checked that the column format is numbers. I have deleted the first measure to see if I can create the new measure only but it doesnt like that either. Initially I had no data in the columns as it hasnt been added yet, but I have added dummy data for now to see if that helps. No! Has anyone got any bright ideas.
 

Excel Facts

Create a chart in one keystroke
Select the data and press Alt+F1 to insert a default chart. You can change the default chart to any chart type
It sounds like you are misspelling the column name. Try adding a simple SUM measure the same way, and see what happens.
 
Upvote 0

Forum statistics

Threads
1,224,818
Messages
6,181,152
Members
453,021
Latest member
Justyna P

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