Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
Hi guys, i'm using live connection and have a question about a filter.
Example in slicer i have A B C D and i want the A always be check even if i select B, is this possible?
Solved! Go to Solution.
Hi, @Anonymous
Based on your description, I created data to reproduce your scenario. The pbix file is attached in the end.
Table:
Slicer:
There is no relationship between two tables. You may create a measure as below.
Visual Control =
IF(
ISFILTERED(Slicer[Name]),
SWITCH(
SELECTEDVALUE('Table'[Name]),
"A",1,
"B",
IF(
"B" in DISTINCT(Slicer[Name]),
1,0
),
"C",
IF(
"C" in DISTINCT(Slicer[Name]),
1,0
),
"D",
IF(
"D" in DISTINCT(Slicer[Name]),
1,0
)
),
IF(
SELECTEDVALUE('Table'[Name])="A",
1,0
)
)
Then you need to put the measure in the visual level filter and use 'Name' from 'Slicer' table to filter the result.
Best Regards
Allan
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi, @Anonymous
Based on your description, I created data to reproduce your scenario. The pbix file is attached in the end.
Table:
Slicer:
There is no relationship between two tables. You may create a measure as below.
Visual Control =
IF(
ISFILTERED(Slicer[Name]),
SWITCH(
SELECTEDVALUE('Table'[Name]),
"A",1,
"B",
IF(
"B" in DISTINCT(Slicer[Name]),
1,0
),
"C",
IF(
"C" in DISTINCT(Slicer[Name]),
1,0
),
"D",
IF(
"D" in DISTINCT(Slicer[Name]),
1,0
)
),
IF(
SELECTEDVALUE('Table'[Name])="A",
1,0
)
)
Then you need to put the measure in the visual level filter and use 'Name' from 'Slicer' table to filter the result.
Best Regards
Allan
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
@Anonymous , Not very clear. In case A is dependent on b ,c and D then you can disable the interaction for A .
https://docs.microsoft.com/en-us/power-bi/create-reports/service-reports-visual-interactions
Hi yes they have dependencies A and the rest , i want A alwasy display in my visual whenever if a add B or C
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
102 | |
101 | |
78 | |
70 | |
63 |
User | Count |
---|---|
140 | |
106 | |
100 | |
83 | |
73 |