Solved

How do I create a "group" based on a date value that may not exist in the record set?

Posted on 2014-09-10
5
133 Views
Last Modified: 2014-09-18
Gurus,

I'm stumped.  I need to create a "group" based on a date/day of week.  I know you can insert a group for a date field but I need to display all of the dates even if there are no values included in the record set.

Example:

Monday:   0 contacts created
Tuesday:  2 contacts created
Wednesday:  0 contacts created
Thursday:  5 contacts created
Friday:  0 contacts created


Any help would be greatly appreciated

Steve
0
Comment
Question by:SStroz
  • 3
  • 2
5 Comments
 
LVL 100

Expert Comment

by:mlmcc
ID: 40315563
There are really 2 ways to do this.

The easy way is to add a table to the database that has all the dates in it.  Call it AllDates.

You then use that as the first table in the report and left join your other tables to it.

DO the date filtering on the AllDates table.

The second way is a little more complex.
It involves a formula in the group header that evaluates the date from the current record and add lines for the missing dates until the current date is found.  In the report footer a similar formula is used to account for any dates after the last one in the data until the range of dates is reached.

I'll try to find my example.

mlmcc
0
 
LVL 100

Accepted Solution

by:
mlmcc earned 500 total points
ID: 40315568
Here is the sample report

mlmcc
IncludeMissingDayGroup.rpt
Missingdays.xls
0
 
LVL 7

Author Comment

by:SStroz
ID: 40318099
Michael,

I can't seem to download the files.  ??

When I click on them it opens the files in a web browser.  Right clicking asks me to "save as" htm.

Any ideas


Steve
0
 
LVL 100

Expert Comment

by:mlmcc
ID: 40318204
Sorry about that.  EE has an issue right now with some download types.

Right click the file
Click SAVE AS
Change the file type/extension (rpt for the report, xls for the data).
Click SAVE

You should then be able to open the files in the correct application

mlmcc
0
 
LVL 7

Author Closing Comment

by:SStroz
ID: 40330327
Thanks Michael!
0

Featured Post

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

Crystal Reports: 5 Tests for Top Performance It is complete, your masterpiece report.  Not only does it meet your customer’s expectations, it blows them out the water, all they want is beautifully summarised and displayed in a myriad of ways. …
Hot fix for .Net Crystal Reports 10.2.3600.0 to fix problems with sub reports running on 64 bit operating systems ISSUE: Reports which contain subreports fail with error "Missing Parameter Value" DEPLOYMENT SERVER OS: Windows 2008 with 64 bi…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple products…

706 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now