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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
H3nning
Helper V
Helper V

Filter Table based on selector in unrelated table

Hi, I have so following problem and I hope someone can assist.

 

I have a Table with two values which I use as a selector.

SWITCH
A
B

 

And I have another table which I want to filter based on the slicer in SWITCH:

 

ID_ifA_ifB
111
201
300

 

So if A is selected my table visual should only show row 1. If B is selected it should show 1 and 2.

 

Thanks in advance!

1 ACCEPTED SOLUTION
H3nning
Helper V
Helper V

Found it myself. I just had to add a measure summing up _ifA and _ifB depending on the Slicer. And then I added the SUm to the filter pane of the visual wit the ID already in it and said SUM >0. 

 

SWITCH(VALUES('Switch'[SWITCH])
    ,"A", SUM(table[_ifA])
    ,"B", SUM(table[_ifB])
    ,SUM(table[_ifA])
)

View solution in original post

2 REPLIES 2
H3nning
Helper V
Helper V

Found it myself. I just had to add a measure summing up _ifA and _ifB depending on the Slicer. And then I added the SUm to the filter pane of the visual wit the ID already in it and said SUM >0. 

 

SWITCH(VALUES('Switch'[SWITCH])
    ,"A", SUM(table[_ifA])
    ,"B", SUM(table[_ifB])
    ,SUM(table[_ifA])
)

Hi @H3nning

 

Glad you have solved it by yourself! You can accept your reply as solution to close this thread. A closed thread will help other people find your solution more quickly. 

 

Best Regards,
Community Support Team _ Jing

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors
Top Kudoed Authors