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

Join the FabCon + SQLCon recap series. Up next: Power BI, Real-Time Intelligence, IQ and AI, and Data Factory take center stage. All sessions are available on-demand after the live show. Register now

Reply
ArslanManzoor
Frequent Visitor

Filtering table 2 without relationship

Hi,

 

I have 2 tables, where table 1 contains material data, alongside 'Green zone' limits which differ based on column 2 (Results). Assuming I use these query tables as visuals in my dashboard, I would like these limits to be applied as filters on table 2 when the user selects a particular row in table 1.

 

Unfortunately I cannot create a relationship between the 2 tables as there is no column in common (unless I'm missing a trick here).

 

I'd appreciate any ideas, thanks in advance!

 

TABLE 1 (Sample, made-up data)

 

Material 1 ID   

Result   

Green zone lower limit    

Green zone upper limit   

1

2.1

21

23

2

3.2

24

26

3

2.5

20

22

 

TABLE 2 (Sample, made-up data)

 

Material 2 ID   

Result    

A

22

B

24

C

21

D

25

E

27

F

22

G

23

1 ACCEPTED SOLUTION
AntonioM
Solution Sage
Solution Sage

Hi @ArslanManzoor ,

 

One option is to use a measure to filter the second table, comparing the values of results with the selected limits from the first table. 

 

 

Within Limit = IF ( SELECTEDVALUE('Table 2'[Results]) <= SELECTEDVALUE('Table 1'[Green zone upper limit]) && SELECTEDVALUE('Table 2'[Results]) >= SELECTEDVALUE('Table 1'[Green zone lower limit]) , 1, 0)

 

 

 

This will give you

AntonioM_0-1662131393804.png

 

and

AntonioM_1-1662131403992.png

 

Then add a visual filter to only show the 1s

 

AntonioM_2-1662131432396.png

 

And now you have

 

AntonioM_3-1662131453856.png

 

 

Alternatively, you could use Power Query to create a list of allowed values (within the limits)

 

Add a custom column in Table 1

 

{[Green zone lower limit]..[Green zone upper limit]}

 

Which gives you a list of the range, that you could then expand and link to Table 2 on Table 2[Result]

AntonioM_0-1662131648213.png

AntonioM_1-1662131660502.png

 

AntonioM_2-1662131701048.png

 

 

This might be many to many but you can set the filter direction to be single 

AntonioM_0-1662131808467.png

 

Which would give you the same result

AntonioM_1-1662131865050.png

AntonioM_2-1662131881951.png

 

 

 

 

View solution in original post

1 REPLY 1
AntonioM
Solution Sage
Solution Sage

Hi @ArslanManzoor ,

 

One option is to use a measure to filter the second table, comparing the values of results with the selected limits from the first table. 

 

 

Within Limit = IF ( SELECTEDVALUE('Table 2'[Results]) <= SELECTEDVALUE('Table 1'[Green zone upper limit]) && SELECTEDVALUE('Table 2'[Results]) >= SELECTEDVALUE('Table 1'[Green zone lower limit]) , 1, 0)

 

 

 

This will give you

AntonioM_0-1662131393804.png

 

and

AntonioM_1-1662131403992.png

 

Then add a visual filter to only show the 1s

 

AntonioM_2-1662131432396.png

 

And now you have

 

AntonioM_3-1662131453856.png

 

 

Alternatively, you could use Power Query to create a list of allowed values (within the limits)

 

Add a custom column in Table 1

 

{[Green zone lower limit]..[Green zone upper limit]}

 

Which gives you a list of the range, that you could then expand and link to Table 2 on Table 2[Result]

AntonioM_0-1662131648213.png

AntonioM_1-1662131660502.png

 

AntonioM_2-1662131701048.png

 

 

This might be many to many but you can set the filter direction to be single 

AntonioM_0-1662131808467.png

 

Which would give you the same result

AntonioM_1-1662131865050.png

AntonioM_2-1662131881951.png

 

 

 

 

Helpful resources

Announcements
April Power BI Update Carousel

Power BI Monthly Update - April 2026

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

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.

FabCon and SQLCon Highlights Carousel

FabCon &SQLCon Highlights

Experience the highlights from FabCon & SQLCon, available live and on-demand starting April 14th.