Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Get certified in Microsoft Fabric—for free! For a limited time, get a free DP-600 exam voucher to use by the end of 2024. Register now

Reply
WinYit
Frequent Visitor

how to filter

hi, I have a question due to the filtering.

WinYit_0-1672238995083.png

This my report look like.

I need to filter it by using the "support type" slicer.

The "support type" is come from "incident"query table while others come from "msfp_surveyresponses"

WinYit_1-1672239146698.png

whenever i choose those options, my report remain same as either filter or not .

Please tell me how to solve it.

3 ACCEPTED SOLUTIONS
MahyarTF
Memorable Member
Memorable Member

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.

MahyarTF_0-1672286937930.png

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.

Mahyartf

View solution in original post

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.

View solution in original post

Anonymous
Not applicable

Hi @WinYit ,

Please try below steps:

1.below is test table

Table1:

vbinbinyumsft_1-1672734580503.png

Table2:

vbinbinyumsft_0-1672734567540.png

Model:

vbinbinyumsft_2-1672734607209.png

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

vbinbinyumsft_3-1672734723282.png

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.

View solution in original post

6 REPLIES 6
Anonymous
Not applicable

Hi @WinYit ,

Because you does not provide the sample data, I create a data for test according to your descriptions.

Please try below steps:

1. below is my test table

Table1:

vbinbinyumsft_1-1672640460578.png

Table2:

vbinbinyumsft_2-1672640474429.png

Model:

 

vbinbinyumsft_0-1672640443358.png

2. create a measure with below dax formula

Measure =
VAR _str =
    CONCATENATEX ( Table1, [Product] )
VAR cur_product =
    SELECTEDVALUE ( Table2[Product] )
RETURN
    IF (
        ISFILTERED ( Table1[Product] ),
        IF ( CONTAINSSTRING ( _str, cur_product ), 1 ),
        1
    )

3. add a slicer with Table1 field, add a table visual with Table2 fields, add above measure to table visual filter

vbinbinyumsft_3-1672640630504.png

 

Animation2.gif

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. 

Anonymous
Not applicable

Hi @WinYit ,

Please try below steps:

1.below is test table

Table1:

vbinbinyumsft_1-1672734580503.png

Table2:

vbinbinyumsft_0-1672734567540.png

Model:

vbinbinyumsft_2-1672734607209.png

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

vbinbinyumsft_3-1672734723282.png

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.

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. 🙂

MahyarTF
Memorable Member
Memorable Member

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.

MahyarTF_0-1672286937930.png

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.

Mahyartf

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.

Helpful resources

Announcements
November Carousel

Fabric Community Update - November 2024

Find out what's new and trending in the Fabric Community.

Live Sessions with Fabric DB

Be one of the first to start using Fabric Databases

Starting December 3, join live sessions with database experts and the Fabric product team to learn just how easy it is to get started.

Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early Bird pricing ends December 9th.

Nov PBI Update Carousel

Power BI Monthly Update - November 2024

Check out the November 2024 Power BI update to learn about new features.