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
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
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