Technical Questions
 Crystal Reports Forum : Crystal Reports 9 through 2022 : Technical Questions
Message Icon Topic: Get access to linked elements in formula Post Reply Post New Topic
Author Message
Romanzes
Newbie
Newbie


Joined: 11 Jan 2013
Online Status: Offline
Posts: 2
Quote Romanzes Replybullet Topic: Get access to linked elements in formula
    Posted: 11 Jan 2013 at 1:01am
Hello. I'm making a report using Crystal Reports 2008 and Peachtree database. Report should display customers who didn't place orders in a last 30 days. I already figured out how to link two tables in CR with left outer join. But I wasn't able to find how that linking can be used in formulas, such as selection formula. What am I trying to achieve is to get date of last placed order for current customer and use this information to determine if customer should be displayed or not. What is the right approach to solving this problem?

Edited by Romanzes - 11 Jan 2013 at 1:01am
IP IP Logged
Sastry
Moderator
Moderator
Avatar

Joined: 16 Jul 2012
Online Status: Offline
Posts: 537
Quote Sastry Replybullet Posted: 11 Jan 2013 at 3:58am
hi
 
--Create a grop on customers
 
--Sort by order date
 
--Pick the last order date for each customer and compare with your date field.
 
Ex.  if Maximum(Order_date},{Customers}) <  date(2013,01,01) Then "Not Active" else "Active"
Thanks,
Sastry
IP IP Logged
Romanzes
Newbie
Newbie


Joined: 11 Jan 2013
Online Status: Offline
Posts: 2
Quote Romanzes Replybullet Posted: 12 Jan 2013 at 6:09am
Sastry, thank you very much, I'll try this.
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.031 seconds.