accessewbie
MIS
Okay I think I have gone backwards. I have a table with the following fields:
TABLE
Customer
Region - (drop down with canada, north central, west, east, etc.)
Status - (drop down with win, loss, pending decision, etc).
Writer
Comments
(Other informational fields)
REPORT!
What I did was create a report that sorts by region and then count all the wins, losses, and pending decisions for each region. Then I calculated the perecentages for each region. So for example say this is the data for Canada:
Canada
10 Wins
5 Losses
2 Pending Decisions
Then the percentages read 58.82% wins, 29.4% losses, 11.76%
Then it would go on and do the same for the West, East, and other Regions
Here are my formulas in the REPORT:
Status Footer
="Total Customers with a status of" & " " & [Status] & " : " & Count(*) & " " & IIf(Count(*)=1,"")
Region Footer
Percent Wins: =(Sum(Abs([Status]="Win")))/Count(*)
Percent Losses: =(Sum(Abs([Status]="loss")))/Count(*)
Percent Pending Decision: =(Sum(Abs([Status]="pending decision")))/Count(*)
However, I discovered I can't build a graph off the results from the formulas in my report but instead I have to do this through a query. So that is my problem. I have no idea where to begin to make this work through in a query. Because the formulas from the report don't work in the query. Please help. thanks in advance! I hope what I am asking is clearly defined.
TABLE
Customer
Region - (drop down with canada, north central, west, east, etc.)
Status - (drop down with win, loss, pending decision, etc).
Writer
Comments
(Other informational fields)
REPORT!
What I did was create a report that sorts by region and then count all the wins, losses, and pending decisions for each region. Then I calculated the perecentages for each region. So for example say this is the data for Canada:
Canada
10 Wins
5 Losses
2 Pending Decisions
Then the percentages read 58.82% wins, 29.4% losses, 11.76%
Then it would go on and do the same for the West, East, and other Regions
Here are my formulas in the REPORT:
Status Footer
="Total Customers with a status of" & " " & [Status] & " : " & Count(*) & " " & IIf(Count(*)=1,"")
Region Footer
Percent Wins: =(Sum(Abs([Status]="Win")))/Count(*)
Percent Losses: =(Sum(Abs([Status]="loss")))/Count(*)
Percent Pending Decision: =(Sum(Abs([Status]="pending decision")))/Count(*)
However, I discovered I can't build a graph off the results from the formulas in my report but instead I have to do this through a query. So that is my problem. I have no idea where to begin to make this work through in a query. Because the formulas from the report don't work in the query. Please help. thanks in advance! I hope what I am asking is clearly defined.