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!Vote for your favorite vizzies from the Power BI Dataviz World Championship submissions. Vote now!
Area. = Var _Selected=CONCATENATEX(ALLSELECTED('Exported Data-RGA'[Area]),'Exported Data-RGA'[Area]) Return Switch (_Selected,"W","Warehouse","S","Sales","MNRSTW","Total Returns","WS","IMS Caused")Only when i am selecting WS its not working
Solved! Go to Solution.
Hi @GAURAV7781
I build a sample table and tried your measure, I found when you select WS/SW your measure _Selected will output "SW".
So in your return when output ="WS", the result is blank.
I update your measure:
Area. =
VAR _Selected =
ALLSELECTED ( 'Exported Data-RGA'[Area] )
VAR _CON =
CONCATENATEX ( _Selected, 'Exported Data-RGA'[Area] )
VAR _Output =
IF ( _CON = "SW", "WS", _CON )
RETURN
IF (
ISFILTERED ( 'Exported Data-RGA'[Area] ),
SWITCH (
_Output,
"W", "Warehouse",
"S", "Sales",
"MNRSTW", "Total Returns",
"WS", "IMS Caused"
),
BLANK ()
)Result is as below.
Select "WS"
You can download the pbix file from this link: How to show slicers
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.
Hi @GAURAV7781
I build a sample table and tried your measure, I found when you select WS/SW your measure _Selected will output "SW".
So in your return when output ="WS", the result is blank.
I update your measure:
Area. =
VAR _Selected =
ALLSELECTED ( 'Exported Data-RGA'[Area] )
VAR _CON =
CONCATENATEX ( _Selected, 'Exported Data-RGA'[Area] )
VAR _Output =
IF ( _CON = "SW", "WS", _CON )
RETURN
IF (
ISFILTERED ( 'Exported Data-RGA'[Area] ),
SWITCH (
_Output,
"W", "Warehouse",
"S", "Sales",
"MNRSTW", "Total Returns",
"WS", "IMS Caused"
),
BLANK ()
)Result is as below.
Select "WS"
You can download the pbix file from this link: How to show slicers
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.
Not tested. Try like this
CONCATENATEX(ALLSELECTED('Exported Data-RGA'[Area]),Switch('Exported Data-RGA'[Area] ,"W","Warehouse","S","Sales","MNRSTW","Total Returns","WS","IMS Caused") )
CONCATENATEX(('Exported Data-RGA'[Area]),Switch('Exported Data-RGA'[Area] ,"W","Warehouse","S","Sales","MNRSTW","Total Returns","WS","IMS Caused") )
Vote for your favorite vizzies from the Power BI World Championship submissions!
If you love stickers, then you will definitely want to check out our Community Sticker Challenge!
Check out the January 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 63 | |
| 51 | |
| 41 | |
| 23 | |
| 18 |
| User | Count |
|---|---|
| 135 | |
| 110 | |
| 50 | |
| 31 | |
| 29 |