Converting value dates to true date format

john3

New Member
Joined
Mar 8, 2013
Messages
2
I am new to PowerPivot and have a feed from a MS Access query with date fields in the following format: yyyymmdd (20120101 = January 1, 2012). How do I convert this value formatted date into a date formatted date such as mm/dd/yyyy so that I can evaluate time lags, monthly trends, etc.

Thanks
 

Excel Facts

Can you AutoAverage in Excel?
There is a drop-down next to the AutoSum symbol. Open the drop-down to choose AVERAGE, COUNT, MAX, or MIN
John, although the DATE() function from excel works it's probably not the best idea to use it in a calculated column as it could cause performance issues, particularly if you are using that column in a relationship.

Any PowerPivot pro will tell you that you should be using a separate date table related to your fact table, even if that table is only a single column. In this case you could have a second column that contains the date 'serial' to use in the relationship.

Failing that there are a couple of techniques in SQL that you can use to adjust the source data before it even hits PowerPivot - Stackoverflow.com is good place to look for this. Even if you go down this path a separate date table is advised.

Jacob
 
Last edited:
Upvote 0

Forum statistics

Threads
1,223,939
Messages
6,175,530
Members
452,651
Latest member
wordsearch

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top