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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
bottos
Frequent Visitor

How to filter a visual based on non-selected field from another visual

I have only one data source table (Duplicates) for my report. I used a visual (table) that uses the field UserName from the Duplicates table source. Additionally, I have another visual (table) that shows the fields InvoiceID, Amount and PrimaryKey from the Duplicates table source as well.

 

What I want to accomplish is when I click on the UserName row from the first visual, I want the second visual to show only the rows with the PrimaryKeys associated to the UserName. In other words, I want to filter the second visual based on a non-selected field of the first visual.

 

It sounds simple, but I am struggling a lot. Any help is greatly appreciated. Thanks.

 

 

3 REPLIES 3
muhammad_786_1
Super User
Super User

Hy @bottos,

 

This is a default feature in Power BI. Ensure the interaction between visuals is set up correctly. If this does not address your query, please share some sample data along with your desired output. This will help us provide a more accurate solution.

 

muhammad_786_1_0-1737997161964.png

muhammad_786_1_1-1737997213957.png

Best Regards,
Muhammad Yousaf

 

If this post helps, then please consider "Accept it as the solution" to help the other members find it more quickly.

 

LinkedIn

 

Hi @muhammad_786_1 

 

Thank you for your reply.

 

This is an example of a dataset:

 

UserNameInvoiceIDAmountPrimaryKey
John12341001234100
John1234A1001234100
Beth1234E1001234100
Beth4567B2004567200
Jack78903007890300
Jack7890C3007890300

 

My first visual table looks like this:

 

UserName
John
Beth
Jack

 

What I need to do is when I click over 'John', for example, instead of filtering the data by UserName, I need it to be filtered by PrimaryKey, or, the PrimaryKeys that are associated with 'John'.

 

The expected result would be something like this:

 

UserNameInvoiceIDPrimaryKey
John12341234100
John1234A1234100
Beth1234E1234100

 

Does it make more sense now?

Hy @bottos 

 

Your data structure is not correct. The PrimaryKey column seems to represent unique invoice groups, but multiple UserNames are associated with the same PrimaryKey

 

Instead of relying on PrimaryKey for filtering, you should normalize your data properly. A separate table linking PrimaryKey to UserName would make filtering logical and efficient.

 

Best Regards,
Muhammad Yousaf

 

If this post helps, then please consider "Accept it as the solution" to help the other members find it more quickly.

 

LinkedIn

Helpful resources

Announcements
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!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

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