473,396 Members | 1,813 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Help Creating A Chart - Counting Nulls


I have the following dataset:

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

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

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

Any ideas?

Thanks!

Nov 27 '06 #1
4 2041
Try this:

Complete = DCount("*","Table","[DateInterviewComplete] Is Not Null")
In Progress = DCount("*","Table","[DateInterviewComplete] 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 DateInterviewComplete
---------------------------------------------
1234 11/23/2006
1323 11/03/2006
4342 Null
2322 Null

I want to create a chart that shows the percentage completed -
DateInterviewComplete has a value and percent In Progress -
DateInterviewComplete 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 DateInterviewComplete
---------------------------------------------
1234 11/23/2006
1323 11/03/2006
4342 Null
2322 Null

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

So the above example would be 50% Complete - 50% In Progress.
OK, so combine all the results and anything with a date in
DateInterviewComplete 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(DateInterviewComplete), "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 DateInterviewComplete
---------------------------------------------
1234 11/23/2006
1323 11/03/2006
4342 Null
2322 Null

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

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

OK, so combine all the results and anything with a date in
DateInterviewComplete 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(DateInterviewComplete), "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
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...
5
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...
3
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. -...
1
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:...
9
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 ...
0
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...
0
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...
2
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...
0
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...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

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.