RobertCotton
Board Regular
- Joined
- Nov 1, 2010
- Messages
- 99
I'm fairly new to powerpivot but learning fast. (Thanks to this board and PowerPivotPro)
I am preparing to do an analysis for my boss that will include several date/time calculations. (number of Invoices per day, week, month, average invoice amount per day, week, month, etc.)
I am using Excel 2010 with PoxerPivot V2 and my data resides in a SQL 2008 R2 database. I do the "heavy lifting" in SQL by creating a "view" that does most of my data mashing. ( I add the day of week, month, week number, month number, etc. from a calendare table in my SQL database) Then I link to the view usinf PowerPivot.
I have read numerous posts that say that PowerPivot REQUIRES a Calendar table to do complex date/time calculations and I am wondering if someone could elaborate on the WHY this is required and the best way to meet the requirements.
It would be no problem for me to add a link to my SQL calendar table in Powerpivot.
Here are just some of my questions.
1. Should I leave the calendar table "disconnected" or establish a relationship to my sales data (Invoice Date)?
2. Should I add calculated columns/measures where day of week, week num, month, etc. are based on the columns from the calendar tabel or are the columns from my initial "view" sufficient?
3. If the answer to question 2 is that the view is sufficient then is the seperate calendar table used primariy for building splicers that contain all possible combinations.
Tis message board has really helped me start to build meaningful reports using PowerPivot. Thanks in advance for your help.
Robert Cotton
I am preparing to do an analysis for my boss that will include several date/time calculations. (number of Invoices per day, week, month, average invoice amount per day, week, month, etc.)
I am using Excel 2010 with PoxerPivot V2 and my data resides in a SQL 2008 R2 database. I do the "heavy lifting" in SQL by creating a "view" that does most of my data mashing. ( I add the day of week, month, week number, month number, etc. from a calendare table in my SQL database) Then I link to the view usinf PowerPivot.
I have read numerous posts that say that PowerPivot REQUIRES a Calendar table to do complex date/time calculations and I am wondering if someone could elaborate on the WHY this is required and the best way to meet the requirements.
It would be no problem for me to add a link to my SQL calendar table in Powerpivot.
Here are just some of my questions.
1. Should I leave the calendar table "disconnected" or establish a relationship to my sales data (Invoice Date)?
2. Should I add calculated columns/measures where day of week, week num, month, etc. are based on the columns from the calendar tabel or are the columns from my initial "view" sufficient?
3. If the answer to question 2 is that the view is sufficient then is the seperate calendar table used primariy for building splicers that contain all possible combinations.
Tis message board has really helped me start to build meaningful reports using PowerPivot. Thanks in advance for your help.
Robert Cotton