Forum Discussion
how to filter
- 3 years ago
Hi,
As I understand properly, you need to filter the reports' visuals based on the slicer.
for this purpose, you need to have an active relationship with the correct direction(Parent to Child) between the tables to filter those.
Unless it is not possible to filter the data based on the others.
Thanks for your Kudos and Please mark it as a solution if it helps you.
- 3 years ago
I had try this method before. However its not one to one relationship. No matter I use "support type" from the incident query to connect any table from "msfp_surveyresponses" query, its always show many to many relationship and not function at all. I also try to merge both queries but also not work.
- Anonymous3 years ago
Hi WinYit ,
Please try below steps:
1.below is test table
Table1:
Table2:
Model:
2. create a measure with below dax formula
Measure = VAR _str = CONCATENATEX ( Table1, [ID] ) VAR cur_id = SELECTEDVALUE ( Table2[ID] ) RETURN IF ( ISFILTERED ( Table1[Product] ), IF ( CONTAINSSTRING ( _str, cur_id ), 1 ) )3.add a slicer with Table1 field, add a table visual with Table2 fields, add above measure to table visual filter
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, thanks for your solution but i dont think it help me. both of my table does not have the same columm.( as your sample, table 1 have "product" and table 2 also have "product" and both "product" have the same data) which at my queries do not have.
So, I gonna to share my file so you may have a look with it.
*the link file had been deleted. sry for inconvience
I will appreciate if you or others help me to solve my problems.
Hi WinYit ,
Please try below steps:
1.below is test table
Table1:
Table2:
Model:
2. create a measure with below dax formula
Measure =
VAR _str =
CONCATENATEX ( Table1, [ID] )
VAR cur_id =
SELECTEDVALUE ( Table2[ID] )
RETURN
IF ( ISFILTERED ( Table1[Product] ), IF ( CONTAINSSTRING ( _str, cur_id ), 1 ) )
3.add a slicer with Table1 field, add a table visual with Table2 fields, add above measure to table visual filter
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.
- WinYit3 years agoFrequent Visitor
Actually, I found out what is the main issue of my problem. Its not regarding to power bi, just having some problem in my data. BTW, thank for your solution. 🙂