Closed Thread
Results 1 to 3 of 3

Filtering Date in Pivot Table data from cube

  1. #1
    Registered User
    Join Date
    04-29-2015
    Location
    Australia
    MS-Off Ver
    2013
    Posts
    1

    Filtering Date in Pivot Table data from cube

    Hello All,
    I appreciate your great contribution to this forum, and in recognition of your wealth of knowledge I write to seek your assistance on an issues I am having. I have pivot table with data from cube, I need to filter the table based on the value of two date field Begin and end date. I have tried some of the script you used to assist in some issue but no success. I have sample of the data and Macro recorded filter script below. Thank you


    Sub FilterMacro()
    '
    ' FilterMacro Macro
    ' Date FilterMacro
    '


    '
    ActiveSheet.PivotTables("PivotTable2").PivotFields( _
    "[Date Dimension].[Fiscal Month].[Fiscal Month]").VisibleItemsList = Array( _
    "[Date Dimension].[Fiscal Month].&[2013\14]&[5]", _
    "[Date Dimension].[Fiscal Month].&[2013\14]&[6]", _
    "[Date Dimension].[Fiscal Month].&[2013\14]&[7]", _
    "[Date Dimension].[Fiscal Month].&[2013\14]&[8]", _
    "[Date Dimension].[Fiscal Month].&[2013\14]&[9]", _
    "[Date Dimension].[Fiscal Month].&[2013\14]&[10]", _
    "[Date Dimension].[Fiscal Month].&[2013\14]&[11]", _
    "[Date Dimension].[Fiscal Month].&[2013\14]&[12]", _
    "[Date Dimension].[Fiscal Month].&[2014\15]&[1]", _
    "[Date Dimension].[Fiscal Month].&[2014\15]&[2]", _
    "[Date Dimension].[Fiscal Month].&[2014\15]&[3]", _
    "[Date Dimension].[Fiscal Month].&[2014\15]&[4]", _
    "[Date Dimension].[Fiscal Month].&[2014\15]&[5]", _
    "[Date Dimension].[Fiscal Month].&[2014\15]&[6]", _
    "[Date Dimension].[Fiscal Month].&[2014\15]&[7]", _
    "[Date Dimension].[Fiscal Month].&[2014\15]&[8]", _
    "[Date Dimension].[Fiscal Month].&[2014\15]&[9]", _
    "[Date Dimension].[Fiscal Month].&[2014\15]&[10]")
    End Sub

    Date 1/01/2010 This Data is from MS SQL Cube , I want to filter using Begin date and End Date
    End Date 30/06/2011
    Description Jan-2010 Feb-2010 Mar-2010 Apr-2010 May-2010 Jun-2010 Jul-2010 Aug-2010 Sep-2010 Oct-2010 Nov-2010 Dec-2010 Jan-2011 Feb-2011 Mar-2011
    ABC
    ABC (Central) 7
    ABC (North East)
    ABC (South East)
    ABC (South) 7 5 7
    ABC (Sydney Metro)
    ABC (West)
    DEF

  2. #2
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    15,607

    Re: Filtering Date in Pivot Table data from cube

    Your post does not comply with Rule 3 of our Forum RULES. Use code tags around code.

    Posting code between [CODE]Please [url=https://www.excelforum.com/login.php]Login or Register [/url] to view this content.[/CODE] tags makes your code much easier to read and copy for testing, it also maintains VBA formatting.

    Highlight your code and click the # icon at the top of your post window. More information about these and other tags can be found here



    (This thread should receive no further responses until this moderation request is fulfilled, as per Forum Rule 7)

  3. #3
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    15,607

    Re: Filtering Date in Pivot Table data from cube

    Welcome to the Forum, unfortunately:

    This is a duplicate post and as such does not comply with Rule 5 of our forum rules. This thread will now be closed, you may continue in your other thread in Commercial Services subforum.

    Thread Closed.

Closed Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Pivot Table Report Filtering by Date
    By Designs in forum Excel General
    Replies: 3
    Last Post: 02-11-2016, 08:23 AM
  2. [SOLVED] Filtering Data Pivot Table is Based On - Impact on Pivot Table
    By bbg22 in forum Excel Charting & Pivots
    Replies: 2
    Last Post: 07-17-2013, 06:34 AM
  3. Pivot table date filtering question?
    By s_zabihi in forum Excel General
    Replies: 10
    Last Post: 12-06-2011, 12:08 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