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!Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
With the following DAX I can show a label if one value is selected.
Solved! Go to Solution.
Hi,
Please try this code:
Workername =
SWITCH(TRUE();
ISFILTERED('Name'[Name]) = FALSE() && DISTINCTCOUNT('Name'[Name]) > 1; "All";
ISFILTERED('Name'[Name]) = TRUE() && DISTINCTCOUNT('Name'[Name]) > 1; "Multiple accountmanagers selected";
"Accountmanager" & " " & VALUES('Name'[Name]))
@RemiAnthonise wrote:Nice one, thanks a lot!
Workername =
SWITCH(TRUE();
(ISFILTERED('Name'[Name]) = FALSE() && DISTINCTCOUNT('Name'[Name]) > 1) || (ISFILTERED('Name'[Name]) = TRUE() && DISTINCTCOUNT('Name'[Name]) = CALCULATE(DISTINCTCOUNT('Name'[Name]);ALL('Name'[Name]))); "All";
ISFILTERED('Name'[Name]) = TRUE() && DISTINCTCOUNT('Name'[Name]) > 1; "Multiple accountmanagers selected";
"Accountmanager" & " " & VALUES('Name'[Name]))I noticed that the DAX formula is actually wrong. bcus if you select all values through a slicer it would have ended up with multiple selected. I've added the bold part which solves that problem.
Hi,
Please try this code:
Workername =
SWITCH(TRUE();
ISFILTERED('Name'[Name]) = FALSE() && DISTINCTCOUNT('Name'[Name]) > 1; "All";
ISFILTERED('Name'[Name]) = TRUE() && DISTINCTCOUNT('Name'[Name]) > 1; "Multiple accountmanagers selected";
"Accountmanager" & " " & VALUES('Name'[Name]))
Nice one, thanks a lot!
@RemiAnthonise wrote:Nice one, thanks a lot!
Workername =
SWITCH(TRUE();
(ISFILTERED('Name'[Name]) = FALSE() && DISTINCTCOUNT('Name'[Name]) > 1) || (ISFILTERED('Name'[Name]) = TRUE() && DISTINCTCOUNT('Name'[Name]) = CALCULATE(DISTINCTCOUNT('Name'[Name]);ALL('Name'[Name]))); "All";
ISFILTERED('Name'[Name]) = TRUE() && DISTINCTCOUNT('Name'[Name]) > 1; "Multiple accountmanagers selected";
"Accountmanager" & " " & VALUES('Name'[Name]))I noticed that the DAX formula is actually wrong. bcus if you select all values through a slicer it would have ended up with multiple selected. I've added the bold part which solves that problem.
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
| User | Count |
|---|---|
| 101 | |
| 76 | |
| 56 | |
| 51 | |
| 46 |