Technical Questions
 Crystal Reports Forum : Crystal Reports 9 through 2022 : Technical Questions
Message Icon Topic: Date Range A not in Date Range B Post Reply Post New Topic
Author Message
sammy636
Newbie
Newbie


Joined: 24 Mar 2009
Online Status: Offline
Posts: 2
Quote sammy636 Replybullet Topic: Date Range A not in Date Range B
    Posted: 24 Mar 2009 at 6:11pm
I need to have a report show a "new business user"
A new business user is identified where :
a record was ordered by them in current month(passed in via parameter )
and was not in the 12 months leading up to the current month

Report is to be run once a month.

How or can this be done with crystal reports?

Many thanks in advance!

Current Month = 03/2009

OrderUser      Date
a                    05/30/2008
a                     03/16/2009
b                     03/12/2009
c                     02/12/2009

User 'b' is a new user






Edited by sammy636 - 24 Mar 2009 at 6:19pm
IP IP Logged
DBlank
Moderator
Moderator


Joined: 19 Dec 2008
Online Status: Offline
Posts: 9053
Quote DBlank Replybullet Posted: 25 Mar 2009 at 6:19am
Group on OrderUser.
Create a formula to "flag" orders pre this month:
if datediff("M",{table.datefield},currentdate)>0 then 1 else 0
Create a Summary as a SUM on this formula field at GF1 (per OrderUSer)
Suppress anything where the SUM>0 (indicating this orderuser had an order greater than this month)
You can change your "flag" formula to day differential if you want it to be something other than just in the actual month, like 31 days.
IP IP Logged
Post Reply Post New Topic
Printable version Printable version

Forum Jump
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot delete your posts in this forum
You cannot edit your posts in this forum
You cannot create polls in this forum
You cannot vote in polls in this forum



This page was generated in 0.016 seconds.