DAX filter on two tables

dicken

Active Member
Joined
Feb 12, 2022
Messages
292
Office Version
  1. 365
Platform
  1. Windows
Hi,
I'd like t filter by two tables, very simply I have :



Green and 10+ :=CALCULATE([Total Units],
Color[Color]= "green",
Units[Units] > 10 )
This returns what I thought it would.



So the color from one table is green and the units from the other > 10 , Question 1, what is the 'long syntax' for this, I don't like using the short as
I don't think it's great at getting me to understand how it works, but I've tried various FILTER ( ALL( combinations, and even using two filters but can't get it right.
The second question is that the total for 'green and > 10 " is repeated for the other colors in the table which I'd prefer to to happen.

Richard.
 

Excel Facts

Return population for a City
If you have a list of cities in A2:A100, use Data, Geography. Then =A2.Population and copy down.
Hi,
I'd like t filter by two tables, very simply I have :



Green and 10+ :=CALCULATE([Total Units],
Color[Color]= "green",
Units[Units] > 10 )
This returns what I thought it would.



So the color from one table is green and the units from the other > 10 , Question 1, what is the 'long syntax' for this, I don't like using the short as
I don't think it's great at getting me to understand how it works, but I've tried various FILTER ( ALL( combinations, and even using two filters but can't get it right.
The second question is that the total for 'green and > 10 " is repeated for the other colors in the table which I'd prefer to to happen.

Richard.
z
 
Upvote 0
If you would like to post the solution then it is perfectly fine to mark your post as the solution to help future readers. Otherwise, please do not mark a post that doesn't contain a solution.
 
Upvote 0
Cross-posting (posting the same question in more than one forum) is not against our rules, but the method of doing so is covered by #13 of the Forum Rules.

Be sure to follow & read the link at the end of the rule too!

Cross posted at: DAX full syntax for filter
If you have posted the question at more places, please provide links to those as well.

If you do cross-post in the future and also provide links, then there shouldn’t be a problem.
 
Upvote 0

Forum statistics

Threads
1,224,746
Messages
6,180,705
Members
452,994
Latest member
Janick

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top