PowerPivot: Grouping By Dates (Months, Quarters, Years, etc.) in PivotTables - TechNet Articles - Home - TechNet Wiki

Answered PowerPivot: Grouping By Dates (Months, Quarters, Years, etc.) in PivotTables - TechNet Articles - Home - TechNet Wiki

  • 12 เมษายน 2555 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

ตอบทั้งหมด

  • 12 เมษายน 2555 14:28
     
     
    Do you have a table named "Sales" and a column called "Sales Date" in this table?



    Javier Guillen
    http://javierguillen.wordpress.com/

  • 12 เมษายน 2555 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".

  • 16 เมษายน 2555 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

  • 16 เมษายน 2555 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 17 เมษายน 2555 5:39
    •