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

Next up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. Register now

Reply
Shaundekok
New Member

Filter 2nd Table (Visual) based on 1st Table (Visual)

Hi,

 

I have been stuck on the following problem for a few days.

 

I have 2 tables on a page, the data comes from the same imported DB Table (Sheet1):

 

Table 1

Table 1Table 1

Table 2

Table 2Table 2

I need to be able filter table2 based on a selection from table 1. It should return the the rows where that Date and Location are the same, i.e. if you select the row with name 3 from Table 1, it should return the rows with Name 1 & Name 3.

 

I have tried to create a measure to filter this:

FilterTest = CALCULATE(COUNTROWS(Sheet1),ALL(Sheet1[Full Name]), All(Sheet1[Status]))
It does return the correct number of record, but when you click the record in Table 1, it only displays the same record in table 2.
 
Any ideas?
 
Many Thank
Shaun

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @Shaundekok ,

 

Based on your description, you can create a measure as follows.

Measure = 

var x1=SELECTEDVALUE('Table1'[Date])

var X2=SELECTEDVALUE(Table1[Location])

return

IF(MAX('Table2'[Date])=x1&&MAX('Table2'[Location])=X2,1,0)
Result:
022601.gif
 

Hope that's what you were looking for.

Best Regards,

Yuna

 

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

1 REPLY 1
Anonymous
Not applicable

Hi @Shaundekok ,

 

Based on your description, you can create a measure as follows.

Measure = 

var x1=SELECTEDVALUE('Table1'[Date])

var X2=SELECTEDVALUE(Table1[Location])

return

IF(MAX('Table2'[Date])=x1&&MAX('Table2'[Location])=X2,1,0)
Result:
022601.gif
 

Hope that's what you were looking for.

Best Regards,

Yuna

 

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

Helpful resources

Announcements
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.