Print Page | Close Window

Find Most visited site

Printed From: Crystal Reports Book
Category: Crystal Reports for Visual Studio 2005 and Newer
Forum Name: Report Design
Forum Discription: The best way to design a report and problems you have encountered
URL: http://www.crystalreportsbook.com/forum/forum_posts.asp?TID=11396
Printed Date: 21 Apr 2025 at 10:19am


Topic: Find Most visited site
Posted By: neha_patel
Subject: Find Most visited site
Date 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
 



Replies:
Posted By: lockwelle
Date 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.



Print Page | Close Window