473,394 Members | 1,742 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,394 software developers and data experts.

Daily Graphs of activity

I've got a daily based crystal report that doesn't show 0's for days where
no activity occurred. How do I get 0 values to show up in the report?
Nov 18 '05 #1
13 1571
"i. Wiin" <ii****@yagoo.com> wrote in
news:eZ**************@TK2MSFTNGP12.phx.gbl:
I've got a daily based crystal report that doesn't show 0's for days
where no activity occurred. How do I get 0 values to show up in the
report?


You need to pad the report with data - you'll need to generate 0 data for
the missing days.

--
Lucas Tam (RE********@rogers.com)
Please delete "REMOVE" from the e-mail address when replying.
http://members.ebay.com/aboutme/coolspot18/
Nov 18 '05 #2
How do I generate 0 data for missing days? SQL clause that builds the
DataSet that the report is based off of is "SELECT * FROM table WHERE
table.daterecorded BETWEEN '1/1/2002' AND '6/30/2002'" then Crystal breaks
up the groups by day and displays a count of rows for that day. How Do I
Create A 0 Row For A Day If The Criteria Is Count Of Rows Per Day?
"Lucas Tam" <RE********@rogers.com> wrote in message
news:Xn***************************@140.99.99.130.. .
"i. Wiin" <ii****@yagoo.com> wrote in
news:eZ**************@TK2MSFTNGP12.phx.gbl:
I've got a daily based crystal report that doesn't show 0's for days
where no activity occurred. How do I get 0 values to show up in the
report?


You need to pad the report with data - you'll need to generate 0 data for
the missing days.

--
Lucas Tam (RE********@rogers.com)
Please delete "REMOVE" from the e-mail address when replying.
http://members.ebay.com/aboutme/coolspot18/

Nov 18 '05 #3
Help. Anyone?
"i. Wiin" <ii****@yagoo.com> wrote in message
news:e9*************@TK2MSFTNGP14.phx.gbl...
How do I generate 0 data for missing days? SQL clause that builds the
DataSet that the report is based off of is "SELECT * FROM table WHERE
table.daterecorded BETWEEN '1/1/2002' AND '6/30/2002'" then Crystal breaks up the groups by day and displays a count of rows for that day. How Do I
Create A 0 Row For A Day If The Criteria Is Count Of Rows Per Day?
"Lucas Tam" <RE********@rogers.com> wrote in message
news:Xn***************************@140.99.99.130.. .
"i. Wiin" <ii****@yagoo.com> wrote in
news:eZ**************@TK2MSFTNGP12.phx.gbl:
I've got a daily based crystal report that doesn't show 0's for days
where no activity occurred. How do I get 0 values to show up in the
report?


You need to pad the report with data - you'll need to generate 0 data for the missing days.

--
Lucas Tam (RE********@rogers.com)
Please delete "REMOVE" from the e-mail address when replying.
http://members.ebay.com/aboutme/coolspot18/


Nov 18 '05 #4
"i. Wiin" <ii****@yagoo.com> wrote in
news:e9*************@TK2MSFTNGP14.phx.gbl:
How do I generate 0 data for missing days? SQL clause that builds the
DataSet that the report is based off of is "SELECT * FROM table WHERE
table.daterecorded BETWEEN '1/1/2002' AND '6/30/2002'" then Crystal
breaks up the groups by day and displays a count of rows for that day.
How Do I Create A 0 Row For A Day If The Criteria Is Count Of Rows
Per Day?


You'll need to write a SQL while loop to insert blank data. Time for you to
learn T-SQL!

OR... if you're binding a dataset to the report, you can loop through the
dataset and pad with 0-data.

Try microsoft.public.sqlserver.programming for more info.

--
Lucas Tam (RE********@rogers.com)
Please delete "REMOVE" from the e-mail address when replying.
http://members.ebay.com/aboutme/coolspot18/
Nov 18 '05 #5
OK, let's get technical.

