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

Next up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. Register now

Reply
gvg
Post Prodigy
Post Prodigy

Using FILTER on two tables

Hi experts,

 

I have a Dates table that is related to Sales table. I also have a slicer for Dates. I need to filter on columns from different tables in my CALCULATE. Something like this (just the FILTER part):

 

FILTER ( ALL ( Date[Date], Sales[Amount] ),
               Sales[Amount]>100
)

However DAX does not allow columns from different tables in ALL. How do I go around this limitation?

1 ACCEPTED SOLUTION
v-sihou-msft
Microsoft Employee
Microsoft Employee

@gvg

 

If you want to filter all dates which the sales is more than 100, you should build a measure for sales amount. Then use this measure as conditon in your FILTER() function.

 

SalesAmount = SUM(Sales[Amount])

 

 

FILTER ( ALL ( Date[Date] ),
               [SalesAmount]>100
)

Regards,

 

View solution in original post

4 REPLIES 4
v-sihou-msft
Microsoft Employee
Microsoft Employee

@gvg

 

If you want to filter all dates which the sales is more than 100, you should build a measure for sales amount. Then use this measure as conditon in your FILTER() function.

 

SalesAmount = SUM(Sales[Amount])

 

 

FILTER ( ALL ( Date[Date] ),
               [SalesAmount]>100
)

Regards,

 

Thanks @v-sihou-msft !

Ashish_Mathur
Super User
Super User

Hi,

 

Share a sample dataset and describe your business question.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

Well, my data set is quite complicated. Due to lack of space won't be able to reproduce it completely here. I am just looking for valid syntax to overide existing slicer filter on date and then filter according to some other condition on another field in another table.

Helpful resources

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

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

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

Users online (6,355)