PowerPivot: Grouping By Dates (Months, Quarters, Years, etc.) in PivotTables - TechNet Articles - Home - TechNet Wiki
-
2012年4月12日 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
全部回复
-
2012年4月12日 14:28Do you have a table named "Sales" and a column called "Sales Date" in this table?
Javier Guillen
http://javierguillen.wordpress.com/ -
2012年4月12日 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".
-
2012年4月16日 8:24版主
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
-
2012年4月16日 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.- 已标记为答案 Challen FuModerator 2012年4月17日 5:39

