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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
mizaskun
Helper II
Helper II

Filtering two unconnected tables

Good morning,

 

I have the following shcema in the DB:

mizaskun_0-1630579443006.png

 

Many controls could have many risks and many risks could have many controls. I cannot connect both risk and control tables any other way, and I need add a filter through which the information in the report gets filtered. That is why I tried to create the Area master to use it as the filter input. However, the area master - controls relation gets disabled. 

 

Is there any way I could achieve this? Getting the info that comes from both tables filtered at the same time.

 

Thank you so much!! 

1 ACCEPTED SOLUTION

Ok, first of all delete the relationships between the tables and the RisksControls table. Now join the Area table to both tables in a 1:N relationship single direction with the corresponding fields in the tables. (I have also created a dimension table for year)

 

The relevant model should look like this:

model.JPGNest create a slicer with the field from Area table, create visuals with the fields of both the fact tables and you should get this:

filter2.gif

 

I've attached the smple PBIX file





Did I answer your question? Mark my post as a solution!
In doing so, you are also helping me. Thank you!

Proud to be a Super User!
Paul on Linkedin.






View solution in original post

8 REPLIES 8
PaulDBrown
Community Champion
Community Champion

you should be able to use the Risks Controls table to filter both tables if the values correlate (ie they are not a simple list of values unrelated to each other. 

Can you show a depiction  of the actual tables in the model view?

Also please show a depiction of the expected outcome and provide sample data or a PBIX file 

 





Did I answer your question? Mark my post as a solution!
In doing so, you are also helping me. Thank you!

Proud to be a Super User!
Paul on Linkedin.






Good morning,

 

The input would be:

mizaskun_0-1630581711507.png

 

The outcome should be the following tables with no filter applied:

mizaskun_1-1630582001065.pngmizaskun_2-1630582010408.png

 

If the filter Area = A, the outcome should be:

mizaskun_3-1630582221307.pngmizaskun_4-1630582262113.png

 

The filter would be in a dropdown list that depends on the Area table.

 

Thank you so much @PaulDBrown !

 

Ok, first of all delete the relationships between the tables and the RisksControls table. Now join the Area table to both tables in a 1:N relationship single direction with the corresponding fields in the tables. (I have also created a dimension table for year)

 

The relevant model should look like this:

model.JPGNest create a slicer with the field from Area table, create visuals with the fields of both the fact tables and you should get this:

filter2.gif

 

I've attached the smple PBIX file





Did I answer your question? Mark my post as a solution!
In doing so, you are also helping me. Thank you!

Proud to be a Super User!
Paul on Linkedin.






ziyabikram96
Helper V
Helper V

Thank you so much! I guess I am not getting it though. As I understand, TREATAS function is used to calculate a measure, right? I need just a way to filter the data. Is it possible? 

 

Thank you so much! 

TREATAS won't work beacuse both tables must contain the same field





Did I answer your question? Mark my post as a solution!
In doing so, you are also helping me. Thank you!

Proud to be a Super User!
Paul on Linkedin.






ziyabikram96
Helper V
Helper V

use userrelationship function or a treat function

How could I use that? I am not calculating any measure. I just want to filter that info. Any suggestion? 

 

Thank you @ziyabikram96 !!! 

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

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!

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.

Top Solution Authors