Forum Discussion
Anonymous
3 years agoNot applicable
Multiple selection on Disconnected Slicer
HI, I have a table consisting of staffs' name and their certificate. I've also created a disconnected table. My current slicer will only work properly with on one selection. I want my slicer to have ...
- 3 years ago
Hi Anonymous ,
Please try:
Flag = VAR _a = SELECTCOLUMNS ( 'Disconnected Slicer', "Slicer", [Certificate] ) VAR _b = ADDCOLUMNS ( _a, "Count", SWITCH ( TRUE (), ISBLANK ( MAX ( 'Staff Booking'[Certification] ) ) && [Slicer] = "No Certificate", 1, MAX ( 'Staff Booking'[Certification] ) <> BLANK () && CONTAINSSTRING ( MAX ( 'Staff Booking'[Certification] ), [Slicer] ), 1 ) ) RETURN IF ( SUMX ( _b, [Count] )>=1 || NOT ( ISFILTERED ( 'Disconnected Slicer'[Certificate] ) ), 1, 0 )Output:
Best Regards,
Jianbo Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
v-jianboli-msft
3 years agoCommunity Support
Hi Anonymous ,
Please try:
Flag =
VAR _a =
SELECTCOLUMNS ( 'Disconnected Slicer', "Slicer", [Certificate] )
VAR _b =
ADDCOLUMNS (
_a,
"Count",
SWITCH (
TRUE (),
ISBLANK ( MAX ( 'Staff Booking'[Certification] ) )
&& [Slicer] = "No Certificate", 1,
MAX ( 'Staff Booking'[Certification] ) <> BLANK ()
&& CONTAINSSTRING ( MAX ( 'Staff Booking'[Certification] ), [Slicer] ), 1
)
)
RETURN
IF (
SUMX ( _b, [Count] )>=1
|| NOT ( ISFILTERED ( 'Disconnected Slicer'[Certificate] ) ),
1,
0
)
Output:
Best Regards,
Jianbo Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
- Anonymous3 years agoNot applicable
Thanks alot, appreciate it!