+ Reply to Thread
Results 1 to 4 of 4

Filtering OLAP Pivot Table by array

  1. #1
    Registered User
    Join Date
    01-26-2013
    Location
    Norge
    MS-Off Ver
    Excel 2010
    Posts
    2

    Filtering OLAP Pivot Table by array

    Hi all,

    I am trying to filter a Pivot Table that has a OLAP source, by multiple ItemId's in the worksheet.

    The values that I want to filter by is in cell A2 and down. The list of ItemId's that should be visible in the Pivot Table could be anything from 1 to 500

    As a small test i wrote the following line of code, and it works great.

    Please Login or Register  to view this content.
    However, when using a variable (ITEMID) I only get a Run-time Error '1004'.

    Please Login or Register  to view this content.
    Any help would be appreciated!

    Cross-posted here: https://www.mrexcel.com/forum/excel-...ble-array.html

  2. #2
    Forum Guru xlnitwit's Avatar
    Join Date
    06-27-2016
    Location
    London
    MS-Off Ver
    Windows: 2010; Mac: 16.13 (O365)
    Posts
    7,085

    Re: Filtering OLAP Pivot Table by array

    Hi

    You are only passing a one item array. Use Split to create an array from your string or populate an array in the first place instead of concatenating text.
    Don
    Please remember to mark your thread 'Solved' when appropriate.

  3. #3
    Registered User
    Join Date
    01-26-2013
    Location
    Norge
    MS-Off Ver
    Excel 2010
    Posts
    2

    Re: Filtering OLAP Pivot Table by array

    Thank you!

    Split did unfortunately not work as well as i had hoped.

    How would i go forward to populate an array in the first place?

  4. #4
    Forum Guru xlnitwit's Avatar
    Join Date
    06-27-2016
    Location
    London
    MS-Off Ver
    Windows: 2010; Mac: 16.13 (O365)
    Posts
    7,085

    Re: Filtering OLAP Pivot Table by array

    Something along these lines
    Please Login or Register  to view this content.

+ 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. Vba For Olap Pivot Table
    By kev78 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 01-10-2017, 12:41 AM
  2. Replies: 0
    Last Post: 07-14-2016, 03:51 PM
  3. VBA Pivot Table Page Filter for OLAP Pivot
    By Bstone2015 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 03-13-2015, 10:54 AM
  4. Filtering items in OLAP pivot
    By nic_hartley in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 11-29-2013, 01:55 AM
  5. OLAP Pivot Filter from array
    By Sharon in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 08-15-2006, 10:05 AM
  6. Pivot Table - OLAP Cube
    By dlinvfc in forum Excel General
    Replies: 0
    Last Post: 01-30-2006, 08:30 PM
  7. Filtering Pivot table from Olap
    By Ciupaz in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 02-24-2005, 11:08 AM

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