473,803 Members | 3,424 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 1599
"i. Wiin" <ii****@yagoo.c om> wrote in
news:eZ******** ******@TK2MSFTN GP12.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********@rog ers.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.daterecor ded 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********@rog ers.com> wrote in message
news:Xn******** *************** ****@140.99.99. 130...
"i. Wiin" <ii****@yagoo.c om> wrote in
news:eZ******** ******@TK2MSFTN GP12.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********@rog ers.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.c om> wrote in message
news:e9******** *****@TK2MSFTNG P14.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.daterecor ded 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********@rog ers.com> wrote in message
news:Xn******** *************** ****@140.99.99. 130...
"i. Wiin" <ii****@yagoo.c om> wrote in
news:eZ******** ******@TK2MSFTN GP12.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********@rog ers.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.c om> wrote in
news:e9******** *****@TK2MSFTNG P14.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.daterecor ded 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.publi c.sqlserver.pro gramming for more info.

--
Lucas Tam (RE********@rog ers.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
"DateRecord ed" 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********@rog ers.com> wrote in message
news:Xn******** *************** ****@140.99.99. 130...
"i. Wiin" <ii****@yagoo.c om> wrote in
news:e9******** *****@TK2MSFTNG P14.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.daterecor ded 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.publi c.sqlserver.pro gramming for more info.

--
Lucas Tam (RE********@rog ers.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.c om> wrote in message
news:%2******** ********@TK2MSF TNGP09.phx.gbl. ..
OK, let's get technical.

Here's the table structure

"ID" int 4, key
"DateRecord ed" 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********@rog ers.com> wrote in message
news:Xn******** *************** ****@140.99.99. 130...
"i. Wiin" <ii****@yagoo.c om> wrote in
news:e9******** *****@TK2MSFTNG P14.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.daterecor ded 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.publi c.sqlserver.pro gramming for more info.

--
Lucas Tam (RE********@rog ers.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.c om> wrote in news:#R9X0zjqEH A.3988
@tk2msftngp13.p hx.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********@rog ers.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********@rog ers.com> wrote in message
news:Xn******** *************** ****@140.99.99. 130...
"i. Wiin" <ii****@yagoo.c om> wrote in news:#R9X0zjqEH A.3988
@tk2msftngp13.p hx.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********@rog ers.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.c om> wrote in message
news:u9******** *****@TK2MSFTNG P12.phx.gbl...

Simply tell me how to "pad" the data, and I will do so.
"Lucas Tam" <RE********@rog ers.com> wrote in message
news:Xn******** *************** ****@140.99.99. 130...
"i. Wiin" <ii****@yagoo.c om> wrote in news:#R9X0zjqEH A.3988
@tk2msftngp13.p hx.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********@rog ers.com)
Please delete "REMOVE" from the e-mail address when replying.
http://members.ebay.com/aboutme/coolspot18/


Nov 18 '05 #10

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

Similar topics

5
3145
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 not used Python previously and do not yet know if Python is very useful for this or if I am wasting my time. Quite frankly, I am a little bewildered. Not only is there Python, but there are many extention modules which cloud up my view as to...
9
7075
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, shadings, etc. and there are thousands on them on each graph). Have been using MS Excel, but its limitations are unbelievable (only whole number sizes, no way around a 56 color palette, only low quality jpeg files so that when I publish the...
7
2389
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 | \--------/ \--------/ Which is a result of the function call like that:
16
11883
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. I can do this individually for each graph but this does not help me as I need both on the same JPEG. I thought I would try an export the form that contains both but I am having trouble. (My VBA is self taught and a little knowledge is...
3
1368
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 want to know how can i set the default value in the combobox to Date() actvityand when i open the form it automaticaly goes to today's Date without pressing on the combo box.
2
3272
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 on extents. I can not find any information on best practices. My belief is that it doesn't matter if we max out on extents because it is temp data and once we reach the max, the current sql activity will fail and rollback (if required). In...
5
3217
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 1000 points each from a cgi contact with a remote server. (40 XMLHttpRequest calls, and 40,000 data points on which some statistics are calculated.) If the user clicks on a button, it can take as long as 10 seconds for the javascript that fires...
1
3465
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 have to made in my code <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type"...
0
962
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
10555
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10317
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
10300
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,...
1
7607
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6844
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
5636
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4277
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
3802
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2974
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.