Suppress Duplicates and Summarize (Count)

Hello,
I am somewhat new to Crystal Reports. I am trying to do a couple things that I cannot figure it out. Please help.
1. Trying to count a field {JobHours.JobNumber} without the duplicates. I have suppressed the duplicates on the field and the summary is still counting them. Group # 3 Name: JobType.Description
     I could not figure it out so I created also created this formula: {@JobNoDuplicate}
     numberVar X :=1 ;
     if ({JobRecord.Jobnumber}) = previous({JobRecord.Jobnumber}) then 0 else 1
     It works but it wont let me summarize the {@JobNoDuplicate}.
2. My report is grouped by the "start date" then by the "contractor name" then again by the "job type". I need to count the number of jobs that were planned but its in another crystal report. I dont know how to get the information on this report without messing up all my data/fields.
Please help and thank you.

Hi Nicole,
Create a formula with this code:
DistinctCount({JobNumber})
That should give you the count of Job numbers without the duplicates.
If you're trying to find out count of Job Numbers for each group, then just change the code to:
DistinctCount({JobNumber}, {group field})
For the second question, please post that as a new discussion per SCN's rules.
-Abhilash

Similar Messages

  • Suppress duplicate notifications if member and manager in assignment group are same

    Hello All,
    We are currently using out of the box notification mechanism in HPSM 9.32. I have added few notifcations for SD, IM, CM and PM Modules.
    I would like to know if there is a way to suppress duplicate email notification being sent to the same person if he/she is of the member as well as manager or coordinator of the same group.
    Currently HPSM is sending 2 emails notifications to the same person one which configured to be sent to the manager of the group and another to the assignment group. Hence, manager is also one of the member in the assignment then he is getting 2 email notifications.
    I need your assistance in suppressing such duplicate email notifications.
    Regards,
    NSEIL

    I have CRXI, so the instructions are for this release
    you can create a formula, I called it cust_Matches
    if = previous () then 'true' else 'false'
    IN your GH2 section, right click the field, select format field, select the common tab (far left at the top)
    Select the x/2 to the right of Supress  in the formula field type in
    {@Cust_Matches} = 'true'
    Now every time the {@Cust_Matches} is true, the CustID should be supressed,
    do the same with the other fields you wish to hide.  Ie Address, City, etc.

  • How to suppress duplicate records in rtf templates

    Hi All,
    I am facing issue with payment reason comments in check template.
    we are displaying payment reason comments. Now the issue is while making batch payment we are getting multiple payment reason comments from multiple invoices with the same name and it doesn't looks good. You can see payment reason comments under tail number text field in the template.
    If you provide any xml syntax to suppress duplicate records for showing distinct payment reason comments.
    Attached screen shot, template and xml file for your reference.
    Thanks,
    Sagar.

    I have CRXI, so the instructions are for this release
    you can create a formula, I called it cust_Matches
    if = previous () then 'true' else 'false'
    IN your GH2 section, right click the field, select format field, select the common tab (far left at the top)
    Select the x/2 to the right of Supress  in the formula field type in
    {@Cust_Matches} = 'true'
    Now every time the {@Cust_Matches} is true, the CustID should be supressed,
    do the same with the other fields you wish to hide.  Ie Address, City, etc.

  • Need help-SQL with result format suppressing duplicate values

    I am trying to write a SQL which would select data from the below tables(in reality i have many other tables also) but I wanted to know how do i get the data in the format given below.
    The scenario is :-A training_plan can N no. of OBJECTIVES and EACH objective has N no.of activities
    Insert into TEST_TRAINING_PLAN
       (TPLAN_ID, TPLAN_NAME, TPLAN_DESC, T_PERSON_ID
    Values
       ('111', 'test_name', 'test_name_desc', '****')
    Objectives table:-
    Insert into TEST_TRAINING_OBJECTIVE
       (T_OBJECTIVE_ID,  T_OBJECTIVE_NAME,T_owner)
    Values
       ('10', 'objective1', '1862188559')
    Objective and Training Plan relationship table where TPLAN_ID is the foreign key.
    Insert into TEST_TP_OBJECTIVE
       (TPLAN_TOBJ_ID, TPLAN_ID, T_OBJECTIVE_ID, 
        REQUIRED_CREDITS)
    Values
       ('1', '111', '10',5)
    Objective and Activity relationship table where T_OBJECTIVE_ID is the foreign key from the TEST_TRAINING_OBJECTIVE table.
    Insert into TEST_TRAIN_OBJ_ACTIVITY
       (TOBJ_TRAIN_ACTIVITY, T_OBJECTIVE_ID, ACTIVITY_ID, IS_REQUIRED, STATUS,
        ACTIVITY_TYPE, ITEM_ORDER, IS_PREFERRED)
    Values
       ('1000', '10', 'selfstudy event', SS1, NULL,
        'Event', 0, 0);
    Insert into TEST_TRAIN_OBJ_ACTIVITY
       (TOBJ_TRAIN_ACTIVITY, T_OBJECTIVE_ID, ACTIVITY_ID, IS_REQUIRED, STATUS,
        ACTIVITY_TYPE, ITEM_ORDER, IS_PREFERRED)
    Values
       ('1001', '10', 'SQLcourse', 1, NULL,
        'Course', 1, 0);
    Insert into TEST_TRAIN_OBJ_ACTIVITY
       (TOBJ_TRAIN_ACTIVITY, T_OBJECTIVE_ID, ACTIVITY_ID, IS_REQUIRED, STATUS,
        ACTIVITY_TYPE, ITEM_ORDER, IS_PREFERRED)
    Values
       ('1002', '10', 'testSQL', 1, NULL,
        'test', 2, 0);
    COMMIT;
    firstname     emplid     Tplan name     Number of activities/credits completed(for TP)     Objective Name     Number of required activities/Credits (for objective)     Number of activities/credits completed(for objective)     activity  name     activity completion status
    U1     U1     TP1     5                         
                        OBJ1     4     3     C1     PASSED
                                       C2     PASSED
                                       C3     WAIVED
                                       T1     ENROLLED
                                       T2     ENROLLED
                        OBJ2     3     2          
                                       S1     ENROLLED
                                       S2     PASSED
                                       T3     WAIVED
    U1     U1     TP2                         C4     INPROGRESS
                   50     OBJ11     50     30     C11     PASSED
    **The second row where we have another training_plan record and accordingly all objectivesand their objective.**similarly ,i need to display many Training_plan records in such tabular format.Please help with the SQL query to select and display data in the above format
    If you want to suppress duplicate values in some of your results columns
    I am using toad 9.1 using Oracle 10g version 2

    Hi,
    You can use the BREAK command to suppress duplicate values.
    http://download.oracle.com/docs/cd/B19306_01/server.102/b14357/ch12009.htm#SQPUG030
    (scroll down for an example)
    It's a 'SQL*Plus-ism', not sure if TOAD's capable to handle it.
    Simple example:
    HR%xe> break on department_name
    HR%xe> select l.department_name
      2  ,        e.last_name
      3  ,        e.first_name
      4  from     departments l
      5  ,        employees e
      6  where    e.department_id = l.department_id;
    DEPARTMENT_NAME                LAST_NAME                 FIRST_NAME
    Executive                      King                      Steven
                                   Kochhar                   Neena
                                   De Haan                   Lex
    IT                             Hunold                    Alexander
                                   Ernst                     Bruce
                                   Austin                    David
                                   Pataballa                 Valli
                                   Lorentz                   Diana
    Finance                        Greenberg                 Nancy
                                   Faviet                    Daniel
                                   Chen                      John
                                   Sciarra                   Ismael
                                   Urman                     Jose Manuel
                                   Popp                      Luis
    Purchasing                     Raphaely                  Den
                                   Khoo                      Alexander
                                   Baida                     Shelli
                                   Tobias                    Sigal
                                   Himuro                    Guy
                                   Colmenares                Karen
    Shipping                       Weiss                     Matthew
                                   Fripp                     Adam
                                   Kaufling                  Payam
                                   Vollman                   Shanta
                                   Mourgos                   Kevin
                                   Nayer                     Julia
                                   Mikkilineni               Irene
                                   Landry                    James
    Public Relations               Baer                      Hermann
    Accounting                     Higgins                   Shelley
                                   Gietz                     William
    106 rijen zijn geselecteerd.

  • Aperture Imports Duplicates and Triplicates of Photos from my iPhone 6 Plus

    When I import photos from my iPhone 6 Plus, Aperture imports duplicates and triplicates of the identical photo randomly.  This results in hours of going back through all of the Projects in Aperture and manually deleting the duplicates.
    I thought that maybe I was mistaking standard and HDR versions of the same photo, or even burst shots that looked very similar, but this isn't the case.  It is the same file name followed by a (1), (2), and sometimes a (3).  I also know this isn't the case, because my Camera Roll has about 1,200 photos and videos on it (I stopped importing photos to my hard drive a while ago because of the duplicates, hoping an update would come out to fix the problem), but Aperture tells me that it is going to import over 4,000 photos from my iPhone 6 Plus, not the 1,200 that is on it.  This is because of a bug that is double and triple counting many of the photos and videos.
    Interestingly enough, Image Capture recognizes only the 1,200 photos on the iPhone, but I'm reluctant to use it because it won't append the Metadata that I have preset in Aperture or automatically run the preset enhancements.  I also don't use Image Capture so I'm not sure if it might leave out any Metadata or have some other drawback that I'm not aware of.
    So far I've don't he standard troubleshooting, have restarted my iMac and iPhone 6 Plus, ran repair permissions, waited for an update, etc. but I still have the same problem.
    I've all but given up on Aperture and am waiting anxiously for the Apple to release the new Photos software, but I need to spend time to work around this bug before then.  I can't leave this many photos and videos on my iPhone and need to get them imported into Aperture.
    Is there an obvious fix to this that I'm overlooking?

    Interestingly enough, Image Capture recognizes only the 1,200 photos on the iPhone, but I'm reluctant to use it because it won't append the Metadata that I have preset in Aperture or automatically run the preset enhancements.  I also don't use Image Capture so I'm not sure if it might leave out any Metadata or have some other drawback that I'm not aware of.
    If Image Capture imports correctly, use it to import to a folder and then import that folder to Aperture. You can use the same presets when importing from a folder as when importing from a camera of iPhone.
    The same buggy behavior has been reported for iPhoto, since the iOS 8.1 release. It happens in iPhoto, Image Capture, Aperture, but not all are seeing this problem.
    For example, see these discussions:
    iPhoto Yosemite duplicates Photos while importing from iPhone
    iPhoto 9.6 shows duplicate photos present on iPhone
    Connecting iPhone duplicates photos in iPhoto
    duplicate photos in camera roll on iPhoto
    Unfortunately, there is no clear picture yet, what circumstances will make it happen, and how to prevent it.
    For some forum members it was the Photo Stream (Duplication upon importation from Iphone to Iphoto), others found it was caused by HDR photos, for some the problem went away after the 8.1.2 update, for others it started with this update.
    A few forum members reported, that it helped to dismount the iPhone and plug it in again (iPhoto 9.6 shows duplicate photos present on iPhone), and then the duplicates went away. One member reported, that Apple Support claimed this problem to be caused by iCloud iPhoto libary (Beta), and indeed turning off iCloud iPhoto libary (Beta)  made he duplicates vanish for him.

  • Looking for alternative formulas to suppress duplicates through Section Expert

    I'm using version 14.0.2.364 CR and having trouble building a customized treatment plan report for our case workers to manage to filter out duplicates. I'll do my best to give a layout and criteria:
    GH: CDCLIENT.SAI_ID    STAFF.SORT_NAME
    Case #
    First Name
    Last Name
    Home Phone
    DOB
    Tx Plan Start Date
    Tx Plan End Date
    CDCLIENT.CASE_NUM
    CDCLIENT.FIRST_NAME
    CDCLIENT.LAST_NAME
    CDCLIENT.PHONE
    CDCLIENT.DOB
    PLAN.BEG_DATE
    PLAN.END_DATE
    GF: CDCLIENT.SAI_ID    STAFF.SORT_NAME
    The problem is that when pulling data for each client, it will bring forward all their tx plans, but I just want to show the newest one. I was inclined to go to section expert > Select Details > Suppress (No Drill down) and in X-2, put the following:
    if {CDCLIENT.CASE_NUM} = next({CDCLIENT.CASE_NUM}) then true else false
    This will suppress duplicate records ONLY if I have this sorted by Case #. The problem is, we want to sort by Tx Plan End Date, so case workers can identify which clients are coming up for expiring tx plans. The way the data is stored, I have the first 5 columns from one table, and the last two in another. I also tried to format the field, go to "Commons" on CASE_NUM and choose Suppress (if Duplicated) in combination with the Section Expert, but it was still pulling both if I have it the sort order start at PLAN.END_DATE.
    Is there a way to preserve the most recent begin / end date and suppress any duplicates without sorting it by case #?

    Jamie Wiseman wrote:
    or in the case of your report use this as the suppression formula...sorry again about the original code.
    {AZCLPLAN.BEG_DATE} <> maximum ({AZCLPLAN.BEG_DATE}, {CDCLIENT.SAI_ID})
    The problem with this suppression is that for each Case Worker (Group) it is only pulling one client record forward, thus suppressing all other multiple unique clients associated with this caseworker.
    What my original report (before your suggestions is this):
    Case Manager Name (group CDCLIENT.SAI_ID)
    CDCLIENT.CASE_NUM
    CDCLIENT.FIRST_NAME
    CDCLIENT.LAST_NAME
    CDCLIENT.PHONE
    CDCLIENT.DOB
    PLAN.BEG_DATE
    PLAN.END_DATE
    1
    Client A
    Client A
    111-111-1111
    01/01/11
    01/01/2013
    01/01/2014
    2
    Client B
    Client B
    222-222-2222
    02/22/22
    02/02/2013
    02/02/2014
    3
    Client C
    Client C
    333-333-3333
    03/31/33
    03/03/2013
    03/03/2014
    1
    Client A
    Client A
    111-111-1111
    01/01/11
    01/01/2014
    01/01/2015
    4
    Client D
    Client D
    444-444-4444
    04/04/44
    04/04/2014
    04/04/2015
    Notice, it finds two records for Client A, because they are an existing client that needs continuous treatment. The caseworker doesn't need to see the older record for Client A, but also needs to see all other unique records.
    I basically want it to suppress the first row (older treatment plan) for Client A and have it display like this in conjunction with all other unique clients:
    Case Manager Name (group CDCLIENT.SAI_ID)
    CLIENT.CASE_NUM
    CDCLIENT.FIRST_NAME
    CDCLIENT.LAST_NAME
    CDCLIENT.PHONE
    CDCLIENT.DOB
    PLAN.BEG_DATE
    PLAN.END_DATE
    2
    Client B
    Client B
    222-222-2222
    02/22/22
    02/02/2013
    02/02/2014
    3
    Client C
    Client C
    333-333-3333
    03/31/33
    03/03/2013
    03/03/2014
    1
    Client A
    Client A
    111-111-1111
    01/01/11
    01/01/2014
    01/01/2015
    4
    Client D
    Client D
    444-444-4444
    04/04/44
    04/04/2014
    04/04/2015
    What your Section Expert + Summary Code did, was essentially this:
    Case Manager Name (group CDCLIENT.SAI_ID)
    CLIENT.CASE_NUM
    CDCLIENT.FIRST_NAME
    CDCLIENT.LAST_NAME
    CDCLIENT.PHONE
    CDCLIENT.DOB
    PLAN.BEG_DATE
    PLAN.END_DATE
    4
    Client D
    Client D
    444-444-4444
    04/04/44
    04/04/2014
    04/04/2015
    Maximum
    04/04/2015
    Let me know if this is possible.

  • HT2905 The duplicate option has been removed from the latest version of Itunes. I have over 1000 duplicates and need to have a multiple duplicate removal option. How do i do that?

    I have over 1000 duplicates in both my files and in the Itunes library. The duplicate function appears to have been removed from teh latest version of Itunes. How do I identify and remove multiple duplicates from my library and my music file

    The show duplicates/show exact duplicates features have been left out of iTunes 11.0. Rumor suggests they will be restored in the next build. In the meantime I have written two Windows scripts to make playlists of Duplicates and Exact Duplicates, either from a selection of tracks or the entire library. Note that, as with the iTunes feature, this list makes no distinction between "originals" and "dupes", you have to decide which is which.
    There is also my DeDuper script for automatically removing duplicate copies but keeping one remaining copy of each set. This can preserve ratings, play counts, playlist membership, etc. which are lost in a manual clean up. Please take note of the warning to backup your library before deduping. See this thread for background on deduping and the script.
    If you want to manually remove duplicate tracks use shift-delete to remove selected tracks from the library as well as the playlist. Keep one of each repeated group of files and don't send the others to the recycle bin unless you are sure that there are multiple files on the disc as opposed to multiple entries to the same file. Same advice to backup applies.
    tt2

  • Problem with Group policies and Administrator count

    I have one problem with Group policies and Admnistrator count.
    Win XP, Client 4.91, Client Zen 4
    I use DLU for users.
    the Group policies are well applied and i keep them after logout for
    security reasons.
    But my problem is, after logout, the Administrator count becomes this
    Group policies, and the only technique that I use, is to remove the
    repertories c:\windows\system32\GroupPolicy*. Administrator must
    loguing again for having good policies.
    Can you help me?

    Bill,
    It appears that in the past few days you have not received a response to your
    posting. That concerns us, and has triggered this automated reply.
    Has your problem been resolved? If not, you might try one of the following options:
    - Do a search of our knowledgebase at http://support.novell.com/search/kb_index.jsp
    - Check all of the other support tools and options available at
    http://support.novell.com.
    - You could also try posting your message again. Make sure it is posted in the
    correct newsgroup. (http://support.novell.com/forums)
    Be sure to read the forum FAQ about what to expect in the way of responses:
    http://support.novell.com/forums/faq_general.html
    If this is a reply to a duplicate posting, please ignore and accept our apologies
    and rest assured we will issue a stern reprimand to our posting bot.
    Good luck!
    Your Novell Product Support Forums Team
    http://support.novell.com/forums/

  • My new icloud acct on my imac is duplicating entries in calendar from my ipad; how do I get rid of the duplicates and how do I get one calendar to be the main one to start with

    I've just installed Mavericks on my iMac and now my calendar has duplicate and now sometimes tripled events by syncing with my ipad mini regardless of whether the item already existed in the iMac calendar already. How do I remove the duplicates? It was being able to sync calendars and contacts which was one of my reasons for moving from Snow Leopard to Mavericks and now it's a mess.

    Crista70, What is happening is you now have 2 calendars with the entries in them. If you go into View, then Show Calendar List, you will see all your calendars. Uncheck the ones listed as "From My Mac" or uncheck the ones listed as "iCloud" and they will no longer show as duplicates. Personally, I prefer unchecking the "From My Mac" calendars so that my calendars are all synced across the devices.

  • Hey How Do I Get Group Message On The IPhone 4s because some reason it doesn't want to show . First i did is setting then messages  it only show imessage and message count )HELP)

    ey How Do I Get Group Message On The IPhone 4s because some reason it doesn't want to show . First i did is setting then messages  it only show imessage and message count )HELP)

    At the bottom of the page Settings > Messages you should have a section headed "SMS/MMS" Turn MMS messaging on then you can turn group message on.

  • How can I import playlists, ratings, and play counts from an old iTunes library into a new one?

    After reading countless threads re: how to get the iTunes artwork screensaver to work, I decided to delete my iTunes library file and reimport all of music which resulted in fixing the iTunes artwork screensaver.  Unfortunately (and expectedly), my playlists, playcounts, and other information were lost with the creation of a new library.  Is there any way to import the playlists, ratings and play counts for my music from an old library file to my current one?  I realize this may be complex, but I'm up for the task.
    Thanks in advance,
    B

    I can't begin to describe how frustrating the screensaver issue has been for me (and I suspect countless others, judging by the number of threads on the topic). 
    I took your advice, though, just to test it.  After backing up my current library.itl, I copied and pasted the old .itl file into its place.  As expected the playlists, play counts, etc were instantly restored.  And now the screensaver fails to work with the dreaded error 'No iTunes artwork found' which makes me think it IS an issue with the old library file.  The only work around I've seen so far is to rebuild the library (which I did). 
    I'm afraid I'm going to be forced into choosing either a working screen saver or all my itunes data.  Very frustrating indeed.
    Here's a link to the 'definitive' fix for the screensaver, if you're interested.
    https://discussions.apple.com/thread/3695200?start=0&tstart=0
    Thanks again,
    B

  • How can i remove duplicates and certain contacts on Outlook and my iPhone?

    I use the Outlook mail and contact program on my PC with a Windows 7 operating system, which I sync with my iPhone5.
    After installing the iCloud program, I now have duplicate and sometimes quadruplicate contacts.
    1. How can I remove the duplicates?
    2. How can I be selective about which contacts I want to share on iCloud, in other words, can I share only certain contact categories/folders like work contacts or personal contacts?
    3. How can I "uncloud" specific contacts and have them appear only on my computer and not on my iPhone?
    4. Is there a way to restore accidently deleted contacts?
    Thanks for any help you can give.

    Connect the device to the computer.
    Select what is desired to sync.
    Sync.

  • Ordering of objects by more than one field and get counts

    i have an object visit (personid, city, street, place, date)
    A person could have visited a same place in the same strret in the same city several times on different dates.
    I have a visits 'Set' for a person and I have to get a count of visits he has done to a place..
    its basically select count(visits) group by city, street , place.
    I know to use interface comparator for a single field.. how to compare multiple fields and get counts??
    if you know abt where i can find information please let me know.
    Thanks.

    For multiple fields, your comparator compares the most significant field first. If they're unequal, it returns +/- accordingly. If they're equal, then it moves on to the next field. And so on, until, finally, if all the relevant fields are equal, then the objects are equal.
    Just like what you do when comparing, say, last names. If the first letters are unequal, you're done, else move onto the next letter, and so on..
    For the count, you wouldn't use a comparator, as that's for sorting. Exactly how you do it depends on the details of what you're storing and how, which you haven't provided.

  • Suppressing Warning and Error Dialogs in 8.2

    All
    I am looking into whether or not it is possible to suppress warning and error dialogs within a form created by LiveCycle Designer 8.2.  I am aware this functionality is easily configurable within ES2 - which is the driver behind why I would like to get it working in some form within 8.2.  Essentially, I would like no dialog boxes to appear unless explicitly done so via script.
    Any ideas?

    Just thought I would reach out one last time on this topic.  To be more specific, I am looking for a means by which to "turn off" dialogs within a Designer 8.2 form.  I still wish to use Validation patterns and perhaps Validation scripts but I don't want any dialog boxes to appear should any pattern or script be violated.
    Any help would be appreciated.
    Thanks in advance!

  • I want to move the location of my iTunes library music files. At present they are all on my time machine . I want to move them all to my imac. Can I do that and keep all my playlists and play counts? Thanks in advance

    I want to move the location of my iTunes library music files. At present they are all on my time machine . I want to move them all to my imac. Can I do that and keep all my playlists and play counts? Thanks in advance
    its 1000s of songs . Originally I used the time machine as a networked drive but it can cause the songs to pause so I'm thinking it would be better to have the songs on the internal imac drive
    how can I move the songs so I can re-open iTunes and the playlists (with plays in the 100s) find the song in the new place?

    Do you mean on your Time Machine backup drive? Or are you actually accessing the backup? In either case you shouldn't be doing that. If you haven't space on your HDD to store the iTunes Library, then at least put it on another external drive.
    Since you did not provide any information about what's actually "on my time machine," here's what you would do. The entire iTunes folder should be stored in the /Home/Music/ folder. Within that folder you would have three folders: imm Media, iTunes, and iTunes Playlists.

Maybe you are looking for