Here's the table structure

"ID" int 4, key
"DateRecorded" DateTime
"Location" VarChar 64

The report is counting "hits per day" regardless of location.

Here's some possible data
7683 12/10/2003 4:10:20 Kitchen
7684 12/10/2003 7:55:12 Laundry Room
7685 12/10/2003 14:34:02 Patio
7686 12/11/2003 5:02:56 Kitchen
7687 12/13/2003 9:00:49 Patio
7688 12/14/2003 12:30:00 Back Door

Notice there's no data collected for 12/12/2003. How does 0-data go in?
How will the report be smart enough to make it a 0 for 12/12? If I enter a
row like "7689 12/12/2003 00:00:01 0", it's going to report a "hit" (1) for
the 12th when there shouldn't be anything. It's the Crystal Report that is
grouping by day a count, not any t-sql.

There must be a setting in CR, that tells it to "pad" days with 0 counts.

"Lucas Tam" <RE********@rogers.com> wrote in message
news:Xn***************************@140.99.99.130.. .
"i. Wiin" <ii****@yagoo.com> wrote in
news:e9*************@TK2MSFTNGP14.phx.gbl:
How do I generate 0 data for missing days? SQL clause that builds the
DataSet that the report is based off of is "SELECT * FROM table WHERE
table.daterecorded BETWEEN '1/1/2002' AND '6/30/2002'" then Crystal
breaks up the groups by day and displays a count of rows for that day.
How Do I Create A 0 Row For A Day If The Criteria Is Count Of Rows
Per Day?

You'll need to write a SQL while loop to insert blank data. Time for you

to learn T-SQL!

OR... if you're binding a dataset to the report, you can loop through the
dataset and pad with 0-data.

Try microsoft.public.sqlserver.programming for more info.

--
Lucas Tam (RE********@rogers.com)
Please delete "REMOVE" from the e-mail address when replying.
http://members.ebay.com/aboutme/coolspot18/

Nov 18 '05 #6
Seriously, How do I put 0-data in my table to get it to work?

Or is there a setting in CR, when grouped by day, to show "missing" days?
"i. Wiin" <ii****@yagoo.com> wrote in message
news:%2****************@TK2MSFTNGP09.phx.gbl...
OK, let's get technical.

Here's the table structure

"ID" int 4, key
"DateRecorded" DateTime
"Location" VarChar 64

The report is counting "hits per day" regardless of location.

Here's some possible data
7683 12/10/2003 4:10:20 Kitchen
7684 12/10/2003 7:55:12 Laundry Room
7685 12/10/2003 14:34:02 Patio
7686 12/11/2003 5:02:56 Kitchen
7687 12/13/2003 9:00:49 Patio
7688 12/14/2003 12:30:00 Back Door

Notice there's no data collected for 12/12/2003. How does 0-data go in?
How will the report be smart enough to make it a 0 for 12/12? If I enter a row like "7689 12/12/2003 00:00:01 0", it's going to report a "hit" (1) for the 12th when there shouldn't be anything. It's the Crystal Report that is grouping by day a count, not any t-sql.

There must be a setting in CR, that tells it to "pad" days with 0 counts.

"Lucas Tam" <RE********@rogers.com> wrote in message
news:Xn***************************@140.99.99.130.. .
"i. Wiin" <ii****@yagoo.com> wrote in
news:e9*************@TK2MSFTNGP14.phx.gbl:
How do I generate 0 data for missing days? SQL clause that builds the
DataSet that the report is based off of is "SELECT * FROM table WHERE
table.daterecorded BETWEEN '1/1/2002' AND '6/30/2002'" then Crystal
breaks up the groups by day and displays a count of rows for that day.
How Do I Create A 0 Row For A Day If The Criteria Is Count Of Rows
Per Day?


You'll need to write a SQL while loop to insert blank data. Time for you

to
learn T-SQL!

