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
Hi all,
I have a situation and I'm assuming it is not possible with straight forward functionalities of PBI.
Please help me in solving this.
I have a data source, something like below.
And there are two table Visuals and a slicer present on the canvas. like below. Table 1 is filtered to show only A,B,C,D using filters on this visual. Similarly, Table2 for E,F,G,H.
Now, the question is when I select any slicer value: for example A & B are selected the table B goes blank like below.
Is there any way to control the interation where when A, B are selected it should not impact Table2. and vice versa, E, F are selected it should not show Table1 as blank.
Thanks in Advance.
Solved! Go to Solution.
Hi @mysasai ,
Please try below steps:
1. below is my test table
Table:
Table2:
create with below dax formula:
Table 2 = VALUES('Table'[Name])
3. create measure with below dax formula
Measure2 =
VAR _str =
IF ( ISFILTERED ( 'Table 2'[Name] ), CONCATENATEX ( 'Table 2', [Name],, "" ) )
VAR tmp = {
"A",
"B",
"C",
"D",
"ABCD",
"ABD",
"ABC",
"ACD",
"BCD",
"AB",
"AC",
"AD",
"BD",
"BC",
"CD"
}
VAR _name =
SELECTEDVALUE ( 'Table'[Name] )
RETURN
SWITCH (
TRUE (),
_str IN tmp, IF ( CONTAINSSTRING ( _str, _name ), 1 ),
NOT ( _str IN tmp ), 1
)
Measure3 =
VAR _str =
IF ( ISFILTERED ( 'Table 2'[Name] ), CONCATENATEX ( 'Table 2', [Name],, "" ) )
VAR tmp = {
"E",
"F",
"G",
"H",
"EFGH",
"EFG",
"EFH",
"EGH",
"FGH",
"EF",
"EG",
"EH",
"FG",
"FH",
"GH"
}
VAR _name =
SELECTEDVALUE ( 'Table'[Name] )
RETURN
SWITCH (
TRUE (),
_str IN tmp, IF ( CONTAINSSTRING ( _str, _name ), 1 ),
NOT ( _str IN tmp ), 1
)
3. add two table visual with Table fields and add above measure to both visual filter pane, add aslicer visual with Table2 field, cancel the interaction between two table visual
Please refer the attached .pbix file.
Best regards,
Community Support Team_Binbin Yu
If this post helps, then please consider Accept it as the solution to help the other members find it
more quickly.
Hi @mysasai ,
Please try below steps:
1. below is my test table
Table:
Table2:
create with below dax formula:
Table 2 = VALUES('Table'[Name])
3. create measure with below dax formula
Measure2 =
VAR _str =
IF ( ISFILTERED ( 'Table 2'[Name] ), CONCATENATEX ( 'Table 2', [Name],, "" ) )
VAR tmp = {
"A",
"B",
"C",
"D",
"ABCD",
"ABD",
"ABC",
"ACD",
"BCD",
"AB",
"AC",
"AD",
"BD",
"BC",
"CD"
}
VAR _name =
SELECTEDVALUE ( 'Table'[Name] )
RETURN
SWITCH (
TRUE (),
_str IN tmp, IF ( CONTAINSSTRING ( _str, _name ), 1 ),
NOT ( _str IN tmp ), 1
)
Measure3 =
VAR _str =
IF ( ISFILTERED ( 'Table 2'[Name] ), CONCATENATEX ( 'Table 2', [Name],, "" ) )
VAR tmp = {
"E",
"F",
"G",
"H",
"EFGH",
"EFG",
"EFH",
"EGH",
"FGH",
"EF",
"EG",
"EH",
"FG",
"FH",
"GH"
}
VAR _name =
SELECTEDVALUE ( 'Table'[Name] )
RETURN
SWITCH (
TRUE (),
_str IN tmp, IF ( CONTAINSSTRING ( _str, _name ), 1 ),
NOT ( _str IN tmp ), 1
)
3. add two table visual with Table fields and add above measure to both visual filter pane, add aslicer visual with Table2 field, cancel the interaction between two table visual
Please refer the attached .pbix file.
Best regards,
Community Support Team_Binbin Yu
If this post helps, then please consider Accept it as the solution to help the other members find it
more quickly.
@Anonymous , thanks for the solution. This works perfectly.
@mysasai , Stop interaction between the visuals
How Interactions Work- Split Page using interactions to compare - https://youtu.be/GIfRKzhMaR4
or use Independent Table
Need of an Independent Table in Power BI - Exclude: https://youtu.be/lOEW-YUrAbE
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 |
---|---|
133 | |
91 | |
88 | |
64 | |
58 |
User | Count |
---|---|
201 | |
137 | |
107 | |
72 | |
68 |