+ Reply to Thread
Results 1 to 5 of 5

Display Filter selection in pivot chart title

  1. #1
    Registered User
    Join Date
    07-24-2010
    Location
    Magnolia, TX
    MS-Off Ver
    Office 365
    Posts
    10

    Display Filter selection in pivot chart title

    I have Excel 2007 and want to display the items selected in the Pivot Chart filter on the chart title. So that if I select apples, it displays Apple Boxes Sold or if apples, oranges and peaches are selected then the chart title will display Apple Orange Peach Boxes Sold.
    I know nothing about VBA but think it is the rout I will have to take to get it done.
    Thanks,
    Lee

  2. #2
    Registered User
    Join Date
    09-12-2007
    Posts
    22

    Re: Display Filter selection in pivot chart title

    Hi

    I am looking for the same solution as Aggie81.

    I have given my users a really cool dynamic pivot chart which they can mainpulate data using eight report filters, the only problem is there is no way of showing what you have filtered on, especially if it is multiple items, either in the title or even in a formula below the chart.

    Does anyone have the knowledge to give a soultion to this really frustrating problem! Looks like VBA is the only answer.

    Many Thanks

  3. #3
    Registered User
    Join Date
    09-08-2011
    Location
    Houston, TX
    MS-Off Ver
    Excel 2010 64-bit
    Posts
    14

    Re: Display Filter selection in pivot chart title

    I'm interested in displaying the filter selection in the chart title as well.

    Thanks in advance,
    Mike

  4. #4
    Registered User
    Join Date
    11-03-2011
    Location
    New Jersey, USA
    MS-Off Ver
    Excel 2007
    Posts
    2

    Re: Display Filter selection in pivot chart title

    Hi,

    I'm new here. But hope I can help you guys.

    It's not quite complicated if you want to add a dynamic title on charts. Here is the macro you can modify and use in a Event of a Worksheet where a PT is residing.

    Sub SetChartTitle()
    For Each s In ActiveSheet.Shapes
    If InStr(s.Name, "Chart") Then
    s.Select
    With ActiveChart.ChartTitle
    .Characters.Text = "Market: " & Range("C4") & " State: " & Range("C3")
    .Font.Size = 8
    .Font.FontStyle = "Bold"
    End With
    End If
    Next
    End Sub

    Hope this helps. I used it quite often and it worked for me.

    John

  5. #5
    Registered User
    Join Date
    11-03-2011
    Location
    New Jersey, USA
    MS-Off Ver
    Excel 2007
    Posts
    2

    Re: How to add a vertical line on a chart to represent a cut-off point?

    Hi,

    I tried to add a vertical line on a chart and make it dynamic, i.e., the line will move with the change in data. First of all, I have to add a line first.

    I tried Jon Peltier's methodology but no luck.

    My data like this, trying to add a V-line between -1 and 1, i.e., 0.

    Thanks in advance.

    John


    Test_Cntl -6 -5 -4 -3 -2 -1 1 2 3
    TEST 2.31545 2.28849 2.11074 2.36310 2.21455 2.29629 2.22503 2.18116 2.31045
    CNTL 2.33816 2.28416 2.10368 2.34673 2.20748 2.26168 2.26475 2.15487 2.31083

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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