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.
I am trying to show value(s) when I select more than one value.
I have upload my PBIX file here.
I have this DAX that states that "if "ALI" is selected from tblScore[Location], it displays "ALI", otherwise none.
But, when I select more than one value, nothing would shows up.
How do I modify the exisitng DAX to accomplish that?
Also, I have created three separate DAX for each spot, but is there a way to combine into one DAX expression by chance?
Thanks.
Solved! Go to Solution.
Hi @JustinDoh1 Try this:
ALI Cover =
IF(
NOT ISFILTERED(tblScore[Location]),
"",
IF(CONTAINSSTRING(CONCATENATEX(tblScore, tblScore[Location], ","), "ALI"), "ALI", "")
)
Output:
Hope this helps!!
If this solved your problem, please accept it as a solution and a kudos!!
Best Regards,
Shahariar Hafiz
@shafiz_p Hi Shafiz, Thank you so much for your help.
You DAX is almost working, but I am wondering, is there way for all of three signs show up when
user selects "Select all".
I have uploaded the updated PBIX with three measures (Covers) updated.
Thank you!
Hi @JustinDoh1 ,
My observation is that you do not need to repeat the three boses, and can use ConcatenateX to achieve your required output.
Cover =
IF(
ISFILTERED(tblScore[Location]),
CONCATENATEX(
VALUES(tblScore[Location]),
tblScore[Location],
", "
),
BLANK()
)
I have attached a pbix file for your reference.
Best regards,
@DataNinja777 Thank you so much for your feedback.
I guess due to the spacing issue and alignment to the each parameter, I would need to create separate covers for each.
At this moment, I am trying to find a way for all three signs would show up when users select "Select all".
Please find my latest & updated file here that has three separate measures included. Thank you!
Hi @JustinDoh1 Try this:
ALI Cover =
IF(
NOT ISFILTERED(tblScore[Location]),
"",
IF(CONTAINSSTRING(CONCATENATEX(tblScore, tblScore[Location], ","), "ALI"), "ALI", "")
)
Output:
Hope this helps!!
If this solved your problem, please accept it as a solution and a kudos!!
Best Regards,
Shahariar Hafiz
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 |
---|---|
26 | |
10 | |
10 | |
9 | |
6 |