Three Level Query (select> union> crosstab) generating unrequested values!

oliviar

Board Regular
Joined
Sep 12, 2010
Messages
184
Hi Guys,
I've tried looking for this, but I am totally stumped!
I have a select query with criteria in it, joining many tables together (generating a value of low, medium, high for my transactions), then I created a union table stacking columns A and B values together.
All is fine in the union table, it generates the values I expect.
Eg
[TABLE="width: 400"]
<tbody>[TR]
[TD]Transaction 1[/TD]
[TD]a[/TD]
[TD]Low[/TD]
[/TR]
[TR]
[TD]Transaction 1[/TD]
[TD]a[/TD]
[TD]Medium[/TD]
[/TR]
[TR]
[TD]Transaction 2[/TD]
[TD]a[/TD]
[TD]High[/TD]
[/TR]
[TR]
[TD]Transaction 3[/TD]
[TD]b[/TD]
[TD]High[/TD]
[/TR]
</tbody>[/TABLE]

etc etc

HOWEVER, in the third query, it generates values that DO NOT EXIST in the union table.

EG

[TABLE="width: 500"]
<tbody>[TR]
[TD][/TD]
[TD]a[/TD]
[TD]b[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]Low[/TD]
[TD]Medium[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]High[/TD]
[TD]LOW (this value doesn't exist!)[/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]LOW (doesn't exist!)[/TD]
[TD]High[/TD]
[/TR]
</tbody>[/TABLE]


Is this a bug, have I done something wrong? I have never seen this before. :-(:-(
 
Last edited:

Excel Facts

Can Excel fill bagel flavors?
You can teach Excel a new custom list. Type the list in cells, File, Options, Advanced, Edit Custom Lists, Import, OK

Forum statistics

Threads
1,223,162
Messages
6,170,432
Members
452,326
Latest member
johnshaji

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