Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
Hello
I created a multiple choice segment.
I am looking to define by a measure that they are the elements to select in the segment.
I created the following measurement that only works if the choice is single but not multiple.
Do you have a solution ?
Kind regards.
Solved! Go to Solution.
Use ISFILTERED to check if there's a selection in the slicer
Select_Bat =
VAR _Selected = VALUES('Table'[Bat ID])
RETURN
IF(
ISFILTERED('Table'[Bat ID]), CONCATENATEX(_Selected, 'Table'[Bat ID], ", "),
"No value selected"
)
Regards
Phil
Proud to be a Super User!
Hi @Bob639 ,
Based on your description, I created these data.
Create the measure.
Select_Bat =
VAR _Selected = VALUES('Table'[Bat ID])
RETURN
IF(
COUNTROWS(_Selected) = 0,
"No value selected",
CONCATENATEX(
_Selected,
'Table'[Bat ID],
", "
)
)
The final result is shown below. More details can be found in the attachment.
If your Current Period does not refer to this, please clarify in a follow-up reply.
Best Regards,
Clara Gong
If there is any post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hello @Anonymous ,
Thank you for this info.
However, it works except for a choice of zero segments via the "Select all" command, it displays them all.
Kind regards.
Use ISFILTERED to check if there's a selection in the slicer
Select_Bat =
VAR _Selected = VALUES('Table'[Bat ID])
RETURN
IF(
ISFILTERED('Table'[Bat ID]), CONCATENATEX(_Selected, 'Table'[Bat ID], ", "),
"No value selected"
)
Regards
Phil
Proud to be a Super User!
hi @Bob639 ,
Try like:
Select_Bat =
VAR _Selected = VALUES('Bat'[Bat])
RETURN
IF(
ISBLANK(_Selected);
"No value selected";
CONCATENATEX(
Selected;
Bat[bat];
", "
)
)
Hi @Bob639
I think you need to use "Values" instead of "selectedvalue".
If this post helps, then I would appreciate a thumbs up and mark it as the solution to help the other members find it more quickly.
Check out the July 2025 Power BI update to learn about new features.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
User | Count |
---|---|
18 | |
7 | |
6 | |
5 | |
5 |
User | Count |
---|---|
23 | |
10 | |
10 | |
9 | |
7 |