473,836 Members | 1,885 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Help Creating A Chart - Counting Nulls


I have the following dataset:

PolNum DateInterviewCo mplete
---------------------------------------------
1234 11/23/2006
1323 11/03/2006
4342 Null
2322 Null

I want to create a chart that shows the percentage completed -
DateInterviewCo mplete has a value and percent In Progress -
DateInterviewCo mplete IsNull.

So the above example would be 50% Complete - 50% In Progress.

Any ideas?

Thanks!

Nov 27 '06 #1
4 2061
Try this:

Complete = DCount("*","Tab le","[DateInterviewCo mplete] Is Not Null")
In Progress = DCount("*","Tab le","[DateInterviewCo mplete] Is Null")

Divide by the total number of records and multiply by 100 to get a percentage.
BerkshireGuy wrote:
>I have the following dataset:

PolNum DateInterviewCo mplete
---------------------------------------------
1234 11/23/2006
1323 11/03/2006
4342 Null
2322 Null

I want to create a chart that shows the percentage completed -
DateInterviewC omplete has a value and percent In Progress -
DateInterviewC omplete IsNull.

So the above example would be 50% Complete - 50% In Progress.

Any ideas?

Thanks!
--
Message posted via http://www.accessmonster.com

Nov 27 '06 #2
BerkshireGuy wrote:
PolNum DateInterviewCo mplete
---------------------------------------------
1234 11/23/2006
1323 11/03/2006
4342 Null
2322 Null

I want to create a chart that shows the percentage completed -
DateInterviewCo mplete has a value and percent In Progress -
DateInterviewCo mplete IsNull.

So the above example would be 50% Complete - 50% In Progress.
OK, so combine all the results and anything with a date in
DateInterviewCo mplete would be "Complete" and anything without a date
(null) would be "In Progress".

Create a calculated field in the SQL/query that your graph is based upon
and use the iif() function. In the query design grid, the field would
look like this (I called it status) - wathc for wrap, this is a single line:

Status: iif(isnull(Date InterviewComple te), "In Progress", "Complete")

That should do it for you. I'd want to do a chart whereby the series is
Status. That way, you can show the in progress versus completed using a
stacked, or even a 100% stacked, column or bar chart.
--
Tim http://www.ucs.mun.ca/~tmarshal/
^o<
/#) "Burp-beep, burp-beep, burp-beep?" - Quaker Jake
/^^ "Be Careful, Big Bird!" - Ditto "TIM-MAY!!" - Me
Nov 27 '06 #3
Thank you both for the suggestions.

Any good reading material to demonstrate what the best chart views
should be used in different situations?

Thanks.
Brian

Tim Marshall wrote:
BerkshireGuy wrote:
PolNum DateInterviewCo mplete
---------------------------------------------
1234 11/23/2006
1323 11/03/2006
4342 Null
2322 Null

I want to create a chart that shows the percentage completed -
DateInterviewCo mplete has a value and percent In Progress -
DateInterviewCo mplete IsNull.

So the above example would be 50% Complete - 50% In Progress.

OK, so combine all the results and anything with a date in
DateInterviewCo mplete would be "Complete" and anything without a date
(null) would be "In Progress".

Create a calculated field in the SQL/query that your graph is based upon
and use the iif() function. In the query design grid, the field would
look like this (I called it status) - wathc for wrap, this is a single line:

Status: iif(isnull(Date InterviewComple te), "In Progress", "Complete")

