Filter values in a pivot table

ExGus

Board Regular
Joined
May 2, 2012
Messages
53
Hi,

I am struggling to filter Values in this example of a pivot table.
I want to remove all channels from the pivot that are less than $100 in total not by country. i.e. when I apply the filter I should see some country channels line in this data that are less than 100 because that channel will be on another country and in total they are over 100. I have tried using value filters without success.
i have only shown part of the data there are many more rows of data for more countries.
Any ideas how I might be able to do it?

thank you

Sum of DELIVERED $ NET
CountryChannel NameTotal
AustraliaComedy Central UK1,521.88
AustraliaNickelodeon UK1,134.46
AustraliaNick Jr.1,081.84
AustraliaMTV International295.19
AustraliaChannel Does not exist187.16
AustraliaBellator MMA148.59
AustraliaComedy Central Spain127.82
AustraliaMTV Shores88.98
AustraliaNick Jr. Россия70.41
AustraliaNickelodeon Spain31.13
Australia Total4,687.46
AustriaNickelodeon DE590.34
AustriaComedy Central DE442.74
AustriaMTV Germany201.56
AustriaComedy Central UK197.32
AustriaNickelodeon UK138.68
AustriaNick Jr.118.68
AustriaComedy Central Spain35.31
AustriaMTV International31.11
AustriaNickelodeon IT30.23
AustriaNick Jr. Россия26.03
Austria Total1,812.01
BrazilNickelodeon PT7,382.33
BrazilNick Jr.6,156.14
BrazilComedy Central BR1,022.42
BrazilNickelodeon Spain862.39
BrazilNickelodeon UK719.88
BrazilNick Jr. Россия688.35
BrazilNickelodeon IT550.23
BrazilNickelodeon France519.81
BrazilMTV Brasil382.80
BrazilNickelodeon DE159.85
Brazil Total18,444.20
ChileNick Jr.1,578.03

<tbody>
</tbody>
 

Excel Facts

What is the fastest way to copy a formula?
If A2:A50000 contain data. Enter a formula in B2. Select B2. Double-click the Fill Handle and Excel will shoot the formula down to B50000.
with PowerQuery aka Get&Transform

M-code:

