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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

Reply
dominik_thoe
Frequent Visitor

Filter table

Hello,

I have to table visuals based on the same table (Account).

 

Structure first visual

Account, Classification, Segment, Parent Account

 

Structure second visual

Parent Account, Account, Classification, Segment

 

I want to filter the second visual by the Parent Account that I select in the first visual to see all accounts that are linked to the Parent Account including their assigned Classification/Segment. The standard function filters the second visual with all objects, not only the Parent Account. 

Any idea how I can solve this?

 

thanks

Dominik

1 ACCEPTED SOLUTION
v-easonf-msft
Community Support
Community Support

Hi, @dominik_thoe 

I create a sample pbix file,please check it for  more details.

In order to avoid cross filtering of fields in a table, you need to copy the table to create another independent  table visual.

Then create a visual control measure and  drag it to table visual filter pane to filter data.

Visual control = 
VAR flag =
    IF (
        SELECTEDVALUE ( 'Table copy'[Parent Account] )
            = SELECTEDVALUE ( 'Table1'[Parent Account] ),
        1,
        0
    )
RETURN
    IF ( ISFILTERED ( Table1[Parent Account] ), flag, 1 )

21.png

 

The result will show as below:

23.png

 

Best Regards,
Community Support Team _ Eason

 

View solution in original post

4 REPLIES 4
v-easonf-msft
Community Support
Community Support

Hi, @dominik_thoe 

I create a sample pbix file,please check it for  more details.

In order to avoid cross filtering of fields in a table, you need to copy the table to create another independent  table visual.

Then create a visual control measure and  drag it to table visual filter pane to filter data.

Visual control = 
VAR flag =
    IF (
        SELECTEDVALUE ( 'Table copy'[Parent Account] )
            = SELECTEDVALUE ( 'Table1'[Parent Account] ),
        1,
        0
    )
RETURN
    IF ( ISFILTERED ( Table1[Parent Account] ), flag, 1 )

21.png

 

The result will show as below:

23.png

 

Best Regards,
Community Support Team _ Eason

 

Hello @v-easonf-msft 

thanks for your help!!

PaulDBrown
Community Champion
Community Champion

@dominik_thoe 

Can you please show a depiction of the model you have, and how the tables are related?

Can you please also read this important post?
How to get your question answered quickly 
thanks





Did I answer your question? Mark my post as a solution!
In doing so, you are also helping me. Thank you!

Proud to be a Super User!
Paul on Linkedin.






Hi Paul.

I use only one table: Account. Data from connected tables is not used in the visual.

I want to filter the second table by the parent account only and not by classification, segment and frequency to display all accounts with parent account 1004969 (see grren box).

Hope this helps.

table_filter2.png

 

thanks

 

Helpful resources

Announcements
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel1

Power BI Monthly Update - May 2024

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