Shanan212
asked on
Adding two tables via expression builder
Hello,
I am using expression builder because I have VBA coding which calls a query. Since my VBA is already complecated, I am trying to do certain things in expression builder.
I have (maximum) of 3 additions to be done. These are based on 2 tables.
I have to get 1 set of values from one table and 2 sets of values from another tables.
The 1st set I mentioned above is based on a 'combination' of City & Province [eg: TorontoOntario] which has associated values
The 2nd set I mentioned above has 2 sets of criteria but both sets are located in 1 table. One for City (which has associated values) another for Province (which has associated values)
Now all these 'associated values' are same (in terms of naming) They are
MIN, MAX, 1M, 2M, 3M...and these are numbers
I want to output the combined sum of MIN on one column by
Geting the relative 'MIN value' from Combo table..lets call this table1
Getting the relative 'MIN value' from City column from table2
Getting the relative 'MIN value' from province column from table 2
Bah I just confused myself :( Anyway back to the matter
So I want to filter out table one using 'TorontoOntario' and take the MIN value, filter out table2 using 'Toronto' and get that 'MIN' value and filter out table2 for 'Ontario' and get that MIN value as well and add it
Then repeat this for other values such as 'MAX, 1M, 2M'
I really need advice on this as I am really confused on how to do it. What is the best way to do it?
Any directions is much appreciated!
Sort of something like this (https://www.experts-exchange.com/questions/21525168/Problem-adding-the-contents-of-two-2-tables-and-creating-a-third-table-with-the-resulting-totals.html?sfQueryTermInfo=1+10+30+ad+express+tabl+two)
but with 3 tables based on 3 diff criterias BUT being done in expression builder. If someone has better advice, please do. I am capable of self learning but any start up is much appreicated!
Regards,
Shanan
I am using expression builder because I have VBA coding which calls a query. Since my VBA is already complecated, I am trying to do certain things in expression builder.
I have (maximum) of 3 additions to be done. These are based on 2 tables.
I have to get 1 set of values from one table and 2 sets of values from another tables.
The 1st set I mentioned above is based on a 'combination' of City & Province [eg: TorontoOntario] which has associated values
The 2nd set I mentioned above has 2 sets of criteria but both sets are located in 1 table. One for City (which has associated values) another for Province (which has associated values)
Now all these 'associated values' are same (in terms of naming) They are
MIN, MAX, 1M, 2M, 3M...and these are numbers
I want to output the combined sum of MIN on one column by
Geting the relative 'MIN value' from Combo table..lets call this table1
Getting the relative 'MIN value' from City column from table2
Getting the relative 'MIN value' from province column from table 2
Bah I just confused myself :( Anyway back to the matter
So I want to filter out table one using 'TorontoOntario' and take the MIN value, filter out table2 using 'Toronto' and get that 'MIN' value and filter out table2 for 'Ontario' and get that MIN value as well and add it
Then repeat this for other values such as 'MAX, 1M, 2M'
I really need advice on this as I am really confused on how to do it. What is the best way to do it?
Any directions is much appreciated!
Sort of something like this (https://www.experts-exchange.com/questions/21525168/Problem-adding-the-contents-of-two-2-tables-and-creating-a-third-table-with-the-resulting-totals.html?sfQueryTermInfo=1+10+30+ad+express+tabl+two)
but with 3 tables based on 3 diff criterias BUT being done in expression builder. If someone has better advice, please do. I am capable of self learning but any start up is much appreicated!
Regards,
Shanan
May be you can upload DB with your tables and show expected result?
Or as a minimum, provide a couple of examples of the data any your desired output.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Closed