Check your eligibility for this 50% exam voucher offer and join us for free live learning sessions to get prepared for Exam DP-700.
Get StartedDon't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.
Sorry. I am posting this again because I did not get the solution from my last post which I started asking from last Friday.
I have my latest PBIX file here.
What I am trying to do is, when ALL Locations are selected, I would like all three visuals show up, but current DAX would
not do it or I am not sure if there is any way to make it work with PowerBI.
I have three individual DAX for each of threes (ALI, ARB & AVI).
Examples (for ALI and ARB, skipping for AVI):
How do I make it work to have all three visuals would show the characters when user selects ALL three locations?
Thanks.
Solved! Go to Solution.
Hi, @JustinDoh1
Thanks for reaching out to the Microsoft fabric community forum.
The issue you are currently facing is primarily due to the ISFILTERED() function always returning true, even when the location column filter is not clicked. Therefore, we can resolve this issue by using a new table as a slicer:
1.Firstly, you need to create a new calculated table to be used as a slicer, and ensure that this new table has no relationships with other tables:
Z-Table = VALUES('tblScore'[Location])
2.Secondly, create the following measures and replace the card visual objects accordingly:
ALI1 =
IF (
ISFILTERED ( 'Z-Table'[Location] ),
IF (
CONTAINSSTRING ( CONCATENATEX ( 'Z-Table', 'Z-Table'[Location], "," ), "ALI" ),
"ALI",
""
),
""
)
ARB1 =
IF (
ISFILTERED ( 'Z-Table'[Location] ),
IF (
CONTAINSSTRING ( CONCATENATEX ( 'Z-Table', 'Z-Table'[Location], "," ), "ARB" ),
"ARB",
""
),
""
)
AVI1 =
IF (
ISFILTERED ( 'Z-Table'[Location] ),
IF (
CONTAINSSTRING ( CONCATENATEX ( 'Z-Table', 'Z-Table'[Location], "," ), "AVI" ),
"AVI",
""
),
""
)
3.Next, create the following measures to be used as filters for the table visual objects:
FILTER =
IF (
ISFILTERED ( 'Z-Table'[Location] ),
IF ( MAX ( 'tblScore'[Location] ) IN VALUES ( 'Z-Table'[Location] ), 1, 0 ),
0
)
4.Here's my final result, which I hope meets your requirements.
Please find the attached pbix relevant to the case.
Best Regards,
Leroy Lu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi, @JustinDoh1
Thanks for reaching out to the Microsoft fabric community forum.
The issue you are currently facing is primarily due to the ISFILTERED() function always returning true, even when the location column filter is not clicked. Therefore, we can resolve this issue by using a new table as a slicer:
1.Firstly, you need to create a new calculated table to be used as a slicer, and ensure that this new table has no relationships with other tables:
Z-Table = VALUES('tblScore'[Location])
2.Secondly, create the following measures and replace the card visual objects accordingly:
ALI1 =
IF (
ISFILTERED ( 'Z-Table'[Location] ),
IF (
CONTAINSSTRING ( CONCATENATEX ( 'Z-Table', 'Z-Table'[Location], "," ), "ALI" ),
"ALI",
""
),
""
)
ARB1 =
IF (
ISFILTERED ( 'Z-Table'[Location] ),
IF (
CONTAINSSTRING ( CONCATENATEX ( 'Z-Table', 'Z-Table'[Location], "," ), "ARB" ),
"ARB",
""
),
""
)
AVI1 =
IF (
ISFILTERED ( 'Z-Table'[Location] ),
IF (
CONTAINSSTRING ( CONCATENATEX ( 'Z-Table', 'Z-Table'[Location], "," ), "AVI" ),
"AVI",
""
),
""
)
3.Next, create the following measures to be used as filters for the table visual objects:
FILTER =
IF (
ISFILTERED ( 'Z-Table'[Location] ),
IF ( MAX ( 'tblScore'[Location] ) IN VALUES ( 'Z-Table'[Location] ), 1, 0 ),
0
)
4.Here's my final result, which I hope meets your requirements.
Please find the attached pbix relevant to the case.
Best Regards,
Leroy Lu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Sorry, I have one more requirement now:
Bottom is a new post that I just posted:
@v-linyulu-msft I think this should work. I will try and let you know if there is any issue (from my manager). Thanks!
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Prices go up Feb. 11th.
Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.
User | Count |
---|---|
21 | |
15 | |
15 | |
11 | |
7 |
User | Count |
---|---|
25 | |
24 | |
12 | |
12 | |
11 |