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
wpf_
Post Prodigy
Post Prodigy

How do you filter one column from one table = to another column from another table using slicers?

I am trying to recreate a query from sql using the slicers.  I am simplifying here but basically the query is:

"Select column1, column2 etc....

from table1, table2

and table1_object = table2_code

 

There are others but I need to get over this hurdle first.  Not sure if I need to join the tables first or can this be done without joinging or merging.  Hope someone can help.  Thx

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@wpf_ , Create a join in data model, then you can simply drag column in visual

 

Drag in table visual with option don't summarize for all columns

 

DAX vs SQL: https://www.youtube.com/watch?v=WlvQ_SGy4iA&list=PLPaNVDMhUXGZNyKU0PgG2g3P0c6CPjMnj

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

View solution in original post

3 REPLIES 3
wpf_
Post Prodigy
Post Prodigy

@amitchandak 

 

Can I join it in dax using calculatetable or something similar instead of doing it in power query?  I would like to keep the tables the way it is because I have other queries.  

 

Also how can I accomplish this query in power bi?

 

"Select column1, column2 etc....

from table1, table2

and table1_object = table2_code

....

....

and table1_evtcode not in (select nvl(table3_prvcode,'000000') from table3 where table3_prvvalue = 'OUT OF SERVICE')

 

 

Do i need to join all 3 tables to accomplish this?

Anonymous
Not applicable

Hi @wpf_ ,

You can refer the following links to get it.

Get a field value from a related table in Power BI: DAX RELATED Function Explained

yingyinr_1-1649157782192.png

Sum of Sales for Red products = 
SUMX(
    FILTER(
        FactInternetSales,
        RELATED(DimProduct[Color])="Red"
    ),
    FactInternetSales[SalesAmount]
)

How to find values from another table

If the above ones can't help you, please provide some sample data in table1, table2 & table3(exclude sensitive data) and your expected result with backend logic and special examples. It is better if you can share a simplified pbix file. Thank you.

How to upload PBI in Community

Best Regards

amitchandak
Super User
Super User

@wpf_ , Create a join in data model, then you can simply drag column in visual

 

Drag in table visual with option don't summarize for all columns

 

DAX vs SQL: https://www.youtube.com/watch?v=WlvQ_SGy4iA&list=PLPaNVDMhUXGZNyKU0PgG2g3P0c6CPjMnj

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

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.

Top Solution Authors