+ Reply to Thread
Results 1 to 4 of 4

Pivot table showed "All" instead of "Multiple items" when using datasource from CSV

  1. #1
    Registered User
    Join Date
    08-26-2009
    Location
    HK
    MS-Off Ver
    Excel 2003
    Posts
    3

    Pivot table showed "All" instead of "Multiple items" when using datasource from CSV

    I use the following code to get pivot table data source throught ODBC connect to CSV. However, when I chose hide item in "Page" fields, it showed "all" instead of "multiple items". Any expert can help?

    Thanks you!

    Please Login or Register  to view this content.
    Last edited by dikchan@hotmail.com; 08-27-2009 at 06:09 AM.

  2. #2
    Registered User
    Join Date
    08-26-2009
    Location
    HK
    MS-Off Ver
    Excel 2003
    Posts
    3

    Re: Pivot table showed "All" instead of "Multiple items" when using datasource from C

    noted and revised, Thanks!

  3. #3
    Registered User
    Join Date
    08-26-2009
    Location
    HK
    MS-Off Ver
    Excel 2003
    Posts
    3

    Re: Pivot table showed "All" instead of "Multiple items" when using datasource from C

    Just found the solution in red

    With ActiveWorkbook.PivotCaches.Add(SourceType:=xlExternal)
    .Connection = "ODBC;DSN=ODBC_CSV;DefaultDir=" & PathName & ";DriverId=27;FIL=text;MaxBufferSize=2048;PageTimeout=5;"
    .CommandType = xlCmdSql
    .CommandText = Query
    .CreatePivotTable SheetName & "!R5C1", TableName, , DefaultVersion:=xlPivotTableVersion10
    End With

  4. #4
    Forum Expert romperstomper's Avatar
    Join Date
    08-13-2008
    Location
    England
    MS-Off Ver
    365, varying versions/builds
    Posts
    21,971

    Re: Pivot table showed "All" instead of "Multiple items" when using datasource from C

    Actually, the bit in red is irrelevant. You've completely changed how you make the pivot table, which is why it behaves differently!
    Everyone who confuses correlation and causation ends up dead.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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