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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

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
July PBI25 Carousel

Power BI Monthly Update - July 2025

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

Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 community update carousel

Fabric Community Update - June 2025

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