Forum Discussion
Filtering one table from another table's Selected Value
- Anonymous7 years ago
Here's what I came up with. PBIX file is attached below.
Used Power Query to parse out the #'s from your table 2, since that is what will be searched for based on the user selection from table 1. Too much to list out here and much easier to see step by step in PQ. But the final table:
You were on the right track with the selected value, so stuck with that:
Col 1 Selected Value = SELECTEDVALUE(Table1[Column1],0)
I used that value and searched in our newly created "Just Numbers" column from above:
Contains = SEARCH( [Col 1 Selected Value], MAX(Table2[Just Numbers]),,BLANK() )
I Have a similar problem but can't see how the solutions suggester here would work for me. I have created a .pbix to show the problem.
I have two tables - the first is incoming help desk cases with column for CaseID, Hardware and Language:
| Case ID | Hardware | Language |
| 12345 | Servers | English |
| 12346 | Storage | French |
| 12347 | Servers | Italian |
| 12348 | Tape Drives | German |
| 12349 | Servers | English |
The other table is a table of agents with a list of their language and hardware skills. The Skills entry is a list of skills separated by the pipe symbol. There is no order to the skills field, and no defined length. Agents can have 2 skills or 200 skills and they can be a mix of hardware and languages in any order. Here is my example agents table:
Agents:
| Tom | English|Servers|Storage |
| Jane | Networks|Storage|French |
| Harry | Servers|French|Tape Drives|English |
| Janet | Tape Drives|German|French|English|Storage |
| John | Storage|Italian |
What I want to be able to do is in Power BI have a visual of these two tables, and when the user clicks on one of the cases, e.g. 12345, the agents visual shows only the agents with the skills in their skills list. So in the case of 12345, an English Servers call, it would show only Tom and Harry.
I have got some of the way with the use of SELECTEDVALUE, but I can't see how to restrict the display of agents dependent on the selected value.
Help appreciated!