Making Charts

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.
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

gigifarrowAuthor Commented:
is there anybody out there that can help me it has been over 2 hrs.
Jeffrey CoachmanMIS LiasonCommented:
Two hours is not that long to wait....

Remember, we are all volunteers here...
gigifarrowAuthor Commented:
I understand what you are saying. However, I am paying for this every month.
Big Business Goals? Which KPIs Will Help You

The most successful MSPs rely on metrics – known as key performance indicators (KPIs) – for making informed decisions that help their businesses thrive, rather than just survive. This eBook provides an overview of the most important KPIs used by top MSPs.

Jeffrey CoachmanMIS LiasonCommented:
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:
...or 41.5%.

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

gigifarrowAuthor Commented:
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.
Jeffrey CoachmanMIS LiasonCommented:
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.)

gigifarrowAuthor Commented:
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%
Jeffrey CoachmanMIS LiasonCommented:
Then give this a try, it has both Group Percents, and Percents of the Grand total

Jeffrey CoachmanMIS LiasonCommented:

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

Gimme a minute...


gigifarrowAuthor Commented:
TotalByLocation: DSum("Quantity","inventory_tbl","Location=" & "'" & [Location] & "'") could you please explain what the "&" does?
Jeffrey CoachmanMIS LiasonCommented:
For lack of a simpler explanation...

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

For Example:

"Jeffrey" & " " & "Coachman" = Jeffrey Coachman
Jeffrey CoachmanMIS LiasonCommented:
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:

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
gigifarrowAuthor Commented:
ok I wont use lookup tables. Thanks for the advice and help.
Jeffrey CoachmanMIS LiasonCommented:
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...
Jeffrey CoachmanMIS LiasonCommented:
Try this,...

Charts on last page of report

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Jeffrey CoachmanMIS LiasonCommented:
Note that in order for chats to display correctly, you must open the report in "Print Preview" explicitly.
Jeffrey CoachmanMIS LiasonCommented:
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.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft Access

From novice to tech pro — start learning today.