Limiting the Selection of a Slicer Value to ONLY One Selection?

CSMcVey

New Member
Joined
Oct 30, 2012
Messages
21
I have a PP workbook loaded into SP and it has a slicer for 'state'. For security purposes we would like to limit the data displayed in the table to only show data for one state at a time.

Is there a way to limit the slicer to have only one value selected at a time?

If not, does anybody know of a method where I can accomplish the same objective? Meaning a user would have to select only one value in the slicer, if they selected multiple the data wouldn't show any data or, at the very least, just one state.
 

Excel Facts

Can you AutoAverage in Excel?
There is a drop-down next to the AutoSum symbol. Open the drop-down to choose AVERAGE, COUNT, MAX, or MIN
You can accomplish this by wrapping every measure displayed in your pivot with a HASONEVALUE() test on the state slicer column.

New Measure:=IF(HASONEVALUE(TableName[State]), [Original Measure], BLANK())

This must be done for every measure in the pivot. Then they will be blank if more than one value is selected in the state slicer.
 
Upvote 0
Thank you MD - just read up on this function and it will do exactly what we need. However, we are still using the old PowerPivot version (2008) and this function was an enhancement in a more recent build. Getting our environment up to speed is out of my control as I have tried before.

Any ideas on how to accomplish the same thing as HASONEVALUE like suggested above?

THANKS again for the assistance
 
Upvote 0
You can substitute COUNTROWS(VALUES(TableName[State]))=1 for HASONEVALUE(). It will do the same thing.

New Measure:=IF(COUNTROWS(VALUES(TableName[State]))=1, [Original Measure], BLANK())
 
Upvote 0

Forum statistics

Threads
1,223,952
Messages
6,175,589
Members
452,653
Latest member
craigje92

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