+ Reply to Thread
Results 1 to 9 of 9

Powerpivot data import with trailing minus

  1. #1
    Forum Contributor
    Join Date
    07-16-2013
    Location
    Houston, Texas
    MS-Off Ver
    Excel 2013
    Posts
    176

    Powerpivot data import with trailing minus

    My text data file have trailing minus (for example 8- instead of -8), when I import them into PowerPivot via OLED/ODBC connection, they become blank. Does anyone knows how to this without VBA?

    This is my connection string:

    Provider=Microsoft.ACE.OLEDB.12.0;Data Source=\\networkname\interface\RPT\;Persist Security Info=false;Extended Properties="Text;HDR=Yes;FMT=TabDelimited";Jet OLEDB:Registry Path=Software\Microsoft\Office\15.0\PowerPivot\ACE\TabDelimited

    Attached is an example of the file.

    Thanks in advance!
    Attached Files Attached Files

  2. #2
    Forum Contributor
    Join Date
    07-16-2013
    Location
    Houston, Texas
    MS-Off Ver
    Excel 2013
    Posts
    176

    Re: Powerpivot data import with trailing minus

    Is my problem difficult or my question is not clear? Lots of view, but no response. =(

  3. #3
    Forum Expert Debraj Roy's Avatar
    Join Date
    09-27-2012
    Location
    New Delhi,India
    MS-Off Ver
    Excel 2013
    Posts
    1,469

    Re: Powerpivot data import with trailing minus

    Hi igoodable!

    In case of PowerPivot.. I dont hink, any option to change anything in the source.. However.. you can add a Calculated Column, (Simply Excel Formula will work.. No DAX required) and you can hide the source Column.

    Something like..
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Right now no Power Pivot available.. if required let us know.
    Regards!
    =DEC2HEX(3563)

    If you like someone's answer, click the star to give them a reputation point for that answer...

  4. #4
    Forum Contributor
    Join Date
    07-16-2013
    Location
    Houston, Texas
    MS-Off Ver
    Excel 2013
    Posts
    176

    Re: Powerpivot data import with trailing minus

    Thanks for the reply Debraj, it has to be Powerpivot because I'm working with many multiple data sources. On top of that, the tables are huge and they are also many to many relations. I'm trying my best to avoid VBA, but it looks like i'm running out of options.

  5. #5
    Forum Expert Debraj Roy's Avatar
    Join Date
    09-27-2012
    Location
    New Delhi,India
    MS-Off Ver
    Excel 2013
    Posts
    1,469

    Re: Powerpivot data import with trailing minus

    I just tried .. and its working fine .. did you tried by changing Column Separator as "TAB" instead of Comma..

    https://dl.dropboxusercontent.com/u/...2006-00-32.jpg
    Attached Images Attached Images
    Last edited by Debraj Roy; 11-25-2014 at 08:38 PM.

  6. #6
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,167

    Re: Powerpivot data import with trailing minus

    One test is worth a thousand opinions.
    Click the * Add Reputation below to say thanks.

  7. #7
    Forum Contributor
    Join Date
    07-16-2013
    Location
    Houston, Texas
    MS-Off Ver
    Excel 2013
    Posts
    176

    Re: Powerpivot data import with trailing minus

    Quote Originally Posted by MarvinP View Post
    Thanks for the response Marvin, but these won't work either because I'm importing the data in as an OLEDB connection.
    Last edited by igoodable; 12-01-2014 at 04:30 PM.

  8. #8
    Forum Contributor
    Join Date
    07-16-2013
    Location
    Houston, Texas
    MS-Off Ver
    Excel 2013
    Posts
    176

    Re: Powerpivot data import with trailing minus

    Quote Originally Posted by Debraj Roy View Post
    I just tried .. and its working fine .. did you tried by changing Column Separator as "TAB" instead of Comma..

    https://dl.dropboxusercontent.com/u/...2006-00-32.jpg
    I do have it as tab, I think the reason it works for you because the sample data doesn't include regular numbers. If there are both regular numbers and trailing minus number, the system import only the numeric value and leave the trailing minus as blank. I tried IMEX=1, but it doesn't help either.

  9. #9
    Forum Guru romperstomper's Avatar
    Join Date
    11-04-2008
    Location
    A1
    MS-Off Ver
    Most
    Posts
    12,302

    Re: Powerpivot data import with trailing minus

    FWIW, it works OK for me in 2010 with mixed numbers.
    Remember what the dormouse said
    Feed your head

+ 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. Powerpivot data import with trailing minus
    By igoodable in forum Excel General
    Replies: 0
    Last Post: 11-25-2014, 11:39 AM
  2. Import several data sources to PowerPivot
    By Jonathan9 in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 08-20-2014, 09:17 AM
  3. PowerPivot – only import new data from DB
    By MartinCarlsson in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 05-08-2013, 04:30 AM
  4. Trailing minus
    By mkvassh in forum Excel General
    Replies: 4
    Last Post: 12-03-2008, 08:49 AM
  5. [SOLVED] CHANGE TRAILING MINUS TO BRACKETS OR PRECEEDING MINUS
    By Socal Analyst looking for help in forum Excel General
    Replies: 2
    Last Post: 05-12-2006, 02:20 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