Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
6 years ago
Solved

FILTER TABLE

Hi, 

I'm new to POWER BI. Perhaps my problem is very easy to solve. 

I am trying to create a report in which the end user can select the names of the staff members and then return the name of others staff member who have the same "traits" of the members that were selected.

 

I'm attaching the table

NameDeparmentAssigned BuildingAssigned ShiftLocker AreaAssigned Color
EmmaMarketingBlomexAA2Blue
OliviaMarketingCarbenBA2Blue
AvaCostingBlomexDA2Pink
IsabellaCostingCarbenCA1Blue
SophiaHRBlomexAB1Blue
CharlotteHRCarbenBB1Pink
MiaMarketingAntryCB1Blue
AmeliaHRPlormBA1Red
HarperHRBlomexAB2Green
EvelynMarketingBlomexCB1Pink
AbigailProductionBlomexCB1Red
EmilyProductionBlomexCB2Pink
ElizabethMarketingPlormDA1Red
MilaCostingBlomexDA2Pink
EllaMarketingPlormDA1Green
AveryHRPlormAA1Red
SofiaMarketingCarbenCB2Red
CamilaHRAntryCA1Red
AriaHRBlomexAA1Red
ScarlettHRCarbenCA2Blue
VictoriaCostingPlormCB2Red
MadisonMarketingBlomexBA2Pink
LunaProductionAntryAA2Blue

 

Given the names: Emma, Charlotte, Emily. 

I want to create a table visualization like this for Department, building, shift, lockers, color. (The tables can be separate from one another).

NameDeparment
SophiaHR
CharlotteHR
AmeliaHR
HarperHR
AveryHR
CamilaHR
AriaHR
ScarlettHR
EmmaMarketing
OliviaMarketing
MiaMarketing
EvelynMarketing
ElizabethMarketing
EllaMarketing
SofiaMarketing
MadisonMarketing
AbigailProduction
EmilyProduction
LunaProduction

 

Can anyone help?

The main idea is to choose different names of the staff and then return the names of the staff member who share the same traits.

 

I've already tried a filter by name, but it only applies to the ones I selected. I also tried the Chiclets Slicer, but it doesn's have the capability to filter according to the multiple values that were selected.

 

I'll appreciate the help.

 

  • parry2k's avatar
    parry2k
    6 years ago

    Anonymous see attached and hope that is what you are looking for, you can further enhance/change it as per your need.

     

    Look at Department and Name tables in attached, ignore other stuff.

     

    I would  Kudos if my solution helped. 👉 If you can spend time posting the question, you can also make efforts to give Kudos whoever helped to solve your problem. It is a token of appreciation!

4 Replies

  • mahoneypat's avatar
    mahoneypat
    Microsoft Employee

    You should be able to make your target table by just making a table visual with your desired fields (in this case, person and department), and make slicers for the desired fields.  In your example of the seeing people in the same department, just click on the department header to sort by those values to group them together.

     

    This would get you the example table you provided, but it does not give the description you gave (click on person to see other people with same), so not sure what you really need.  Do you want multiple tables/report pages, one for each field? Or something fancier?

     

    If this works for you, please mark it as solution.  Kudos are appreciated too.  Please let me know if not.

    Regards,

    Pat

    • Anonymous's avatar
      Anonymous
      Not applicable

      Hi Pat, 

       

      It is indeed something fancier. I need to be able to choose multiple values (people's names) and then return the names of the people grouped by deparment, color, locker, etc.

       

      For instance, if I choose Sophia and Charlotte. 

      NameDeparmentAssigned BuildingAssigned ShiftLocker AreaAssigned Color
      SophiaHRBlomexAB1Blue
      CharlotteHRCarbenBB1Pink

       

      I would need to return the names of the people who have the following assigned to

      1. Deparment "HR": all of the names of the people who work at HR

      2. People whose assigned building is "Blomex" & "Carben"

      3. And so on for the rest of the fields.

       

      I don't know if this makes it clear.

       

      JL

       

       

      • parry2k's avatar
        parry2k
        Super User

        Anonymous see attached and hope that is what you are looking for, you can further enhance/change it as per your need.

         

        Look at Department and Name tables in attached, ignore other stuff.

         

        I would  Kudos if my solution helped. 👉 If you can spend time posting the question, you can also make efforts to give Kudos whoever helped to solve your problem. It is a token of appreciation!