A slicer or dropdown to return values where the selected value is found within

Mllam

New Member
Joined
Feb 16, 2022
Messages
9
Office Version
  1. 365
Platform
  1. Windows
Hi Everyone,

I have been doing my research and have brought a table close to where it needs to be in power query.

The last thing I need to know is if the following is possible. I am struggling to find a solution to this:

1702604180685.png


Assumption: These distributor names need to remain concatenated.

Question 1: Is there a way to select 'Name1' in a slicer or dropdown and return only results on the right that contains 'Name1'? I tried looking into LAMBDA but just couldn't get it right.

Question 2: If yes to question 1, would the solution also work for a pivot table?

I appreciate your attention on this.

Thank you,

M
 

Excel Facts

How to find 2nd largest value in a column?
MAX finds the largest value. =LARGE(A:A,2) will find the second largest. =SMALL(A:A,3) will find the third smallest
Hi Mllam,

I have done something similar using "helper" column(s). This is an additional column that you use with the drop down / slider.

You just need to work out the logic.

Example:
Move the table down a row and add a column. For this example we will call it NewCol which is in column B and the cell in the new row we added above the table is B1.

In cell B1 put
=Cell Where Drop Down Is Located


In the NewCol put
=SEARCH($B$1, TableName[@Distributor])

This will search for the Distributor Column Cell for that row and look for the value of B1.

You can then use the slicer from here to get results that include your specific distributor.

Further Information on Helper Columns
 
Upvote 0

Forum statistics

Threads
1,223,627
Messages
6,173,417
Members
452,514
Latest member
cjkelly15

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