Forum

Notifications
Clear all

error when trying to add a measure to a pivot table

3 Posts
2 Users
0 Reactions
445 Views
(@sue-whiteheadrussellmcveagh-com)
Posts: 3
Active Member
Topic starter
 

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.

 
Posted : 12/07/2023 8:10 pm
(@mynda)
Posts: 4761
Member Admin
 

Hard to say without seeing the file, but have you tried fully qualifying the column name with the table name e.g.:

=MEDIAN(Table[column])

If that doesn't help, perhaps you could share the file, or some screenshots?

 
Posted : 13/07/2023 1:33 am
(@sue-whiteheadrussellmcveagh-com)
Posts: 3
Active Member
Topic starter
 

Thank you Mynda, I was not choosing the table name with the column, that was the problem.  

I am very grateful for your help.

sue

 
Posted : 13/07/2023 10:52 pm
Share: