A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » Running & Setting Up Queries
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Calculations based on cross tab intersection values



 
 
Thread Tools Display Modes
  #1  
Old February 25th, 2007, 01:06 AM posted to microsoft.public.access.queries
Carlee
external usenet poster
 
Posts: 51
Default Calculations based on cross tab intersection values

Hi there,

I have created a cross tab query that gives me a serious of values based on
a column and row intersection.

Question: I need to make addition calculations based on various calculation
in the crosstab results. for example if the intersection of my Age Row, and
Category Column = 20, i want to be able to identify 20 in a subsequent query
to make an additional calculation. How do i do this?


--
Carlee
  #2  
Old February 25th, 2007, 01:16 AM posted to microsoft.public.access.queries
Duane Hookom
external usenet poster
 
Posts: 7,177
Default Calculations based on cross tab intersection values

You should be able to grab a value by un-pivoting the crosstab. I could
probably explain better if you provided the sql view and the values and
fields you wanted to lookup up.

--
Duane Hookom
Microsoft Access MVP


"Carlee" wrote:

Hi there,

I have created a cross tab query that gives me a serious of values based on
a column and row intersection.

Question: I need to make addition calculations based on various calculation
in the crosstab results. for example if the intersection of my Age Row, and
Category Column = 20, i want to be able to identify 20 in a subsequent query
to make an additional calculation. How do i do this?


--
Carlee

  #3  
Old February 25th, 2007, 05:31 PM posted to microsoft.public.access.queries
Carlee
external usenet poster
 
Posts: 51
Default Calculations based on cross tab intersection values

Hi Duane,
Here is my code:

PARAMETERS [forms]![frmReportMenu]![cboArea] Text ( 255 );
TRANSFORM (NZ(Count(qryReportRiskClassificationSummary.Submi ssionID),0)) AS
CountOfSubmissionID
SELECT qryReportRiskClassificationSummary.AgeAtSampling,
Count(qryReportRiskClassificationSummary.Submissio nID) AS [Total Of
SubmissionID]
FROM qryReportRiskClassificationSummary
GROUP BY qryReportRiskClassificationSummary.AgeAtSampling
PIVOT qryReportRiskClassificationSummary.Classification;




Thank you so much in advance...you may be able to save my butt...!

--
Carlee


"Duane Hookom" wrote:

You should be able to grab a value by un-pivoting the crosstab. I could
probably explain better if you provided the sql view and the values and
fields you wanted to lookup up.

--
Duane Hookom
Microsoft Access MVP


"Carlee" wrote:

Hi there,

I have created a cross tab query that gives me a serious of values based on
a column and row intersection.

Question: I need to make addition calculations based on various calculation
in the crosstab results. for example if the intersection of my Age Row, and
Category Column = 20, i want to be able to identify 20 in a subsequent query
to make an additional calculation. How do i do this?


--
Carlee

  #4  
Old February 25th, 2007, 11:15 PM posted to microsoft.public.access.queries
Duane Hookom
external usenet poster
 
Posts: 7,177
Default Calculations based on cross tab intersection values

You should be able to query on AgeAtSampling and Classification to get the
Total...

PARAMETERS [forms]![frmReportMenu]![cboArea] Text ( 255 );
SELECT AgeAtSampling, Classification,
Count(SubmissionID) AS [Total Of SubmissionID]
FROM qryReportRiskClassificationSummary
GROUP BY AgeAtSampling, Classification

--
Duane Hookom
Microsoft Access MVP


"Carlee" wrote:

Hi Duane,
Here is my code:

PARAMETERS [forms]![frmReportMenu]![cboArea] Text ( 255 );
TRANSFORM (NZ(Count(qryReportRiskClassificationSummary.Submi ssionID),0)) AS
CountOfSubmissionID
SELECT qryReportRiskClassificationSummary.AgeAtSampling,
Count(qryReportRiskClassificationSummary.Submissio nID) AS [Total Of
SubmissionID]
FROM qryReportRiskClassificationSummary
GROUP BY qryReportRiskClassificationSummary.AgeAtSampling
PIVOT qryReportRiskClassificationSummary.Classification;




Thank you so much in advance...you may be able to save my butt...!

--
Carlee


"Duane Hookom" wrote:

You should be able to grab a value by un-pivoting the crosstab. I could
probably explain better if you provided the sql view and the values and
fields you wanted to lookup up.

--
Duane Hookom
Microsoft Access MVP


"Carlee" wrote:

Hi there,

I have created a cross tab query that gives me a serious of values based on
a column and row intersection.

Question: I need to make addition calculations based on various calculation
in the crosstab results. for example if the intersection of my Age Row, and
Category Column = 20, i want to be able to identify 20 in a subsequent query
to make an additional calculation. How do i do this?


--
Carlee

 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 02:25 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.