slicers

PowerBI: Slicer to filter a table Only when more than 1 value is selected

折月煮酒 提交于 2019-12-11 08:03:47
问题 I have a table with 5 categories and units displayed into 2 types, Actual and budget. I want to filter this table. Only when 2 or more values are selected in the slicer. Something like this. I though of adding a measure, but dont know how to work the if statement exactly. Measure = IF(COUNTROWS(ALLSELECTED(Report[Shipment Group])) = 1, "Something which would not filter the units", SELECTEDVALUE(Report[Units], SUM(Report[Units]))) Not sure if this is correct approach.Would like to know if any

macro to change multiple slicer values

三世轮回 提交于 2019-12-08 12:18:15
问题 I am at a loss after some searching. I have two pivot tables driven from two different data source/caches. source 1 is a table with departments' total charged amounts, source 2 has the same departments with the total denied dollar amounts. I am pulling the data from both of these into pivot tables so that I can manipulate the department (among other things) to calculate percentages. My original thought was to set a "Department" slicer for each table, and have a macro assigned to one of the

Use VBA to select and deselect multiple slicer items (OLAP data)

人走茶凉 提交于 2019-12-06 15:34:12
问题 I am working on a script which selects only the needed slicer items. I tried using .SlicerItems.Selected = True / False for selecting and deselecting but I am using an OLAP data source in which case .Selected is read-only. The slicer items are in the format of YYYYWW so 7th week of 2018 would be 201807. I recorded a macro selecting some slicer items and this is what it gave me: Sub Macro2() ActiveWorkbook.SlicerCaches("Slicer_YYYYWW").VisibleSlicerItemsList = Array( _ "[Results].[YYYYWW].&

Use VBA to select and deselect multiple slicer items (OLAP data)

ぐ巨炮叔叔 提交于 2019-12-04 21:53:29
I am working on a script which selects only the needed slicer items. I tried using .SlicerItems.Selected = True / False for selecting and deselecting but I am using an OLAP data source in which case .Selected is read-only. The slicer items are in the format of YYYYWW so 7th week of 2018 would be 201807. I recorded a macro selecting some slicer items and this is what it gave me: Sub Macro2() ActiveWorkbook.SlicerCaches("Slicer_YYYYWW").VisibleSlicerItemsList = Array( _ "[Results].[YYYYWW].&[201726]", "[Results].[YYYYWW].&[201727]", _ "[Results].[YYYYWW].&[201728]", "[Results].[YYYYWW].&[201729]

Linked tables and Slicer in excel

倾然丶 夕夏残阳落幕 提交于 2019-12-02 04:33:25
问题 I can not create a slicer in excel that filters not only by the main table, too by a secondary table that should be linked with the first table with a field key that is the reference. In other words, the main table is the students table with a unique ID that is reference. The secondary table are the classes that each student attends. I want the Slicer to filter, to which classes each student attends and shows me the student table, only with the students that match the slicer selection of the

How to link a Table and a Pivot Table using Slicers in Excel?

自古美人都是妖i 提交于 2019-12-01 14:48:50
Well. I have a table named "ALL_INFO" on a Sheet in Excel and I made a Pivot table in other sheet, its name is "PIVOT_INFO". And I would like to know the way to link a table, and a pivot table using Slicers to filter information and it be reflected in both tables. Anybody knows how I can do it? Thank you in advance. Create a Slicer for the PivotTable, and one for the Table. Make sure the PT Slicer is visible, and the Table Slicer is hidden somewhere where users can't see it. Then put this code in the Sheet Module corresponding to the worksheet where your PT is: Option Explicit Private Sub

excel enable Multi-select on slicer by default

你离开我真会死。 提交于 2019-12-01 12:08:36
I have slicers in my workbook that I need multi-select enabled by default. I have not been able to find any way to control this with VBA. I even tried SendKeys but it doesnt seem to be working. Here is the current Not working Sendkeys code. ActiveSheet.Shapes.Range(Array("WMS")).Select SendKeys "%S", True ActiveSheet.Shapes.Range(Array("Equipment")).Select SendKeys "%S", True ActiveSheet.Shapes.Range(Array("Warehousing Skills")).Select SendKeys "%S", True ActiveSheet.Shapes.Range(Array("OCF Skills")).Select SendKeys "%S", True This is selecting the slicers as intended but the sendkeys are not

excel enable Multi-select on slicer by default

末鹿安然 提交于 2019-12-01 11:52:39
问题 I have slicers in my workbook that I need multi-select enabled by default. I have not been able to find any way to control this with VBA. I even tried SendKeys but it doesnt seem to be working. Here is the current Not working Sendkeys code. ActiveSheet.Shapes.Range(Array("WMS")).Select SendKeys "%S", True ActiveSheet.Shapes.Range(Array("Equipment")).Select SendKeys "%S", True ActiveSheet.Shapes.Range(Array("Warehousing Skills")).Select SendKeys "%S", True ActiveSheet.Shapes.Range(Array("OCF

How to update slicer cache with VBA

元气小坏坏 提交于 2019-11-28 02:27:58
I'm using Excel VBA to hide/show elements on slicer depending upon user selection. I have the following code : Private Sub removeFilterWithSlicer() Dim slicerCache As slicerCache Set slicerCache = ThisWorkbook.SlicerCaches("Slicer_Channel1") slicerCache.SlicerItems("A").Selected = False slicerCache.SlicerItems("B").Selected = False slicerCache.SlicerItems("C").Selected = False slicerCache.SlicerItems("D").Selected = False slicerCache.SlicerItems("E").Selected = False slicerCache.SlicerItems("F").Selected = False End Sub where A, B etc. are names of elements in slicer. I've cross checked the

VBA to connect slicers (looking for improvements to code)

北城余情 提交于 2019-11-28 02:10:37
I finally found a code that will connect slicers with different caches on pivot table update. Basically when the value of slicer1 changes, it will change slicer2 to match slicer1 thus updating any pivot table connected to the second slicer. I've added .Application.ScreenUpdating and .Application.EnableEvents in an attempt to speed up the macro but it's still laggy and causes Excel to become unresponsive. Is there a more direct way of coding this or are there any potentially volatile lines in here causing Excel to fry it's brain? Private Sub Worksheet_PivotTableUpdate _ (ByVal Target As