cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
dcervelli
New Member

Searching 3 fields.

I have a table with 3 fields:  Installer 1, Installer 2, Installer 3.

There are 20 installers that can be assigned.  Most often they are only one installer assigned.  Sometimes, they need more than one.

 

So Joe might be installer 1 on one record but installer 2 in another record, installer 3 on another.

I need a slicer to search on all the Installers for Joe.   I need to know where Joe is assigned now no matter which Installer he is.

I created a new field to concatenate all the Installers and then do a search but it's not very elegant.  Looking for a better solution.

Thanks

1 ACCEPTED SOLUTION
OwenAuger
Super User
Super User

Hi @dcervelli 

I would recommend that you create a table which unpivots the Installer names into a single column, along with a column containing the identifer of the original record (I'm assuming a Job ID of some sort). You can also include a "Role" column. Something like this: 

 

Job ID Name Role
Job01 Joe

Installer 1

Job01 Hannibal Installer 2
Job01 Harry Installer 3
Job02 Joe Installer 1
Job03 Mason Installer 1
Job04 Frederick Installer 1
Job04 Joe Installer 2

 

This table is then related to the original table on the Job ID column, either directly or via an intermediate table containing unique Job IDs (if necessary), The relationship with the above table would need to be bidirectional.

 

Then you can search/filter on the single Name column.

 

Regards,

Owen


Owen Auger

Did I answer your question? Mark my post as a solution!

My Blog
Connect on Twitter
Connect on LinkedIn

View solution in original post

3 REPLIES 3
dcervelli
New Member

Yes.  That worked perfectly.   Thanks.

Glad to hear it 🙂

For yourself or anyone who is interested, attached is a small example of how I would do the unpivoting (Power Query recommended).


Owen Auger

Did I answer your question? Mark my post as a solution!

My Blog
Connect on Twitter
Connect on LinkedIn
OwenAuger
Super User
Super User

Hi @dcervelli 

I would recommend that you create a table which unpivots the Installer names into a single column, along with a column containing the identifer of the original record (I'm assuming a Job ID of some sort). You can also include a "Role" column. Something like this: 

 

Job ID Name Role
Job01 Joe

Installer 1

Job01 Hannibal Installer 2
Job01 Harry Installer 3
Job02 Joe Installer 1
Job03 Mason Installer 1
Job04 Frederick Installer 1
Job04 Joe Installer 2

 

This table is then related to the original table on the Job ID column, either directly or via an intermediate table containing unique Job IDs (if necessary), The relationship with the above table would need to be bidirectional.

 

Then you can search/filter on the single Name column.

 

Regards,

Owen


Owen Auger

Did I answer your question? Mark my post as a solution!

My Blog
Connect on Twitter
Connect on LinkedIn

Helpful resources

Announcements
Microsoft Build 768x460.png

Microsoft Build is May 24-26. Have you registered yet?

Come together to explore latest innovations in code and application development—and gain insights from experts from around the world.

May 23 2022 epsiode 5 without aka link.jpg

The Power BI Community Show

Welcome to the Power BI Community Show! Jeroen ter Heerdt talks about the importance of Data Modeling.

Power BI Dev Camp Session 22 with aka link 768x460.jpg

Check it out!

Mark your calendars and join us on Thursday, May 26 at 11a PDT for a great session with Ted Pattison!

charticulator_carousel_with_text (1).png

Charticulator Design Challenge

Put your data visualization and design skills to the test! This exciting challenge is happening now through May 31st!