Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
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?
Solved! Go to Solution.
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,
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,
Hi,
Share a sample dataset and describe your business question.
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.
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
114 | |
99 | |
83 | |
70 | |
60 |
User | Count |
---|---|
150 | |
115 | |
104 | |
89 | |
65 |