Using Variables Without SubQueries

FBandData

Board Regular
Joined
Feb 28, 2013
Messages
60
Is there way to easily call values from another table to use as a variable?

For instance, if I have Business Branch A and want to divide all of the numbers by field value index in another table within a complex query, what would be the best way to do that?

There would be as many 50 variables in the query and each with its own index to divide with.

Table 1
Business Branch: A
Metric1: 500

Calculated Query:
Select Metric1/(Select Metric 1 From Table 1 WHERE Business Branch = "A") as Metric1Index
From BusinessMetrics

Is there a simple way to avoid the sub-queries and get the values into a query to use?
 

Excel Facts

What is the shortcut key for Format Selection?
Ctrl+1 (the number one) will open the Format dialog for whatever is selected.
Where's the other table? What happens when you get to metric 2, or metric 3 (or Branch B, or Branch C)? This doesn't look like enough information to answer the question.
ξ
 
Upvote 0

Forum statistics

Threads
1,215,594
Messages
6,125,723
Members
449,255
Latest member
whatdoido

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