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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Anonymous
Not applicable

Filter a visual table using selected row in another visual table

Hi All,
Need a help on achieving the following scenario. I need this to find sutable replacement for the employee who has applied leaves. I want to show two tables in power bi and want to filter the table 2 using table 1. both table are visual tables. 

if i click row of Jack in the table 1, table 2 should be omit the record of Jack as he cannot replace himself and it should show only Managers based on Jack's Job (to find similar available job role). both tables are join using emp id.

 

table 1 - leave table

Table 1.PNG

table 2 - employee table
Table 2.PNG

1 ACCEPTED SOLUTION

@Anonymous Please try the below steps, might be helpful.

 

Create a new calculated column in Emp Table as below

LeaveFlag = IF(ISBLANK(LOOKUPVALUE(Test302EmpLeave[EmpID],Test302EmpLeave[EmpID],Test302Emp[EmpID])),"N","Y")

Emp TableEmp Table     EmpLeave TableEmpLeave TableRelationshipRelationship

Emp Table visualEmp Table visualimage.pngimage.pngimage.png

 

I've tested by adding another clerk in the emp table

 

image.png

 

 





Did I answer your question? Mark my post as a solution!

Proud to be a PBI Community Champion




View solution in original post

7 REPLIES 7
v-chuncz-msft
Community Support
Community Support

@Anonymous ,

 

You may refer to the post below.

https://community.powerbi.com/t5/Desktop/Tricky-Slicer-Options/m-p/573381#M270846

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

Thanks for the reply @v-chuncz-msft ,

 

in my case what i am expecting is, when select a row in table 1, the table 2 should filter based on the values in selected row.

 for example i am looking for something like below.

Table = SUMMARIZE('Table2,FILTER('Table2','Table2'[Emp Name]=X))
i need to pass the selected row's Emp Name value to X, so that based on my selection the new table should be change.


Anonymous
Not applicable

Any other have face similar issue or scenario ?

@Anonymous Please try the below steps, might be helpful.

 

Create a new calculated column in Emp Table as below

LeaveFlag = IF(ISBLANK(LOOKUPVALUE(Test302EmpLeave[EmpID],Test302EmpLeave[EmpID],Test302Emp[EmpID])),"N","Y")

Emp TableEmp Table     EmpLeave TableEmpLeave TableRelationshipRelationship

Emp Table visualEmp Table visualimage.pngimage.pngimage.png

 

I've tested by adding another clerk in the emp table

 

image.png

 

 





Did I answer your question? Mark my post as a solution!

Proud to be a PBI Community Champion




Anonymous
Not applicable

Hi @PattemManohar 

 

thanks for the support. Appriciate if you can shrare the pbix file.

@Anonymous Attached !!





Did I answer your question? Mark my post as a solution!

Proud to be a PBI Community Champion




Anonymous
Not applicable

Thanks @PattemManohar 

your solution is working and found another solution using search and selectedvalue function in a meassure. 

thanks all for the support. 

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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