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

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

Reply
Anonymous
Not applicable

How to filter with 2 columns

Hi All,

I have 2 tables.

1. Employee-Trainings

2. Events

I have keys for employees and events in the first table, and the same in the second table.

When I filter Employee according to EMP_ID in the first table, I am getting all records for that employee in the second table, which is great.

Now, I want to filter again according to EVENT_ID.

How should I achieve this?

 

For example:

Employee training will look like this:

EMP_IDData1Data2EMP_EVENT_ID
1aaavvv1070
2aaavvv990
3aaavvv12
1aaavvv2502
4aaavvv56
5aaavvv48
5aaavvv203

 

Events will look like this

EMP_IDData1Data2EVENT_ID
1bbbnnn1070
2bbbnnn990
3bbbnnn12
1bbbnnn2502
4bbbnnn56
5bbbnnn48
5bbbnnn203

 

If I slice/filter by employee ID = 1 I will see the following:

EMP_IDData1Data2EMP_EVENT_ID
1aaavvv1070
1aaavvv

2502

AND

EMP_IDData1Data2EVENT_ID
1bbbnnn1070
1bbbnnn2502

 

I want to press the records and filter again by event ID.

So the result will be (The bold record is clicked):

EMP_IDData1Data2EMP_EVENT_ID
1aaavvv1070
1aaavvv

2502

 

EMP_IDData1Data2EVENT_ID
1bbbnnn2502

By the way, I tried to create a second relationship and got the folloiwng message:
2019-04-12 10_18_04-papercut - Remote Desktop Connection.png

Thanks!

1 ACCEPTED SOLUTION
v-danhe-msft
Microsoft Employee
Microsoft Employee

Hi @Anonymous ,

Based on my test, you could refer to below relationships:

Create a table with [EVENT_ID] column:

Table = VALUES(Events[EVENT_ID])

Create two relationships between 'Table'[EVENT_ID] with other tables[EVENT_ID]:

1.PNG

Result:

2.PNG

You could also download the pbix file to have a view.

 

Regards,

Daniel He

Community Support Team _ Daniel He
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

4 REPLIES 4
v-danhe-msft
Microsoft Employee
Microsoft Employee

Hi @Anonymous ,

Based on my test, you could refer to below relationships:

Create a table with [EVENT_ID] column:

Table = VALUES(Events[EVENT_ID])

Create two relationships between 'Table'[EVENT_ID] with other tables[EVENT_ID]:

1.PNG

Result:

2.PNG

You could also download the pbix file to have a view.

 

Regards,

Daniel He

Community Support Team _ Daniel He
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Anonymous
Not applicable

@v-danhe-msft 
Amazing!
Works like charm.

Thanks a lot Cat Happy

Anonymous
Not applicable

I will try to rephrase.

I am filtering both tables by employee ID.

Then I want to press one record in the employee table and get the coresponding records in the second table of events. Is that possible?

 

Thanks!

Anonymous
Not applicable

This video demonstrates the final result I am after:
https://www.youtube.com/watch?v=VomATEQFBoo

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.