How to calculate Sum of records that are not Suppressed

Hi All Experts,
I have Created A layout for SAP B1 in crystal report.Because of Some Condition I have  to Suppress Detail Section.
The Suppress Condition is As Follows
{ExcisePur.ItemCode}=Previous({ExcisePur.ItemCode}) And {ExcisePur.Batchnum}=Previous({ExcisePur.Batchnum})
And it is Working Fine,the Desired Detail Section is Suppressed.
Now I Have to take Sum of Records ,But that records are also Calculated which are Suppressed.
For these I have Read Several post where someone had same problem,
there they have Asked to Create A Running Total And use the Formula in evaluate section same as in Suppress Condition but opposite of it.
I did the same thing using these Formula
{ExcisePur.ItemCode}<>Previous({ExcisePur.ItemCode}) And {ExcisePur.Batchnum}<>Previous({ExcisePur.Batchnum})
But it is Calculating only the Suppressed Record But Not the Record which is to be Calculated.
Please help me to Accomplish this.
I am very Much blank where I am  going wrong.
Regards,
Gayatri Shukla

Hi Gayatri,
I'm not too sure why this isn't working as the logic seems correct.
Here's another way to do this:
1) Create another formula and place this on the Details Section:
whileprintingrecords;
numbervar x;
if onfirstrecord then
x := {Field_to_summarize}
else if {ExcisePur.ItemCode} <> Previous({ExcisePur.ItemCode}) And {ExcisePur.Batchnum} <> Previous({ExcisePur.Batchnum}) then
x := x + {Field_to_summarize};
2) Create another formula and place this on the Report Footer:
whileprintingrecords;
numbervar x;
-Abhilash

