PowerPivot: Grouping By Dates (Months, Quarters, Years, etc.) in PivotTables - TechNet Articles - Home - TechNet Wiki
-
giovedì 12 aprile 2012 13:59
http://social.technet.microsoft.com/wiki/contents/articles/1018.powerpivot-grouping-by-dates-months-quarters-years-etc-in-pivottables.aspx
I've been desperately trying to follow the example in this article (link above) to create a calculated field in powerpivot using the DAX formula provided "=MONTH(Sales[Sales Date])" and all I get returned is:
ERROR - CALCULATION ABORTED: MdxScript(Sandbox) (6,54) The value for column 'Sales Date' in table 'Sales' cannot be determined in the current context.
I would very much appreciate if anyone could tell me what I'm doing wrong.
I have PowerPivot installed with Office 2010 on Window XP, SP3
Tutte le risposte
-
giovedì 12 aprile 2012 14:28Do you have a table named "Sales" and a column called "Sales Date" in this table?
Javier Guillen
http://javierguillen.wordpress.com/ -
giovedì 12 aprile 2012 14:38
Yes. I copied the information from the table in the example and created a PowerPivot table from it and changed the name of the table to "Sales". The table "Sales" does contain a column heading "Sales Date".
-
lunedì 16 aprile 2012 08:24Moderatore
Hi hwm8178,
Please type in the expression manually, there is IntelliSense, which support for keywords, functions, columns, and measures. So I would recommend you leverage the IntelliSense to show the table's column. Do not copy it from the website, sometime, there will be some SBC (Single Byte Charactor) and DBC(Double Byte Charactor) issue.
Thanks,
Challen Fu
TechNet Community Support
-
lunedì 16 aprile 2012 13:46
Thanks, I discovered my problem was that I was trying to enter the formula as a MEASURE rather than a formula directly into the powerpivot table.- Contrassegnato come risposta Challen FuModerator martedì 17 aprile 2012 05:39

