Interactive dashboard - selecting slicers

Copper Contributor

Hello!  I am building an interactive dashboard in Excel.  I would like for users to be able to see information either by Neighbourhood or by Subregion.  If they choose Neighbourhood, a list of neighbourhoods, based on the Neighbourhood slicer, will be available to them.  If they choose Subregion, a list of subregions, based on the Subregion slicer, will be available to them.  But I need these two slicers to be independent of one another; if one is selected, the other cannot be used.  Can I use a form control to have users indicate their selection - either Neighbourhood or Subregion - and then highlight the appropriate slicer and hide the other one?

4 Replies

@SSim047 

Hi SSim, Without more detain the most I can suggest is to have the information that is displayed be part of an =IF equation. In each cell, if the control selects "neighborhood", (the cell will show 1 or 2, in the case of a form control) then the neighborhood information displays, etc. If the information is placed on a hidden tab or cells, then you can update the information without having to change the formulas.

Ex. If the form control is tied to A1 (on sheet1 or 'sheet 1' if there is a space) and the neighborhood info is on sheet2 starting with a1, and the subregion info is on sheet3 starting with a1, then say, in a2 of sheet 1,  =if(a1=1,sheet2!a1,if(a1=2,sheet3!a1,"").

Depending on what is chosen, the reference will display. Do a formula for every cell on sheet 1 that will have information. 

 

@SSim047 

Excel has to know somehow which names are for Neighbourhood and which are for Subregions. If in your table one column with only one of these two values for each record, and another one with names, you may add two slicers. On first column and on second one accordingly. Thus selecting Neighbourhood or Subregion by first slicer you have proper names in second one.

@SqueakySneakers Thank you for your suggestions.  I solved this problem by creating a table with one column and two rows: Neighbourhood and Subregion.  I then created a Pivot table and "Geography" slicer based on this table.  I then wrote code to show or hide the slicers with the lists of Neighbourhoods or Subregions, depending on which was selected in the Geography slicer.  Rather than using a form control, I linked the code to the cell that captured the selection in the Geography slicer and programmed it to run every time the cell changed.

@Sergei Baklan Thank you for your suggestions.  I solved this problem by creating a table with one column and two rows: Neighbourhood and Subregion.  I then created a Pivot table and "Geography" slicer based on this table.  I then wrote code to show or hide the slicers with the lists of Neighbourhoods or Subregions, depending on which was selected in the Geography slicer.  Rather than using a form control, I linked the code to the cell that captured the selection in the Geography slicer and programmed it to run every time the cell changed.