Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.
I have three cards, each showing a different total (for the number of clients who have received different services). The cards correspond to the categories in a slicer, and the slicer has to be multi-select. My client wants to the cards to show a 0 if the slicer value is not selected and the corresponding total if the value is selected.
I had a version of this that worked, but only because I set the slicer to single-select. When I change the slicer to multi-select and select more than 1 option, the cards all show 0.
Here's an example for one of the three cards that works with a single-select slicer but not with the multi-select slicer that I need.
Is it possible to achieve what my client wants?
Solved! Go to Solution.
Hi @Anonymous ,
According to your statement, I think your issue should be caused by "All" in SELECTEDVALUE().
The logic of SELECTEDVALUE('aec_surveys Participants'[service_type], "All") is when you selected multiple values or not select value it will return "All".
Here I suggest you to try code as below to achieve your goal.
demo_total_training_consulting =
VAR _service_type_selector =
VALUES ( 'aec_surveysParticipants'[service_type] )
RETURN
IF(
ISFILTERED('aec_surveys Participants'[service_type]),
IF(
"Training & Consulting" in _service_type_selector,
[service_total_training_consulting]),0),
0
)
Best Regards,
Rico Zhou
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Thanks for your help, @Anonymous ! I was re-using some code without really thinking through what it meant.
I was successful using a portion of your suggestion:
Hi @Anonymous ,
According to your statement, I think your issue should be caused by "All" in SELECTEDVALUE().
The logic of SELECTEDVALUE('aec_surveys Participants'[service_type], "All") is when you selected multiple values or not select value it will return "All".
Here I suggest you to try code as below to achieve your goal.
demo_total_training_consulting =
VAR _service_type_selector =
VALUES ( 'aec_surveysParticipants'[service_type] )
RETURN
IF(
ISFILTERED('aec_surveys Participants'[service_type]),
IF(
"Training & Consulting" in _service_type_selector,
[service_total_training_consulting]),0),
0
)
Best Regards,
Rico Zhou
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!
Check out the September 2025 Power BI update to learn about new features.