+ Reply to Thread
Results 1 to 3 of 3

Convert Text to Date in PowerPivot

  1. #1
    Forum Contributor
    Join Date
    03-03-2011
    Location
    Ottawa, Ontario
    MS-Off Ver
    365
    Posts
    136

    Convert Text to Date in PowerPivot

    I am importing data using an ODBC connection and one of the columns is a date formatted as text as dd/mm/yyyy (Canadian). I need to be able to convert this to a date formatted as mm/dd/yyyy in my PowerPivot table. I was hoping to be able to do this with a new calculated column so I can use it as a slicer in a pivot table as well as with other date formulas. I have searched all over but can't seem to find what I am looking for so I hope somebody can start me with a formula that may help. Thanks for any help.

  2. #2
    Forum Expert teylyn's Avatar
    Join Date
    10-28-2008
    Location
    New Zealand
    MS-Off Ver
    Excel 365 Insider Fast
    Posts
    11,372

    Re: Convert Text to Date in PowerPivot

    Hello,

    it might be easiest to use Power Query to get the data, clean it up and then load it straight to the data model. That's what Power Query is good at and what it's made for.

    Split the text column by the custom delimiter "/", in a new column, concatenate the resulting three columns in the way you need, then change the data type of the new column to date. Finally delete the three columns created by the split.

    cheers, teylyn

  3. #3
    Forum Contributor
    Join Date
    03-03-2011
    Location
    Ottawa, Ontario
    MS-Off Ver
    365
    Posts
    136

    Re: Convert Text to Date in PowerPivot

    thanks....i ended up splitting the date into 3 new columns then concatenating them into a new column in the order I needed then could format as a date.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Convert Text to Date Skipping Blank Cells for PowerPivot
    By brent_milne in forum Excel Charting & Pivots
    Replies: 2
    Last Post: 04-01-2015, 05:32 PM
  2. Convert sumproduct formula for use in powerpivot?
    By rskadk in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 08-26-2014, 04:04 AM
  3. Replies: 2
    Last Post: 06-02-2014, 09:34 AM
  4. [SOLVED] How to convert exported text date to desired date format with excel vba.
    By sktneer in forum Excel Programming / VBA / Macros
    Replies: 25
    Last Post: 10-03-2013, 01:08 AM
  5. Powerpivot: Convert Datetime to Weekly format (mm/dd - mm/dd)
    By thagasa in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 09-14-2013, 07:40 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1