The ultimate Microsoft Fabric, Power BI, Azure AI, and SQL learning event: Join us in Stockholm, September 24-27, 2024.
Save €200 with code MSCUST on top of early bird pricing!
Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started
Hi ,
I have a dataset like below
DEPTNO | DNAME | LOC |
10 | ACCOUNTING | NEW YORK |
20 | RESEARCH | DALLAS |
30 | SALES | CHICAGO |
40 | OPERATIONS | BOSTON |
Now in powerBI i am using 'chicklet slicer' visual so that it will display selected department name in KPI visual.
For this i have created a measure:
DepartmentNames = IF(ISFILTERED(dept[DNAME]),CONCATENATE("selected departments are ",VALUES(dept[DNAME])),"No department selected")
here is the screen shot.
Help required is : If i select multiple values it is displaying error.Here is the screenshot.
Could you please help me how to resolve this issue.
Regards
Ravichandra JL
Solved! Go to Solution.
I wrote from memory, expression is missing
DepartmentNames = IF ( ISFILTERED ( dept[DNAME] ), "selected departments are " & CONCATENATEX ( VALUES ( dept[DNAME] ), dept[DNAME], ", " ), "No department selected" )
try this
DepartmentNames = IF(ISFILTERED(dept[DNAME]),"selected departments are " & CONCATENATEX(VALUES(dept[DNAME]),", "),"No department selected")
Hi Stachu,
Thanks for the quick response ,However suggested solution is not working.
Here are screenshots.
Case 1: If no departments selected.
Case 2: if one department selected.
Case 3 : if multiple departments selected
Request you to help here.
Regards
Ravichandra JL
Hi Stachu,
Thanks for the quick response,However suggested solution is not working.
Regards
Ravichandra JL
I wrote from memory, expression is missing
DepartmentNames = IF ( ISFILTERED ( dept[DNAME] ), "selected departments are " & CONCATENATEX ( VALUES ( dept[DNAME] ), dept[DNAME], ", " ), "No department selected" )
Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.
Check out the August 2024 Power BI update to learn about new features.
User | Count |
---|---|
114 | |
79 | |
76 | |
46 | |
39 |
User | Count |
---|---|
143 | |
115 | |
64 | |
64 | |
53 |