HOW TO GET BALANCE WITH TWO QUERIES MATCHING FIELDS

Shafique

Board Regular
Joined
Nov 23, 2018
Messages
119
HELLO EVERYONE

here i am creating a balance query
i have a query named [GRADINGPRDQRY] where i get some a total in GRQTY
and another query [BUNDLEQRY] where i use some items using query [GRADINGPRDQRY]'s ID
here i want to create a query that show all the records form [GRADINGPRDQRY] with every ID's [GRQTY] BALANCE
 

Attachments

  • balanceqry.jpg
    balanceqry.jpg
    46.5 KB · Views: 27

Excel Facts

Do you hate GETPIVOTDATA?
Prevent GETPIVOTDATA. Select inside a PivotTable. In the Analyze tab of the ribbon, open the dropown next to Options and turn it off
If the qtys are linked, can't you just sum the value from the other table?
You would need to qualify which ID you are talking about in = [ID]
 
Upvote 0
well
i am learning a lot of things via this platform. this is same like helping peoples who are effected with a flood disaster.
so guide me the way how to get balance of GRADINGPRDQRY's GRQTY According its ID
please send me the right expression to get Balance
 
Upvote 0
this is same like helping peoples who are effected with a flood disaster.
Probably could just use Sum(GRQTY) - Sum(QTY) with matching ID against GRID

I generally have to actually use the QBE to get my synatx correct, then perhaps amend to suit.

Break it down into small steps. Get one sum, then the other, then subtract. Small steps, one at a time.
 
Upvote 0

Forum statistics

Threads
1,224,946
Messages
6,181,939
Members
453,074
Latest member
JefersonKollet

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