Excel slicers does not hide items without data when filtering using timeline - excel

I have some pivottables, slicers and one timeline connected together. In the pivottable the timeline filters correctly.
I have set up the slicers with "hide items with no data". But when I filter on dates using the timeline, the slicers shows items with no data within the timeframe set in the timeline. Is it possible to solved this in a simple way? My dataset has 200k+ rows, so I don`t think using vba to loop through all rows within the timeframe and hide the items without data would be a good solution with regards to perfomance.

Related

Pivot slicer not coordinating with selected filters

I already worked with slicers without problems, but this time I noticed that in this pivot my slicer doesn't update properly according to filters selected.
'Allow multiple filters per field' is unticked, so the slicer depends on other filters and thus should be able to hide data that has no values in the filtered pivot...logically.
But why it still shows data that has no values?
Thank you for any help
I figured it out after tons of tries.
It was because I was filtering the pivot table using a "fabricated/forced" filter on pivot columns as you can see in the firt picture and as recommanded here : https://answers.microsoft.com/en-us/office/forum/office_2010-excel/filtering-a-pivot-table-on-a-calculated-field/31312a31-8e9a-401b-acb0-ed575d9cb397
which turned out to be a VERY bad idea causing a lot of troubles in the pivot.
Instead, when using a regular filter(drag & droped in Filters in Field list window), everything works and updates well in the pivot.

How to create a list of all ticked/non-ticked filter in an excel pivot table

This, I hope, is a really simple question but it might not be possible.
In excel, I have used multiple filters in a pivot table, I now want to create a list of the options ticked from the various filters.
How can I create a list/copy all the ticked (or un-ticked) boxes. I have around 800 filters with about 250 boxes ticked.
The Manual approach:
Select a cell in the PivotTable. Then from the PivotTable Tools>Analyze tab use the Select icon to select the entire PivotTable. Copy it and paste it somewhere else. Drag every field out of it, leaving just the Customers field in it as a Rows field. There's your list.
If you add a slicer, and connect it to both PivotTables, then any changes to the Customer field in your original Pivot will flow through to this new one.
The VBA Approach:
See my UDF at https://superuser.com/questions/1254703/add-slicer-selections-to-sheet-in-a-list-excel-vba/1255885#1255885
And if you want a way to 'recall' a filter, then check out my answer here:
Pivotfields multiple filter

Copy Filters from one PowerPivot PivotTable to another

I have 2 PivotTables that were created from PowerPivot connections. I would like the second PivotTable to change based on a selection the user makes on the first PivotTable. I have some VBA background, so you don't need to write the whole code but point me to the right functions/structure.
If you use slicers, you can simply link both tables to the same set of slicers. You can even have multiple copies of each slicer.
It's the same in all versions of Excel since 2010. Here's a link.
Edit: Adding information from my comment below here.
You can use this technique even when you're explicitly using a filter on the pivot table, whether by adding a field to the Filters section, or by putting that field on the row/column labels and then limiting the selection based on that row/column header drop down. You can mix and match these as well, with Pivot1 having the field in question in the Filters section, and Pivot2 having the field in the Rows section.
Just create your two pivot tables as normal, and then connect both to the same slicer. This slicer can be hidden on another sheet that is not displayed to the end users. This solution is much more expedient than the VBA solutions I've seen.

Master PivotTable Filter

I have 6 pivot-charts on many worksheets (each worksheet corresponding to different individuals), all pivot-tables have a Month filter. Instead of clicking on each individual filter to update the pivot-table (and corresponding pivot-chart). Is there a way of creating a 'master' filter button so that all filters are updated?
Let me know if you require further information.
You can accomplish this by using a slicer. Slicers are similar to filters, but look a little different and can be associated with multiple pivot tables. This means you might want to make a "front page" or similar area with the slicer on it so it is obvious that the one slicer controls the month filter for all pivot tables.
You just insert the slicer on the page, then click on Report Connections and connect it to each pivot table.

Create Multiple 'PivotCharts' on One 'PivotTable'

Within my Excel Spreadsheet I have a PivotTable which is based on data retrieved from a SQL query.
The PivotTable is made up of a series of customers, each with their own stock value.
I made a PivotChart, but as there are many customers, the lines on the Chart are unreadable.
I want to make an individual chart for each customer, however when I filter on one customer, every chart filters on that customer - not allowing me to do one chart for each
Is there a way around this?
After investigation, adding more than one PivotChart distorted the layout of the underlying data.
Therefore it is necessary to read the same data into the Excel spreadsheet twice to have a second PivotChart.

Resources