Forum Discussion
How to get selected value from a Hierarchy Slicer
Create index column in your table for Employees.
then use the below dax to get desired output.
Selected Value =
VAR MAXIndex = CALCULATE(MAX(Sampl[Index]),ALLSELECTED(Sampl))
RETURN
IF(MAX(Sampl[Index]) = MAXIndex, MAX(Sampl[Emp]))
Do accept the solution if it fulfills your need.
Thanks,
Mohan V.
Anonymous Thanks for the response.
I created the index column and added the measure. but it gives the wrong name. Could you please let me know the index should be on Employee ID? its not giving right answer.
Also, the hierarchy slicer has Manager Name and Manager's Manager name as Level2 and Level1.
- Anonymous4 years agoNot applicable
- LP2803884 years ago
Resolver II
Anonymous Thanks for the detailed response.
In the below, it should show selected value as abc4, abc5, abc2, abc3In the below it should show, abc2 as selected value
- Anonymous4 years agoNot applicable
LP280388 it would be better that you provide detailed information about what you are looking for.
The ask you mentioned in question can be solvable by the given solution.
Provide more details regarding the above image output that you are looking for.