Forum Discussion
Filtered Drop Down in sclicer
- Anonymous1 year ago
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 TeamIf this post helps then please mark it as a solution, so that other members find it more quickly.
Thank you.
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/1447523
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 |
| SH | UH | LM | Department |
| Vishal Sharma | Suresh Pal | Rahul Gupta | IT Application Services |
| Vishal Sharma | Suresh Pal | Rahul Gupta | IT Application Services |
| Vishal Sharma | Sur Mukherjee | Sam Bhar | Civil & Steel Structures |
| Vishal Sharma | Sur Mukherjee | Sam Bhar | Civil & Steel Structures |
| Jitu Pan | Anup Dal | Anil Kumar | SPBSP Plantserv |
| Jitu Pan | Dipak Bhatia | Nikhil Seth | Process & 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