OR... if you're binding a dataset to the report, you can loop through the dataset and pad with 0-data.

Try microsoft.public.sqlserver.programming for more info.

--
Lucas Tam (RE********@rogers.com)
Please delete "REMOVE" from the e-mail address when replying.
http://members.ebay.com/aboutme/coolspot18/


Nov 18 '05 #7
"i. Wiin" <ii****@yagoo.com> wrote in news:#R9X0zjqEHA.3988
@tk2msftngp13.phx.gbl:
Seriously, How do I put 0-data in my table to get it to work?

Or is there a setting in CR, when grouped by day, to show "missing" days?


I TOLD YOU. YOU NEED TO PAD THE DATA.

The bundled version does not have the ability to fill in data. I'm not sure
if the full version does either...

--
Lucas Tam (RE********@rogers.com)
Please delete "REMOVE" from the e-mail address when replying.
http://members.ebay.com/aboutme/coolspot18/
Nov 18 '05 #8

Simply tell me how to "pad" the data, and I will do so.
"Lucas Tam" <RE********@rogers.com> wrote in message
news:Xn***************************@140.99.99.130.. .
"i. Wiin" <ii****@yagoo.com> wrote in news:#R9X0zjqEHA.3988
@tk2msftngp13.phx.gbl:
Seriously, How do I put 0-data in my table to get it to work?

Or is there a setting in CR, when grouped by day, to show "missing"
days?
I TOLD YOU. YOU NEED TO PAD THE DATA.

The bundled version does not have the ability to fill in data. I'm not sure if the full version does either...

--
Lucas Tam (RE********@rogers.com)
Please delete "REMOVE" from the e-mail address when replying.
http://members.ebay.com/aboutme/coolspot18/

Nov 18 '05 #9
Please show me how to pad the data.
"i. Wiin" <ii****@yagoo.com> wrote in message
news:u9*************@TK2MSFTNGP12.phx.gbl...

Simply tell me how to "pad" the data, and I will do so.
"Lucas Tam" <RE********@rogers.com> wrote in message
news:Xn***************************@140.99.99.130.. .
"i. Wiin" <ii****@yagoo.com> wrote in news:#R9X0zjqEHA.3988
@tk2msftngp13.phx.gbl:
Seriously, How do I put 0-data in my table to get it to work?

Or is there a setting in CR, when grouped by day, to show "missing"

days?

I TOLD YOU. YOU NEED TO PAD THE DATA.

The bundled version does not have the ability to fill in data. I'm not

sure
if the full version does either...

--
Lucas Tam (RE********@rogers.com)
Please delete "REMOVE" from the e-mail address when replying.
http://members.ebay.com/aboutme/coolspot18/


Nov 18 '05 #10
"i. Wiin" <ii****@yagoo.com> wrote in news:OASA7a7qEHA.3488
@TK2MSFTNGP11.phx.gbl:

Please show me how to pad the data.


Loop through your data and fill with 0 data.

--
Lucas Tam (RE********@rogers.com)
Please delete "REMOVE" from the e-mail address when replying.
http://members.ebay.com/aboutme/coolspot18/
Nov 18 '05 #11
I'm still not sure how to "fill with 0 data".

Did you see the structure of the database I posted? Can you please show me
how to pad a 0 into it without Crystal Reports counting it as a "hit"?

I'm beginngin to think you have NO idea what you're talking about. Either
show how to pad with 0 as I have requested.

I've gone as far as posting the SQL query I use to fill the dataset that is
passed to the Crystal Report. I've given you the datastructure of the
table. I've given you sample data. And yet all you can say is to fill with
0 data. I've told you that if I place a new record into the table with a
date, then Crystal Reports counts it as a "hit" and shows a 1. I jsut want
CR to show a 0 for any date that has no data that is inside the date range.
"Lucas Tam" <RE********@rogers.com> wrote in message
news:Xn***************************@140.99.99.130.. .
"i. Wiin" <ii****@yagoo.com> wrote in news:OASA7a7qEHA.3488
@TK2MSFTNGP11.phx.gbl:

Please show me how to pad the data.


Loop through your data and fill with 0 data.

--
Lucas Tam (RE********@rogers.com)
Please delete "REMOVE" from the e-mail address when replying.
http://members.ebay.com/aboutme/coolspot18/

Nov 18 '05 #12
"i. Wiin" <ii****@yagoo.com> wrote in
news:#M**************@TK2MSFTNGP14.phx.gbl:
I'm still not sure how to "fill with 0 data".

Did you see the structure of the database I posted? Can you please
show me how to pad a 0 into it without Crystal Reports counting it as
a "hit"? "ID" int 4, key
"DateRecorded" DateTime
"Location" VarChar 64
ID as your ID or Null
DateRecord - Date of missing record
Location as Null

When you out in Crystal, Location will be null, thus the date will be
display but a blank entry will be shown.

When doing a Select Count(Location), Null locations will be ignored due
to the way Count works (unless you want to include with with Select
Count All.

If Crystal is counting null entries (i.e. you're using Crystal's count
methods), write a custom count function it ignore all locations or IDs =
null.

I'm beginngin to think you have NO idea what you're talking about.
Either show how to pad with 0 as I have requested.


Gee thanks.
--
Lucas Tam (RE********@rogers.com)
Please delete "REMOVE" from the e-mail address when replying.
http://members.ebay.com/aboutme/coolspot18/
Nov 18 '05 #13
Lucas Tam <RE********@rogers.com> wrote in
news:Xn***************************@140.99.99.130:
When you out in Crystal, Location will be null, thus the date will be
display but a blank entry will be shown.


That should be when you output in Crystal.

--
Lucas Tam (RE********@rogers.com)
Please delete "REMOVE" from the e-mail address when replying.
http://members.ebay.com/aboutme/coolspot18/
Nov 18 '05 #14

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

Similar topics

5
by: Mark Fenbers | last post by:
I am investigating Python for the sake of ultimately generating hydrographs (such as this: http://ahps.erh.noaa.gov/iln/ahps/RiverDat/gifs/prgo1.png) on-the-fly from a web server cluster. I have...
9
by: rhmd | last post by:
I need to create image files (eg bmp or jpeg) of xy scatter graphs (i.e., graphs in which markers denote individual points; the markers need to be small polygons of various sizes, shapes, colors,...
7
by: Florian Lindner | last post by:
Hello, I'm looking for a program or python library to draw graphs. They should look like the that: /--------\ /--------\ | Node A | ------ belongs to ----> | Node B |...
16
by: David Lauberts | last post by:
Hi Wonder if someone has some words of wisdom. I have a access 2002 form that contains 2 graph objects that overlay each other and would like to export them as a JPEG to use in a presentation....
3
by: Moha | last post by:
I have a form and subform which are bound to a combobox. The drop down in the combobox show the dates from the table and reflect the select activity in the subform according to the date selected. I...
2
by: dba.hcm | last post by:
I want to know what the best practices are for maintaining DSNDB07 (work database) on DB2 v7.1 for Z/OS? A colleague swears that we need to delete and redefine DSNDB07 daily to avoid maxing out...
5
by: Roadworrier | last post by:
Hey, does anyone know how I can pause the processing of XMLHttpRequests so that I can have the foreground interface respond to user clicks? I have 40 graphs drawing to the screen after getting...
1
by: swethak | last post by:
hi, i have a code to disply the calendar and add events to that. It works fine.But my requirement is to i have to disply a weekly and daily calendar.Any body plz suggest that what modifications i...
0
by: vivekji | last post by:
hi friend i am vivekji.i am working in sql dba in chennai.i need the daily activities of the sqlserver2005.currently i am using mssql2005 developer edition.please help me.
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:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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
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
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...
0
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...
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.