Code:
[SIZE=1]// Table1
let
    Source = Excel.CurrentWorkbook(){[Name="Table1"]}[Content],
    Type = Table.TransformColumnTypes(Source,{{"Channel Name", type text}, {"Country", type text}, {"DELIVERED $ NET", type number}}),
    RplErr = Table.ReplaceErrorValues(Type, {{"Channel Name", null}}),
    Group = Table.Group(RplErr, {"Channel Name"}, {{"Delivered & Net", each List.Sum([#"DELIVERED $ NET"]), type number}, {"Count", each _, type table}}),
    GreaterThan100 = Table.SelectRows(Group, each [#"Delivered & Net"] > 100),
    List = Table.AddColumn(GreaterThan100, "Country", each List.Distinct(Table.Column([Count],"Country"))),
    ExpandCountry = Table.ExpandListColumn(List, "Country"),
    Reorder = Table.ReorderColumns(ExpandCountry,{"Country", "Channel Name", "Delivered & Net", "Count"}),
    Sort = Table.Sort(Reorder,{{"Country", Order.Ascending}})
in
    Sort[/SIZE]
 
Upvote 0
NO!

as I said this is PowerQuery (Get&Transform) not any vba

what is your Excel version?
 
Upvote 0
In the expand country step it is doing something odd, it is duplicating the total for the channel Sum and then applying that number to each row when country is brought in so ending up with a much bigger number,
 
Upvote 0
so maybe this layout will be better

Channel NameDelivered & NetCountry
Comedy Central UK
926.12​
Poland, Brazil, Switzerland, Austria, Mexico, Chile
Nickelodeon PT
761.67​
Mexico, Chile, Russia, Malaysia, Thailand, France, Poland, United Kingdom, Sweden, Switzerland, Austria, Australia, Hong Kong
Nick Jr. ??????
1095.16​
Thailand, Poland, France, Mexico, Malaysia, United Kingdom, Sweden, Australia, Hong Kong, Switzerland, Austria
Bellator MMA
1003.32​
Brazil, Malaysia, Thailand, United Kingdom, France, Australia, Sweden, Poland, Hong Kong, Germany, Mexico, Chile, Austria, Switzerland
Nickelodeon DE
881.87​
Switzerland, Russia, Thailand, Malaysia, Poland, France, Chile, Mexico, United Kingdom, Sweden, Australia, Hong Kong
Nickelodeon France
763.76​
Russia, Malaysia, Thailand, Chile, Mexico, Poland, Switzerland, United Kingdom, Sweden, Austria, Australia, Hong Kong
MTV IT
408.37​
Indonesia, Switzerland, Malaysia, France, Thailand, Russia, Germany, Brazil, United Kingdom, Poland, Sweden, Austria, Mexico, Hong Kong, Chile, Australia
Nick Jr.
583.04​
Hong Kong, Switzerland, Austria
Comedy Central Spain
958.93​
Mexico, Indonesia, Russia, Malaysia, Brazil, Australia, United Kingdom, Sweden, Thailand, France, Poland, Germany, Chile, Austria, Switzerland, Hong Kong
MTV International
970.52​
Malaysia, Australia, Russia, Sweden, Thailand, Poland, France, Brazil, Germany, Hong Kong, Mexico, Austria, Switzerland, Chile
Channel Does not exist
841.21​
United Kingdom, Malaysia, Australia, Sweden, Thailand, France, Russia, Brazil, Germany, Hong Kong, Poland, Switzerland, Austria, Indonesia, Mexico, Chile
Nickelodeon IT
882.54​
Russia, France, Thailand, Mexico, Malaysia, Chile, Switzerland, Poland, United Kingdom, Sweden, Austria, Australia, Hong Kong
MTV Shores
686.67​
United Kingdom, Indonesia, Brazil, France, Australia, Poland, Malaysia, Sweden, Germany, Thailand, Russia, Switzerland, Austria, Hong Kong
MTV FR
301.72​
France, Malaysia, Thailand, Russia, Mexico, Brazil, Switzerland, Poland, United Kingdom, Germany, Australia, Chile, Sweden, Austria, Hong Kong
Nickelodeon UK
504.76​
Hong Kong, Austria, Switzerland
MTV Germany
444.39​
Austria, Switzerland, Indonesia, Poland, Russia, France, Malaysia, United Kingdom, Thailand, Australia
Comedy Central DE
299.85​
Switzerland, Thailand, Poland, France, Russia, Indonesia, Sweden, Australia, United Kingdom, Brazil, Hong Kong, Malaysia, Chile, Mexico
Nickelodeon Spain
633.94​
France, Malaysia, Poland, Thailand, United Kingdom, Sweden, Switzerland, Austria, Australia, Hong Kong
Big Brother UK
151.36​
Indonesia, United Kingdom, Malaysia, Thailand, Russia, Hong Kong, Brazil, Australia, France, Poland, Sweden, Germany, Mexico, Chile, Austria, Switzerland
MTV PL
185.02​
Malaysia, Thailand, Russia, Brazil, France, United Kingdom, Germany, Sweden, Mexico, Austria, Hong Kong, Switzerland, Chile, Australia
Nickelodeon ??????
168.96​
Brazil, Indonesia, Thailand, Malaysia, France, Poland, Chile, Mexico, United Kingdom, Sweden, Australia, Austria, Hong Kong, Switzerland
Nickelodeon NL
107.36​
Brazil, Indonesia, Russia, France, Thailand, Mexico, Sweden, Malaysia, United Kingdom, Chile, Poland, Austria, Australia, Switzerland, Hong Kong
 
Upvote 0

Forum statistics

Threads
1,214,912
Messages
6,122,204
Members
449,072
Latest member
DW Draft

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