Please help, to get multiple items selected in pivot table's Filter

Rainbow_P

New Member
Joined
May 6, 2022
Messages
25
Office Version
  1. 365
Platform
  1. Windows
Good day!


Can you please help me with a question on Pivot table Filters?

Taking below as a simple sample. There are (Multiple Items) in the Month ("1987-09" and "1987-10").

Is there any way/formula that I can get the filter set? (to return the values as "1987-09" and "1987-10")

Thank you.

Book3.xlsx
ABCDEFG
1TownDepartmentMonthMonth(Multiple Items)
2EastBeer and Wine1987-08
3EastHealth and Beauty1987-09Row LabelsCount of Department
4EastMeat1987-09East4
5EastProduce1987-10South1
6EastSeafood1987-09Grand Total5
7SouthProduce1987-10
Sheet2
 

Excel Facts

Shade all formula cells
To shade all formula cells: Home, Find & Select, Formulas to select all formulas. Then apply a light fill color.
Is this what you are looking for? Not quite sure what you are asking. Suggest you show a mocked up solution

Row Labels
East
1987-08
1987-09
1987-10
South
1987-10
 
Upvote 0
@alansidman, thank you for your reply.

I meant, what's the way to return the values selected (in cell G1 in my original post).

Thanks again.
 
Upvote 0
Why is East showing as 4 in your mock up (Col G) when there are 5 East Items? And only 3 unique dates? Please unconfuse me.
 
Upvote 0
Good morning @alansidman, thanks for the follow-up.
It's because the pivot table has a Filter for chosen multiple months for "1987-09" and "1987-10".

I want to know what's the way to get to know the "1987-09" and "1987-10" (preferabbly a workable way in another sheet, for example a formula).

Thanks again

20230717_101714.gif
 
Upvote 0
Does this presentation work for you?
Book6
ABC
1TownDepartmentMonth
2EastBeer and Wine1987-08
3EastHealth and Beauty1987-09
4EastMeat1987-09
5EastProduce1987-10
6EastSeafood1987-09
7SouthProduce1987-10
8
9TownMonthCount
10East1987-081
11East1987-093
12East1987-101
13South1987-101
Sheet1



If Yes, then use this Mcode from Power Query

Power Query:
let
    Source = Excel.CurrentWorkbook(){[Name="Table1"]}[Content],
    #"Grouped Rows" = Table.Group(Source, {"Town", "Month"}, {{"Count", each Table.RowCount(_), Int64.Type}})
in
    #"Grouped Rows"
 
Upvote 0
Good day, @alansidman, thanks for your attention and effort again!

However, it's not the solution I am looking for.


Does this presentation work for you?
Book6
ABC
1TownDepartmentMonth
2EastBeer and Wine1987-08
3EastHealth and Beauty1987-09
4EastMeat1987-09
5EastProduce1987-10
6EastSeafood1987-09
7SouthProduce1987-10
8
9TownMonthCount
10East1987-081
11East1987-093
12East1987-101
13South1987-101
Sheet1



If Yes, then use this Mcode from Power Query

Power Query:
let
    Source = Excel.CurrentWorkbook(){[Name="Table1"]}[Content],
    #"Grouped Rows" = Table.Group(Source, {"Town", "Month"}, {{"Count", each Table.RowCount(_), Int64.Type}})
in
    #"Grouped Rows"
 
Upvote 0

Forum statistics

Threads
1,224,737
Messages
6,180,653
Members
452,992
Latest member
TokugawaIesuma

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top