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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
Anonymous
Not applicable

How do I apply filters differently to two different tables?

ok, I can't find a "Post a question" button so here goes. Sorry in advance.

 

I have one table with distinct contract #s and a date that is filtered based on a date slicer.  I have a second table with the same underlying dataset that I want to filter on a broader set of dates but limit to the contract #s in that first table.

 

So far, both tables are applying the slicer dates since it was the same fieldname (I imagine).  For a little more clarification, table A is limited to roughly a 2-month period.  I want table B to limit to a full year (which includes the original 2 months but only for the contracts that met the filters from table A.)

1 REPLY 1
amitchandak
Super User
Super User

@Anonymous , In such case you should not use a common date table. Filter should come from date of tables or from separate date tables

 

To pass the contracts you can try like

 

Calculate([Measure of tbale2], filter(Table2, Table2[Contract] in values(Table1[Contract]) ) )

 

You can also consider treatas

https://www.sqlbi.com/articles/propagate-filters-using-treatas-in-dax/

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
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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

Top Solution Authors