Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Making Charts

Posted on 2012-03-16
17
Medium Priority
?
220 Views
Last Modified: 2012-03-16
I have a report that I need to add a chart. However when I make the chart the data in the fields do not match the reports data. I know I can input the correct data, but that will take forever. How do I make the data from the report match the data from the chart? I need the chart to show the locations as the headers and the data would be the precentage of "Defective Items" for each location.  Below is my database. It includes the report that I am working on.
Inventory3-db.accdb
0
Comment
Question by:gigifarrow
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 11
  • 6
17 Comments
 

Author Comment

by:gigifarrow
ID: 37729501
is there anybody out there that can help me it has been over 2 hrs.
0
 
LVL 74

Expert Comment

by:Jeffrey Coachman
ID: 37729521
Two hours is not that long to wait....

Remember, we are all volunteers here...
;-)
0
 

Author Comment

by:gigifarrow
ID: 37729548
I understand what you are saying. However, I am paying for this every month.
0
What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

 
LVL 74

Expert Comment

by:Jeffrey Coachman
ID: 37729577
Again, a lot of detail is missing here...

In order to get a "Perentage" you need two things
1. The Total Items
2. ...and the Total Defective Items

So if you had 123 items and 51 were defective, the formula for the percent would be:
51/123=.415
...or 41.5%.

In your report you only the defective Items (by Location) are listed.
Where can I find the "Total" items by location

JeffCoachman
0
 

Author Comment

by:gigifarrow
ID: 37729685
I hope this is what you are asking. If you look at the report after it names each defect there is a total.  Then there is a grand total of all the defective Items. I hope those are the totals you are asking about.
0
 
LVL 74

Expert Comment

by:Jeffrey Coachman
ID: 37729760
This is why I always as for:
A Clear, Graphical example of the exact output you are requesting...

In other words what *exactly* do you want displayed"
(The actual Values)

Put another way, show me the *exact* percent values you want for each record/group.

In other words, do you want the Korea percents to be the percentage of the Korea Total , or the grand Total...?


Put another way, this is all I need:
Show me what you have (you have done this)
Show me what you want (don't describe what you want, *Show* me *exactly and graphically* what you want.)


JeffCoachman
0
 

Author Comment

by:gigifarrow
ID: 37729866
This is an example the precentage is not right  so i need the precentage of each by location.  These equation needs to be in a chart. I can make a chart but it just gives me a generic chart.



Location           defect           total

Korea               Leakage          5
                         Loss                2

grand total                              7  = 20%



Colorado         Leakage          3
                       Loss                1
grand total                             4 = 4%
0
 
LVL 74

Expert Comment

by:Jeffrey Coachman
ID: 37729899
Then give this a try, it has both Group Percents, and Percents of the Grand total

JeffCoachman
Inventory3-db.accdb
0
 
LVL 74

Expert Comment

by:Jeffrey Coachman
ID: 37729909
LOL!

Oh!, In all the posts, I forgot you wanted a *chart*...

Gimme a minute...

;-)

Jeff
0
 

Author Comment

by:gigifarrow
ID: 37729953
TotalByLocation: DSum("Quantity","inventory_tbl","Location=" & "'" & [Location] & "'") could you please explain what the "&" does?
0
 
LVL 74

Expert Comment

by:Jeffrey Coachman
ID: 37730048
For lack of a simpler explanation...

"&" in VBA is the symbol for "concatenation"

For Example:
1+1=2
1&1=11

"Jeffrey" & " " & "Coachman" = Jeffrey Coachman
0
 
LVL 74

Expert Comment

by:Jeffrey Coachman
ID: 37730067
Just a (rather forceful) note here.
;-)
Please *Do Not* use Lookup field in your tables (ex Location in the inventory table)
For all the reasons listed here:
http://access.mvps.org/access/lookupfields.htm

But it this case specifically, it wreaks havoc when trying to create your Chart, because the chart will only see the "Value", not the lookup

...stay tuned
0
 

Author Comment

by:gigifarrow
ID: 37730083
ok I wont use lookup tables. Thanks for the advice and help.
0
 
LVL 74

Expert Comment

by:Jeffrey Coachman
ID: 37730179
Also don't name all your Primary Keys "ID", this causes confusion when referring to the "ID" field, because every table has this exact same Primary key name.
In the Inventory Table, the Primary Key should be: InventoryID
In the Location Table, the Primary Key should be: LocationID
In the Customer Table, the Primary Key should be: CustomerID
In the SlabMask Table, the Primary Key should be: SlabMaskID
In the QaeVd23AP45 Table, the Primary Key should be:QaeVd23AP45ID
;-)

..Still working on the chart...
0
 
LVL 74

Accepted Solution

by:
Jeffrey Coachman earned 2000 total points
ID: 37730400
Try this,...

Charts on last page of report
Inventory3-db.accdb
0
 
LVL 74

Expert Comment

by:Jeffrey Coachman
ID: 37730453
Note that in order for chats to display correctly, you must open the report in "Print Preview" explicitly.
0
 
LVL 74

Expert Comment

by:Jeffrey Coachman
ID: 37730456
Note that in order for chats to display correctly, you must open the report in "Print Preview" explicitly.

should be:

Note that in order for charts to display correctly, you must open the report in "Print Preview" explicitly.
0

Featured Post

Ransomware: The New Cyber Threat & How to Stop It

This infographic explains ransomware, type of malware that blocks access to your files or your systems and holds them hostage until a ransom is paid. It also examines the different types of ransomware and explains what you can do to thwart this sinister online threat.  

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

It’s the first day of March, the weather is starting to warm up and the excitement of the upcoming St. Patrick’s Day holiday can be felt throughout the world.
Instead of error trapping or hard-coding for non-updateable fields when using QODBC, let VBA automatically disable them when forms open. This way, users can view but not change the data. Part 1 explained how to use schema tables to do this. Part 2 h…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…
Have you created a query with information for a calendar? ... and then, abra-cadabra, the calendar is done?! I am going to show you how to make that happen. Visualize your data!  ... really see it To use the code to create a calendar from a q…

660 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question