March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early bird discount ends December 31.
Register NowBe one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now
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
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.
Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.
User | Count |
---|---|
23 | |
16 | |
12 | |
9 | |
7 |
User | Count |
---|---|
38 | |
32 | |
29 | |
12 | |
11 |