That should do it for you. I'd want to do a chart whereby the series is
Status. That way, you can show the in progress versus completed using a
stacked, or even a 100% stacked, column or bar chart.
--
Tim http://www.ucs.mun.ca/~tmarshal/
^o<
/#) "Burp-beep, burp-beep, burp-beep?" - Quaker Jake
/^^ "Be Careful, Big Bird!" - Ditto "TIM-MAY!!" - Me
Nov 27 '06 #4
BerkshireGuy wrote:
Any good reading material to demonstrate what the best chart views
should be used in different situations?
I've no idea. If you find something on line, let us know, I'm sure I'm
regularly offending the graph gods!!! Seriously, there are intuitive
(to me) guidelines I sort of follow, but anything formal I'm sadly
lacking. My main app that uses graphs is fully automated, so I
alternate between various chart types with the click of a toggle in an
option group until I find something that easily conveys what I want to
portray. I've always meant to look at help on charts in PowerPoint as
that might provide some practical guidance.
--
Tim http://www.ucs.mun.ca/~tmarshal/
^o<
/#) "Burp-beep, burp-beep, burp-beep?" - Quaker Jake
/^^ "Be Careful, Big Bird!" - Ditto "TIM-MAY!!" - Me
Nov 27 '06 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
4369
by: Alan | last post by:
Hi there, Are there Excel charting gurus here?? If so then please read on... Sorry for the cross-post but I'm not familiar with the Excel groups. I've posted to asp.general because if I have to code a solution to this it'll probably be done in ASP on a web server, unless there's a significantly better way. I'm looking for a way to create over 100 Excel *charts* programmatically.
5
3206
by: Alan | last post by:
Hi there, Are there Excel charting gurus here?? If so then please read on... Sorry for the cross-post but I'm not familiar with the Excel groups. I've posted to asp.general because if I have to code a solution to this it'll probably be done in ASP on a web server, unless there's a significantly better way. I'm looking for a way to create over 100 Excel *charts* programmatically.
3
1886
by: adam | last post by:
Hello, I have a MySQL table that has (among other fields) an affiliate_id, affiliate_sub_id, and a response_code field. - affiliate_id stores the unique number of each of my affiliates. - affiliate_sub_id stores the affiliate ID of their affiliates. - response_code holds a number between 1 - 6.
1
1674
by: Paul | last post by:
Let say, I have a table called USERS with the following fields: UserID, Date, Name, ComType. ComType gets it's info from another table called TYPE with fields: TypeID, TypeOfCom, with options: Email, Phone, Message Table Samples: UserID Date Name ComType -------------------------------------------
9
3099
by: Patrick.O.Ige | last post by:
I have a code below and its a PIE & BAR CHART. The values now are all static but I want to be able to pull the values from a database. Can you guys give me some ideas to do this? Thanks Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load 'Declare your object variables
0
1322
by: StevenR via AccessMonster.com | last post by:
I have a form where I want the user to pick the fields for a Pivot Chart from 3 Combo boxes. Each Combo box holds 50+ fields from a stored procedure. I want the user to pick 1 or no fields for each box so the chart can have from 1-3 user selected fields on it. I need to know what route to take in doing this. I am still new to creating Databases and I have only created 1 pivot chart so far so any help will be gladly taken. Please let me know...
0
1779
by: JohnnyB | last post by:
I've been wrestling with this off and on for a few days and came close but it's still not right. I'll try to explain it as best I can. I created a report with a pie chart on the first page that is a summary of issues for all of the types of users we track. Those users are: employees, customers, third-party, vendor and offshore. The first chart shows total issues for all of these people. The pies in the chart are the priority of issues. Those...
2
2990
by: StevenChiasson | last post by:
For the record, not a student, just someone attempting to learn C++. Anyway, the problem I'm having right now is the member function detAddress, of object controller. This is more or less, your standard dynamic address book program. Adding, and listing work just fine. However, deleting, editing and viewing relies on member function retAddress. This function returns an array of pointers that are pointing to created objects. In action, all it...
0
3197
by: SOI_0152 | last post by:
Hi all! Happy New Year 2008. Il hope it will bring you love and happyness I'm new on this forum. I wrote a stored procedure on mainframe using DB2 7.1.1 and IBM language c. Everything works fine. Now we decided to move from mainframe IMS-DB2 to Windows 2003 server-DB2 UDB for LUW 9.5.
0
9810
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10526
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10565
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9348
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6972
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5809
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4436
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3999
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3094
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.