Report Design
 Crystal Reports Forum : Crystal Reports 9 through 2022 : Report Design
Message Icon Topic: how to summary from distinctcount result Post Reply Post New Topic
Author Message
Emir_W
Senior Member
Senior Member
Avatar

Joined: 25 Apr 2010
Online Status: Offline
Posts: 228
Quote Emir_W Replybullet Topic: how to summary from distinctcount result
    Posted: 05 Oct 2023 at 2:19pm
Hi,

I have a report as below.
--------------------------------
Group1 dateadm
Group2 episodeno 1                      total visit=2 (AM, PM)
     serviceitem 1    morning (AM)
     serviceitem 2    morning (AM)
     serviceitem 1    afternoon (PM)
     serviceitem 2    afternoon (PM)

Group2 episodeno 2                      total visit=1 (AM)
     serviceitem 1    morning (AM)

Group2 episodeno 3                      total visit=1 (PM)
     serviceitem 1    morning (PM)
     serviceitem 2    morning (PM)
-----------------------------------------

I like to summarize for the total visit in group dateadm.
so, it will be like this:

Group1 dateadm       total visit=4
Group2 episodeno 1                      total visit=2 (AM, PM)
     serviceitem 1    morning (AM)
     serviceitem 2    morning (AM)
     serviceitem 1    afternoon (PM)
     serviceitem 2    afternoon (PM)

Group2 episodeno 2                      total visit=1 (AM)
     serviceitem 1    morning (AM)

Group2 episodeno 3                      total visit=1 (PM)
     serviceitem 1    afternoon (PM)
     serviceitem 2    afternoon (PM)

=======================================


How to achieve it?


thanks in advance.
emir_w      

Edited by Emir_W - 05 Oct 2023 at 2:24pm
Emir W
IP IP Logged
Emir_W
Senior Member
Senior Member
Avatar

Joined: 25 Apr 2010
Online Status: Offline
Posts: 228
Quote Emir_W Replybullet Posted: 05 Oct 2023 at 3:53pm
note:
Total Visit using formula distinctcount(sessionAMPM, episodeno)
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.047 seconds.