Report Design
 Crystal Reports Forum : Crystal Reports 9 through 2020 : Report Design
Message Icon Topic: crystal with prompt Post Reply Post New Topic
Author Message
mahe416
Newbie
Newbie


Joined: 11 May 2010
Online Status: Offline
Posts: 3
Quote mahe416 Replybullet Topic: crystal with prompt
    Posted: 11 May 2010 at 7:26pm
Hi,

I am working on crystal reports 2008, I have query.. plz help me..

I have created a prompt for Fiscal period. In this i am not getting the perfect data.

For ex: if I want the data range from Apr 2007 to Apr2010, Its not showing the Actual data as Apr 07, May 07.......Mar 2010,
Apr 2010.

It is showing the data in alpabetic order.. as Apr2007, Apr 2008, Apr2010 only..

I am not getting the remaining data.
when i have created the prompt also its has taken tha data in alphabetic order only....

plz solve this and help me...

waiting for ur reply..

with regards,
Mahesh
IP IP Logged
Emir_W
Senior Member
Senior Member
Avatar

Joined: 25 Apr 2010
Online Status: Offline
Posts: 228
Quote Emir_W Replybullet Posted: 15 May 2010 at 10:14pm
Hi,
 
Correct me if I'm wrong.
What you need is the order for the report as 'Apr07, May07, ..., Mar08, Apr08'. Is it correct?
 
In this case, create a formula (as text) which contains yyyymm.
So it will sort by Year and month (and date if you need it).
Then sort the report based on this formula.
 
e.g.:
Totext(Year(datevar),0,'')+
if (Month(datevar))<10 then
    '0'+totext(month(currentdate),0,'')
else
    totext(month(currentdate),0,'')
 
Note: change 'datevar' with your variable/field.
 
The result will be something like '200704'  or  '200711'.
 
Then you can sort the report using this formula.
In the report hide this formula and put the date variabel.
So, it will printed as 'Apr2007', 'May2007', ..., 'Jan2008', etc.
 
 
hope it help.
 


Edited by Emir_W - 17 May 2010 at 2:39am
Emir W
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.