Similar Messages

  • How to get master data records that do not have transaction data in a query

    Hi,
    How to get master data records that do not have transaction data in a query output. Can we create a query or any other way to get the master data records that do not have transaction data?

    Hi,
    Create a multiprovider which includes transactional data target and master data info object. Make sure that identification for this master data info object is ticked on both the provider.
    Create report on this multiprovider , keep the master data info object in rows , and now you should able to see all the values which are there in master data info object irrespective of transaction happened or not .
    Next you may create condition showing only zero keyfigure values , ie. master data without any transaction.
    Hope that helps.
    Regards
    Mr Kapadia

  • How to select all the people that are not in any equipe  ?

    Hi,
    I have a nice SQL expression that gives me as a result all the "AGENTS" (people) that are working in an EQUIPE (a team)
    select a."AGENT_ID",
    a."NOM" || ' ' || a."PRENOM" "Nom",
    c.libelle "Equipe",
    a."DATE_EMBAUCHE" "Date embauche",
    a."DATE_DEBAUCHE" "Date débauche"
    from OBSERVATOIRE."AGENT" a,
    observatoire.equipe_agents b,
    observatoire.equipe c
    where a.agent_id = b.agent_id
    and b.equipe_id = c.equipe_id
    order by nom
    Now, how to select all the agents that are NOT working in any "EQUIPE" (team) ?
    I have tried but could not succeed !
    Thank you for your kind help.
    Christian

    Christian from France wrote:
    It is not working because the table EQUIPE_AGENTS does not contains a row if the agent is not into any equipe.
    CREATE TABLE "OBSERVATOIRE"."EQUIPE_AGENTS"
    (     "EQUIPE_AGENTS_ID" NUMBER NOT NULL ENABLE,
         "EQUIPE_ID" NUMBER NOT NULL ENABLE,
         "AGENT_ID" NUMBER NOT NULL ENABLE)
    CREATE TABLE "OBSERVATOIRE"."AGENT"
    (     "AGENT_ID" NUMBER NOT NULL ENABLE,
         "GRADES_ID" NUMBER NOT NULL ENABLE,
         "NOM" VARCHAR2(50 BYTE) NOT NULL ENABLE,
         "PRENOM" VARCHAR2(50 BYTE),
         "DATE_EMBAUCHE" DATE NOT NULL ENABLE,
         "DATE_DEBAUCHE" DATE)
    The only way to "know" if an agent is not into any equipe (team) is to search into the EQUIPE_AGENTS table, and if we do not find the ID of the agent into this table, then we know that this agent is not into any EQUIPE (team).
    I don't know ho to translate this into SQL.And that's what my query does. It uses an OUTER JOIN so that a result record is returned whether or not there is a record in EQUIPE_AGENTS. And the check for EQUIPE_ID is NULL restricts the result set to those where there IS NOT a record in EQUIPE_AGENTS.
    A more traditional way would be to use NOT IN or NOT EXISTS clauses, but they can prove inefficient.

  • Omit notes during MIDI recording that are not in defined scale

    I'm looking for a way to do the following in Logic, but am not sure how to set this up. I want to be able to:
    1. Create a new midi track
    2. In selected midi track, select a scale (for example, Pentatonic Minor)
    3. Press record
    4. During recording, only notes played from Pentatonic Minor scale would "register" (make a sound) and be recorded. All other notes pressed on midi controller that are not in Pentatonic Minor would not "register" nor be recorded in the sequencer.
    Additionally helpful would be that in the piano roll sequencer after recording, I could only drag notes up or down along the Pentatonic Minor scale. In other words, I would not be allowed to drag a recorded note to another note that is not in Pentatonic Minor. If a note was dragged onto a "disabled" note, it would automatically snap to its nearest neighbor note in the Pentatonic Minor scale. Additionally useful would be to have all disabled notes (notes that are not in the Pentatonic Minor scale) appear to be disabled (grayed out) in the piano roll sequencer.
    If this is not possible, is there any feature in Logic that will get me close to doing what I want? If not, is there any other sequencer that does this? I know this is something I could probably do in Max, but I was hoping to be able to do it in Logic. Thanks.

    Patch this between the PhysicalIn and the SequencerIn in the Environment:
    !http://home.arcor.de/fuzzfilth/Other/mod.png!
    Get it here:
    http://home.arcor.de/fuzzfilth/Other/Modulator.zip
    Christian

  • Best approach to delete records that are not in the source table anymore.

    I have a situation where I need to remove records from dimensions that are not in the source data anymore. Right now we are not maintaing history, i.e. not using SCD but planning for the next release. If we did that it would be easy to figure the latest records. The load is nightly and records are updated and new added.
    The approach that I am considering is to join the dimension tables the the sources on keys and delete what doesn't join. However, is there perhaps some function in OWB that would allow to do this automatically on import so it can be also in place for the future?
    Thanks!

    Bear in mind that deleting dimension records becomes problematic if you have facts attached to them. Just because this record is no longer in the active set doesn't mean that it wasn't used historically, and so have foreign key constraints on it in your database. IF this is the case, a short-term solution would be to add an expiry_date field to the dimension and update the load to set this value when the record disappears rather than to delete it.
    And to do that, use the target dimension as a source table, outer join it to the actual source table on the natural key, and so your update will set expiry_date=nvl(expiry_date,sysdate) to set to sysdate if this record has not already been expired on all records where the outer join fails.
    Further consideration: what do you do if the record is re-inserted into the source table? create a new dimension key? Or remove the expiry date?
    But I will say that I am not a fan of deleting records in most circumstances. What do you do if you discover a calculation error and need to fix that and republish historical cubes? Without the historical data, you lose the ability to do things like that.

  • Best way to obtain records that are NOT in another table

    I have two rather large tables in oracle. An Account table that has millions of rows. Each account may be enrolled into a particular program and therefore can also be in an Enrollment table, also with millions of rows. I'm trying to find the most optimal way to find any accounts in ACCOUNT that are NOT in the Enrollment table.
    I was doing something like this:
    select /*+ index(ACCOUNT idx_acct_no) */
    a.acct_no
    from ACCOUNT a
    where a.acct_no not in (Select e.acct_no from ENROLLMENT e);
    This takes a VERY long time to execute, even though I am using the index.
    I even tried to use the PK on the ACCOUNT table, as it is also a FK on the ENROLLMENT table as such:
    select a.acct_no
    from ACCOUNT a
    where a.id not in (Select e.id from ENROLLMENT e);
    this too takes too long to get back (if at all).
    Is there a better way to do this selection please?

    Well if you have the energy to type in the whole list, the syntax you've given will work, unless you blow the permitted number of elements.
    But a practical solution would be to turn the list into a table. You still haven't got the hang of this "giving us enough information" concept, so let's presume:
    (1) you're on a version of the databasse whoch is 9i or higher
    (2) you have this list in a file of some sort.
    In which case use an external table or perhaps a pipelined function to generate output which can be used in a SQL statement.
    If neither of these solutions works for you please provide sufficient information for us to answer your question correctly. Your future co-operation is appreciated.
    cheers, APC

  • How to create an XSD for file adaptor which will ignore the records that are not required.

    Hi All,
       I have a requirement, the Fixed Length file contains
    30013742387462382938742      82347023984623087   
    30037348237  983743  9837423098  98347 
    10108472398   98034702398409238 9838472398   09823409238
    300163527 387462398746 38746293874693746324763
    101037642873643 37438724683746837648 873648736
    200138743986493874398
    2002738469837246
    10003784629837469283746937463987469387
    I need to select only the records that startswith 3001 and 3003 which are of different types and ignore the remaining records like 1010,2001,2002,1000.
    Can any one help me on this.

    You can make use of "conditionValue" or "startsWith" attributes while designing you native XSD.
    Check this example - Native Format Builder Wizard - 11g Release 1 (11.1.1.6.3) for better understanding.

  • How do I save autocomplete addresses that are not in my contacts

    My girlfriend uses my iPad running 4.3.3 firmware. When sending email, it auto-fills frequently used addreses, most of which are not stored as contacts in the address book. I want to upgrade the iPad to the latest firmware. Is there any way to back this up? You never know what you need until you type that name you type every day to send an email and it doesn't show up - that happened to me after upgrading my phone from iOS6 to iOS7.
    So is there any way to either a) force all the autocomplete emails to become actual entries in the Address book that can be backed up, or b) transfer all those addresses somewhere and restore after upgrading?
    Thanks!

    Anyone?
    Perhaps another non-Apple Utility can delete the orphan files?

  • HT201272 How do I download audio books that are not on my purchased list? That I have purchased.

    I have purchased a few audio books on iTunes and in the process of upgrading the audio is no longer on my iCloud account. How do I get these books back? The books are in my purchase history. But iTunes would make me pay for them again if I get it from there.

    Audiobooks are currently a one-time only download, so they won't appear in the cloud for re-downloading. Have you not got a copy of them on your computer and/or on a backup ? If not then you can try contacting Apple, but they are under no obligation to let you re-download them : http://www.apple.com/uk/support/itunes/contact/

  • How to remove Business content objects that are not required?

    Hi all of you,
    I had extracted some of the objects from business content from FI such as General LEdger and Asset Accounting. After extracting it, my c drive is full and I am not able to open any other file. So I want to remove these FI objects that I had extracted from Business Content. Can any one please guide as to how should I remove these already loaded Business content objects?
    Thank you.
    TR.

    Hi,
    You can right click on the objects (unused) and delete.
    actually when you activate business content its version is changes from "D" Delivered to "A" Active but these objects will always be available as D version to you. Even if you delete the activated objects now & need those in future you can reactivate them.
    hope it helps
    Regards
    Vikash

  • How can I delete suggested contacts that are not in my contact list?

    I inadvertently sent an email "reply all.". Now all 50 people show up when I get suggested recipients.  How can I delete them?

    Unfortunately, there is no way to delete those contacts in the current iOS - at least as far as I know. You just have to ignore them and eventually they will at least go to the bottom of the suggestion list that pops up in mail.

  • How can I delete flagged emails that are not visible in my account boxes?

    Currently I show 43 flagged emails but not in any of my accounts is there a flag.  I am not sure if I deleted them early in learning to use my iphone 4s or what.  Certainly I had flagged email messages in the past.  Any suggestions?  I have tired going into my various email accounts on the iphone and checking all of the deleted emails for each account.  I only found seven flagged messages. 
    Much appreciation for any suggestions.
    Thanks!

    Hey OldCT!
    I have a link here for you that may help you find your flagged messages a little more easily:
    See important messages - iPhone
    http://help.apple.com/iphone/7/#/iph3caefa61
    Flag a message so you can find it later. Tap while reading the message. You can change the appearance of the flagged message indicator in Settings > Mail, Contacts, Calendars > Flag Style. To see the Flagged mailbox, tap Edit while viewing the Mailboxes list, then tap Flagged.
    Thanks for being a part of the Apple Support Communities!
    Cheers,
    Braden

  • How tow connect two external displays that are not mirrored and turn of the retina display

    Hello,
    I have two questions:
    1.  Is it possible to use two external displays either mirrored or not and turn off the retina display, and if so how it is done?
    2.  Is it possible to close the MBP and use an external keyboard while using two external displays?
    I am using a music production DAW Persons Studio One-2 Pro and it would be great to be able to have this type of a setup.
    Thank You,
    Breezinabout
    Macbook Pro  15" Retina display I7 2,3mz 500gb SSD late 2013  OSX Yosemite 10.10.1

    Hi Breezinabout,
    The MacBook Pro Late 2013 retina display model will support two external displays. See this specifications page for reference -
    MacBook Pro (Retina, 15-inch, Late 2013) - Technical Specifications
    Specifically -
    Dual display and video mirroring: Simultaneously supports full native resolution on the built-in display and up to 2560 by 1600 pixels on up to two external displays, both at millions of colors
    And -
    Thunderbolt digital video output
    Native Mini DisplayPort output
    DVI output using Mini DisplayPort to DVI Adapter (sold separately)
    VGA output using Mini DisplayPort to VGA Adapter (sold separately)
    Dual-link DVI output using Mini DisplayPort to Dual-Link DVI Adapter (sold separately)
    HDMI video output
    Support for 1080p resolution at up to 60Hz
    Support for 3840-by-2160 resolution at 30Hz
    Support for 4096-by-2160 resolution at 24Hz
    You would, if you wish, turn off the internal display by closing the MacBook Pro, which is called "closed-clamshell" mode. It requires you to have an external keyboard and mouse. See this article for further information -
    How to use your Mac notebook computer in closed-clamshell (display closed) mode with an external display - Apple Support
    Thanks for using Apple Support Communities.
    Best,
    Brett L 

  • How can I download my past purchases that are not in my icloud?  Somehow I lost songs that I purchased they say that the orginal files are gone but I did not delete them

    How can I download past purchases that are not in my icloud?  Somehow I lost songs it says that the orginal files can not be located.  They are still available in the store but it doesn't give me the option to download them.  I did not delete any songs or files but I am missing a lot of files

    The "missing file" error happens if the file is no longer where iTunes expects to find it. Possible causes are that you or some third party tool has moved, renamed or deleted the file, or that the drive it lives on has had a change of drive letter. It is also possible that iTunes has changed from expecting the files to be in the pre-iTunes 9 layout to post-iTunes 9 layout, or vice-versa, and so is looking in slightly the wrong place.
    Select a track with an exclamation mark, use Ctrl-I to get info, then cancel when asked to try to locate the track. Look on the summary tab for the location that iTunes thinks the file should be. Now take a look around your hard drive(s). Hopefully you can locate the track in question. If a section of your library has simply been moved, or a drive letter has changed, it should be possible to reverse the actions.
    If another application like Windows Media Player has moved/renamed the files then the chances are that subtle differences in naming strategies will make it hard to restore the media to the precise path that iTunes is expecting. In such cases, as long as the missing files can be found somewhere, you should be able to use my FindTracks script to reconnect them to iTunes. See this post for an explanation of how it works.
    If you have to resort to trying to pull back the library from your iPod see Recover your iTunes library from your iPod or iOS device.
    Note also that if iTunes has an entry for a song, even if that entry is broken, then it won't offer that track for download since it "thinks" you already have it. If you can't find the original files or recover them from a device, then you may need to delete the broken entries, close iTunes and reopen before you can access the past purchases.
    tt2

  • Delete email addresses that are not stored contacts

    Can anyone tell me how to mass delete email addresses that are not part of my contacts? Why would the iphone store random email addresses?

    Yes, just open mail and click on the window menu and select previous recipients, when the window opens start edit your email addresses.

Maybe you are looking for

  • How do I display Text linked to a dropdown list selection in a form?

    Ok, I have a form that has a dropdown list with several selections. What I want to have happen is when someone selects one of the options from the dropdown, I want to have text displayed to the right of that information that pertains to that selectio

  • "batch" exporting to aiff using automator / applescript?

    I often find myself prepping a lot of audio for DV editing in Final Cut Pro....exporting audio out of QT to 48khz, 16bit, aiff. I'm looking for a way to do this to many files in 1 step....ie: drag and drop a folder/files onto an icon. Automator doesn

  • Where to suggest new features for firefox!

    Hi, Is there anywhere to suggest new features for Firefox? Thanks

  • Setting Icon on frame

    Hello All, I am facing problem in adding Icon to my JFrame. If the image format is jpg, icon is showing perfectly but when I try to add .png or .gif format images Icon does not displays? It gets added but showing blank. The way I have tried.. java.ne

  • Site errors, how to remove

    Hi, I look into the site errors section and see the following link "BookingRetrieve.aspx?ID=35731". What is this? Where do I go to remove this? Thank you