Claymationator
Well-known Member
- Joined
- Sep 26, 2006
- Messages
- 705
I am consolidating a few different data sources in PowerPivot and have a table that contains our fiscal calendar. I am using that calendar as a lookup for the other tables so that I can display the values appropriately as it relates to our business. The fiscal calendar looks like this one here:
The date in that table is then matched up with the business date in another table and I am able to look at results by week, period, quarter or year (based on our fiscal calendar).
All of the data seems to be coming in just fine, and I have it all lined up. However, I am building some dynamic reporting on the front end using variations of GETPIVOTDATA. When I select a value to start the formula the format of the year is being changed from what I see in my lookup table and what comes across in the GETPIVOTDATA formula.
Basically the only part that is causing me problems is the Year portion where it is "[Year].&[2.014E3]" where I would expect (based on the table) that it would be "[Year].&[2014]".
Anyone have any idea why the year format would be different than what is in my lookup table?
Excel 2012 | ||||||||
---|---|---|---|---|---|---|---|---|
A | B | C | D | E | F | |||
1 | Date | FiscalYear | FiscalMonth | FiscalQuarter | FiscalWeek | DateLookup | ||
2 | 1/2/2006 | 2006 | 1 | 1 | 1 | P1 - WK1 | ||
3 | 1/3/2006 | 2006 | 1 | 1 | 1 | P1 - WK1 | ||
4 | 1/4/2006 | 2006 | 1 | 1 | 1 | P1 - WK1 | ||
5 | 1/5/2006 | 2006 | 1 | 1 | 1 | P1 - WK1 | ||
6 | 1/6/2006 | 2006 | 1 | 1 | 1 | P1 - WK1 | ||
7 | 1/7/2006 | 2006 | 1 | 1 | 1 | P1 - WK1 | ||
8 | 1/8/2006 | 2006 | 1 | 1 | 1 | P1 - WK1 | ||
9 | 1/9/2006 | 2006 | 1 | 1 | 2 | P1 - WK2 | ||
10 | 1/10/2006 | 2006 | 1 | 1 | 2 | P1 - WK2 | ||
11 | 1/11/2006 | 2006 | 1 | 1 | 2 | P1 - WK2 | ||
12 | 1/12/2006 | 2006 | 1 | 1 | 2 | P1 - WK2 | ||
13 | 1/13/2006 | 2006 | 1 | 1 | 2 | P1 - WK2 | ||
14 | 1/14/2006 | 2006 | 1 | 1 | 2 | P1 - WK2 | ||
CalendarLookup |
The date in that table is then matched up with the business date in another table and I am able to look at results by week, period, quarter or year (based on our fiscal calendar).
All of the data seems to be coming in just fine, and I have it all lined up. However, I am building some dynamic reporting on the front end using variations of GETPIVOTDATA. When I select a value to start the formula the format of the year is being changed from what I see in my lookup table and what comes across in the GETPIVOTDATA formula.
Code:
=GETPIVOTDATA("[Measures].[Sum of Amount]",$A$3,"[Enterprise_Sites].[Name]","[Enterprise_Sites].[Name].&[001 - St. George]","[Enterprise_PromoID].[Name]","[Enterprise_PromoID].[Name].&[Freq Diner Lrg Drink]","[CalendarLookup].[Year]","[CalendarLookup].[Year].&[2.014E3]","[CalendarLookup].[DateLookup]","[CalendarLookup].[DateLookup].&[P1 - WK2]")
Basically the only part that is causing me problems is the Year portion where it is "[Year].&[2.014E3]" where I would expect (based on the table) that it would be "[Year].&[2014]".
Anyone have any idea why the year format would be different than what is in my lookup table?