Report Design
 Crystal Reports Forum : Crystal Reports 9 through 2020 : Report Design
Message Icon Topic: usage calculate Post Reply Post New Topic
Author Message
Jimm
Newbie
Newbie


Joined: 10 Nov 2016
Online Status: Offline
Posts: 32
Quote Jimm Replybullet Topic: usage calculate
    Posted: 07 Apr 2017 at 2:47am
Have one question about how to get totalvisits(include both with/no medicine orders) from visits only with orders:

Current(sql code for visits w orders, so usage is 100% which is incorrect)
Name               totalVisits    TotalOrders    Usage
Eric                    1               1        100%
David                   3               3        100%
Eva                     5               5        100%

Need to be:
Name               totalVisits    TotalOrders    Usage
Eric                    10              1        10%
David                   3               3        100%
Eva                     25              5        20%
IP IP Logged
Jimm
Newbie
Newbie


Joined: 10 Nov 2016
Online Status: Offline
Posts: 32
Quote Jimm Replybullet Posted: 07 Apr 2017 at 3:01am
basically there are 2 situations: (1) pull all visits, then filter what needs, or (2) only pull one with orders, but do not know how can get total visits.

Any ideas?
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.027 seconds.