Report Design
 Crystal Reports Forum : Crystal Reports for Visual Studio 2005 and Newer : Report Design
Message Icon Topic: Find Most visited site Post Reply Post New Topic
Author Message
neha_patel
Groupie
Groupie
Avatar

Joined: 06 Oct 2010
Location: United States
Online Status: Offline
Posts: 44
Quote neha_patel Replybullet Topic: Find Most visited site
    Posted: 12 Oct 2010 at 7:31am

I am having very big problem with my this problem and i am working on this from last week and even i dnt knw that i can do this in crystal reports or not.... please help me someone

I heve five fields in my data base..... which are... most visited1,most visited2,mostvisited3,mostvisited4,mostvisited5..... and i have site's name in this fields..... in this same database table i am having Date and Store_Id.
 
i am creating report to display store information according to store_id... store_id i am taking from user parameter and same With Date range......
 
i have to show most visited 5 sites for given date range and Store_ID...... from thoes most visited1,2,3,4,5..... fields........
 
and i can not do this as count of site name....  bcoz the condition is.....
 
mostvisited1 is 5 point
mostvisited2 is 4 point
mostvisited3 is 3 point and so on
 
if from date range for 1st day if macy.com is thr at most visited1 and on second day its on 4 number thn 5+2=7..... like that i have to count for all days..... and highest 5 points will be the most visited sites... and i have to use that field in report.....
 
is any one is thr who can work on this problem?????
 
thanks
 
IP IP Logged
lockwelle
Moderator
Moderator


Joined: 21 Dec 2007
Online Status: Offline
Posts: 4372
Quote lockwelle Replybullet Posted: 13 Oct 2010 at 3:43am
I would use a subreport, or shared variables/arrays.  Either 2 arrays (1 for name of site and 1 for count) or a delimited string of name and count and increment them in the details.
in the group footer, I would parse through the values and determine the top 5.  I would then format a display with CRLF and display it in a field that 'Can Grow'
 
Hope this leads to a solution.
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.