Google
 
Webnews.only-4-geeks.com
Interesting places
news.only-4-geeks.com Forum Index » Access

Crosstab query help

 
Jump to:  
 
kidkosmo
PostPosted: Tue Sep 23, 2008 8:22 pm    Post subject: Crosstab query help
       
Hi, All,

Is there any solution within a crosstab query or a report that will
calculate a percentage of the total number of records? For example,
below is a snippet of the count data established from my crosstab
query. I am hoping the calculate the percentacd of "Client Resolved,
etc" based on the entire total of incoming tickets rather than the
total of that row (ie. 114/724 rather than 114/494).

Any ideas?

Cause Code Total Of ID Client Resolved Connect re-
established
CPU - BU not receiving orders 494 114 45
CPU - BU Proceedure 158 10
CPU - Client refusing results 60 5 33
CPU - Client ugrading interface 12 2
 

 
Allen Browne
PostPosted: Wed Sep 24, 2008 12:47 am    Post subject: Re: Crosstab query help
       
You could add another field to your crosstab that contains an expression
that calculates the grand total. Use a subquery, or a domain aggregate
function such as DCount() or DSum(). Make it a RowHeading, Expression.

Alternatively, you could do this in the report. Put a text box in the Report
Header section. You can then refer to it in the control source of another
text box that calculates the percentage.

--
Allen Browne - Microsoft MVP. Perth, Western Australia
Tips for Access users - LINK
Reply to group, rather than allenbrowne at mvps dot org.

"kidkosmo" <kidkosmo2@yahoo.com> wrote in message
news:6ab21054-25cc-44de-8f61-6161e0d3da0a@l43g2000hsh.googlegroups.com...
Quote:
Hi, All,

Is there any solution within a crosstab query or a report that will
calculate a percentage of the total number of records? For example,
below is a snippet of the count data established from my crosstab
query. I am hoping the calculate the percentacd of "Client Resolved,
etc" based on the entire total of incoming tickets rather than the
total of that row (ie. 114/724 rather than 114/494).

Any ideas?

Cause Code Total Of ID Client Resolved Connect re-
established
CPU - BU not receiving orders 494 114 45
CPU - BU Proceedure 158 10
CPU - Client refusing results 60 5 33
CPU - Client ugrading interface 12 2
 

Page 1 of 1 .:.

Google
 
Webnews.only-4-geeks.com

Windows Update | C++ | C | PHP | JavaScript | Photoshop | Programming | Windows 2000 | Python | Windows XP | Object | Flash | Flash - ActionScript | Paint Shop Pro | Excel | PowerPoint | Access | Word | Windows 98 | Internet Explorer 6.0 | CorelDraw12 | Java | XML | asm x86 | Linux Mandrake | Linux RedHat | Outlook |  | news from newsgroups |_ | s

Web Templates

Awesome Website Templates ©

Pozycjonowanie odżywki advocacy talk kalkulator kredytowy odzież dla dzieci