power pivot : vba script on slicer to hide certain values/ to restrict slicer to show only certain values.

bitechie

New Member
Joined
Jul 22, 2014
Messages
3
Hi,
Can someone help in vba coding to assign to slicer in power pivot report.I have a slicer with blank values coming. i have to hide those blank values. My Model is SSAS tabular model . Since the tabular model wont support outer join these blank values are coming in the slicer.
ie, i have a column called "fact.measures " in fact table and have two dimension tables called dim.measures1 and dim.measures2( measures2 is a subset of measures1) . The measures2.measures column have only 4 members : budget,cost, revenue, margin where as measures1.measures have more values in addition to above 4 members.
Iam joining two dimensions to the fact table. Since measures2.measures have only 4 members in the column and fact have more members iam getting blank values in the measures2.measures . Since i cannot have any other logic in the model only option is to hide those blank values in the slicer created on the measures2.measures.
can someone help me with a vba code to hide this blank value. "Hide items with no values " in the slicer property will not work since these blank sell have values in the fact table.
A vba script that restrict the slicer to show only certain values will also be enough . :)

IAM USING 2013 EXCEL
Hope you got an idea of the issue

looking forward for suggestions and tips
thank you
 

Excel Facts

Copy PDF to Excel
Select data in PDF. Paste to Microsoft Word. Copy from Word and paste to Excel.

Forum statistics

Threads
1,223,240
Messages
6,170,951
Members
452,368
Latest member
jayp2104

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