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

Back into an answer in Excel
Use Data, What-If Analysis, Goal Seek to find the correct input cell value to reach a desired result
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,062
Messages
6,122,925
Members
449,094
Latest member
teemeren

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