Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply

Filtered Drop Down in sclicer

I have a table of employee records and its hierarchy 

SHUHLMDepartment
Vishal SharmaSuresh PalRahul GuptaIT Application Services
Vishal SharmaSuresh PalRahul GuptaIT Application Services
Jitu PanSur MukherjeeSam BharCivil & Steel Structures
Jitu PanSur MukherjeeSam BharCivil & Steel Structures
Ast AugAnup DalAnil KumarSPBSP Plantserv
Zack SasDipak BhatiaNikhil SethProcess & Environment Safety


So I have SH,UH and LM in a single column another table .
I'm using sclicer to with drop with all department , but I need some respective values of department based on selection of value from another table column. 

1 ACCEPTED SOLUTION
v-mdharahman
Community Support
Community Support

Hi @chintusasmal123,

Thanks for reaching out to the Microsoft fabric community forum.

From what you've described, you have a table where SH, UH, and LM are stored in separate columns along with the department name, and you are using a slicer based on a separate table where these names are flattened into a single column.

The challenge here is that the slicer (based on the flattened table) doesn’t have a direct relationship to the SH/UH/LM columns individually, so selecting a name from the slicer doesn't filter the department data as expected.

To get this working, you'll need a way to check if the selected name from the slicer matches any of the SH, UH, or LM columns in your main table. This typically involves creating a calculated column or measure that performs the check using DAX. Once try this :

IsSelected =
VAR SelectedName = SELECTEDVALUE(FlattenedTable[Name])
RETURN
IF (
SelectedName IN {
EmployeeTable[SH],
EmployeeTable[UH],
EmployeeTable[LM]
},
1,
0
)

Then, you can use this logic to filter your visuals or build a measure that only shows departments where the selected person appears in any of the hierarchy levels.

 

I would also take a moment to thank @danextian and @ryan_mayu, for actively participating in the community forum and for the solutions you’ve been sharing in the community forum. Your contributions make a real difference.

 

If I misunderstand your needs or you still have problems on it, please feel free to let us know.  

Best Regards,
Hammad.
Community Support Team

 

If this post helps then please mark it as a solution, so that other members find it more quickly.

Thank you.

View solution in original post

7 REPLIES 7
v-mdharahman
Community Support
Community Support

Hi @chintusasmal123,

Thanks for reaching out to the Microsoft fabric community forum.

From what you've described, you have a table where SH, UH, and LM are stored in separate columns along with the department name, and you are using a slicer based on a separate table where these names are flattened into a single column.

The challenge here is that the slicer (based on the flattened table) doesn’t have a direct relationship to the SH/UH/LM columns individually, so selecting a name from the slicer doesn't filter the department data as expected.

To get this working, you'll need a way to check if the selected name from the slicer matches any of the SH, UH, or LM columns in your main table. This typically involves creating a calculated column or measure that performs the check using DAX. Once try this :

IsSelected =
VAR SelectedName = SELECTEDVALUE(FlattenedTable[Name])
RETURN
IF (
SelectedName IN {
EmployeeTable[SH],
EmployeeTable[UH],
EmployeeTable[LM]
},
1,
0
)

Then, you can use this logic to filter your visuals or build a measure that only shows departments where the selected person appears in any of the hierarchy levels.

 

I would also take a moment to thank @danextian and @ryan_mayu, for actively participating in the community forum and for the solutions you’ve been sharing in the community forum. Your contributions make a real difference.

 

If I misunderstand your needs or you still have problems on it, please feel free to let us know.  

Best Regards,
Hammad.
Community Support Team

 

If this post helps then please mark it as a solution, so that other members find it more quickly.

Thank you.

Hi @chintusasmal123,

As we haven’t heard back from you, so just following up to our previous message. I'd like to confirm if you've successfully resolved this issue or if you need further help.

If yes, you are welcome to share your workaround and mark it as a solution so that other users can benefit as well. If you find a reply particularly helpful to you, you can also mark it as a solution.


If you still have any questions or need more support, please feel free to let us know. We are more than happy to continue to help you.
Thank you for your patience and look forward to hearing from you.

Hi @chintusasmal123,

I wanted to check if you had the opportunity to review the information provided. Please feel free to contact us if you have any further questions. If my response has addressed your query, please accept it as a solution so that other community members can find it easily.


Thank you.

Hi @chintusasmal123,

May I ask if you have resolved this issue? If so, please mark the helpful reply and accept it as the solution. This will be helpful for other community members who have similar problems to solve it faster.

 

Thank you.

danextian
Super User
Super User

Hi @chintusasmal123 

 

Please provide a complete sample data and your expected result. Please refer to this post:
https://community.fabric.microsoft.com/t5/Desktop/How-to-Get-Your-Question-Answered-Quickly/m-p/1447...

 





Dane Belarmino | Microsoft MVP | Proud to be a Super User!

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


"Tell me and I’ll forget; show me and I may remember; involve me and I’ll understand."
Need Power BI consultation, get in touch with me on LinkedIn or hire me on UpWork.
Learn with me on YouTube @DAXJutsu or follow my page on Facebook @DAXJutsuPBI.

chintusasmal123_0-1747715596878.png

In Table Dup Emails, Name contains all Name of the SH,UH and Line Manager(LM) and in value column are their email address
DupsEmails table with Name column will look like this

Name
Vishal Sharma
Vishal Sharma
Jitu Pan
Jitu Pan
Ast Aug
Zack Sas
Suresh Pal
Suresh Pal
Sur Mukherjee
Sur Mukherjee
Anup Dal
Dipak Bhatia
Rahul Gupta
Rahul Gupta
Sam Bhar
Sam Bhar
Anil Kumar
Nikhil Seth

 

SHUHLMDepartment
Vishal SharmaSuresh PalRahul GuptaIT Application Services
Vishal SharmaSuresh PalRahul GuptaIT Application Services
Vishal SharmaSur MukherjeeSam BharCivil & Steel Structures
Vishal SharmaSur MukherjeeSam BharCivil & Steel Structures
Jitu PanAnup DalAnil KumarSPBSP Plantserv
Jitu PanDipak BhatiaNikhil SethProcess & Environment Safety

 

I used a slicer for All Name value of DupEmail and another slicer for department from RWDataset,so whenever I select a Name from DupEmails table , so want to only those department to be shown as per their respective SH/UH/LM Name
for ex. Slicer 1 Value : Jitu Pan then Slicer 2 only show SPBSP Plantserv and Process & Environment Safety  as option in dropdown or Slicer 1 value : Nikhil Seth  then Slicer 2 Process & Environment Safety only in option

ryan_mayu
Super User
Super User

@chintusasmal123 

could you pls also provide the data of another table? 

what's the expected output based on the sample data that you provided?





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

Proud to be a Super User!




Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

Find out what's new and trending in the Fabric community.

July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 2025 Power BI update to learn about new features.