Conditions within groups

Hi,
I have a report which has a group sorted on column A. And it has some 5 other columns. Column B is a unique primary key and column C and D are begin and end dates respectively.
My report needs to list down only those records where in the begin date is less than the end date within that group and not for the same unique primary key row. The Begin Date is always less than the end date for any single record. However, I want the records where the begin date is lesser than the end date of the other records in the same group alone.
Example:
A B C D
100 1 01-JAN-07 02-JUN-07
100 2 03-JUL-07 08-SEP-08
200 3 03-DEC-07 29-DEC-07
200 4 30-DEC-07 31-DEC-09
200 5 28-JAN-08 05-FEB-08
Here the begin date "01-JAN-07" is less than the "02-JUN-07" in 1 row and "03-JUL-07" is less than "08-SEP-08" in 2 row. So, I do not want this displayed in the report. However, in 200 series, the discrepancy occurs.
Can anyone please throw me ideas on how to handle this in discoverer.
Your inputs are greatly appreciated.
Thanks!

Create a calculation like:
min(column_d) OVER (partition by column_b)and name the calculation group_end_date.
Then change your condition to something like:
column_d <= group_end_dateFor starters, include the calculation in the worksheet to verify that the MIN is working how you want, and then remove it from the worksheet (but don't delete it).
Also, substitute your actual item names for column_b and column_d.

Similar Messages

  • Condition exclusition groups

    Hi. why we assign  2 Condition exclusition groups to pricinng procedure
    aditya

    Hi Aditya,
    In pricing, more than one condition record may apply to a particular item at any one time. condition exclusion process is used to compare possible conditions in order to determine the best price for a customer.
    First of all, exclusion groups needs to be created. An exclusion group is a list of condition types that is identified by a three-digit number. Exclusion groups are defined in Customizing for Sales. You also assign exclusion groups to a pricing procedure and to determine how the condition exclusion is to be carried out.
    Next, the exclusion group is assigned to a pricing procedure, thus defining the condition exclusion.
    Depending on how you configure exclusion groups in the pricing procedure, the system can use condition exclusion to select the best price or discount in six different ways:
    1. Selecting the best condition record of a particular condition type from within one exclusion group
    2. Selecting the most unsuitable condition from within one exclusion group
    3. Selecting the best condition record for a condition type
    4. Selecting the most unsuitable condition record for a condition type
    5. Selecting the best conditions from different exclusion groups
    6. Excluding all condition types in the second exclusion group if a particular condition type in the first exclusion group exists in the document
    During automatic pricing for a sales order item, the system may find a number of valid condition records that apply to the same item. If the competing condition records belong to a variety of condition types, the system selects the record with the best price and excludes the other condition records.
    Steps:
    1. Define Exclusion group say "A001" for Discount exclusion.
    2. Assign condition types to exclusion group. [A001 to ZDG4].
    3. Assign condiion Exclusion group to Pricing procedure [A001 to ZGSSTE.
    Here select your condition exlusion procedure [A-F] like
    A- Best Condition between condition types,
    B -Best condition within the condition type, etc
    Condition Exclusion For Groups Of Conditions
    If several condition records are valid for pricing in a document item, you can define rules that specify which condition records are not included. You use condition exclusion for this purpose.
    You control condition record exclusion using exclusion groups. An exclusion group is a list of condition types which are compared with each other during pricing and result in the exclusion of an entire group or individual condition types within a group.
    Thus, the result of pricing can be influenced with regard to a required criterion (for example, best price) by excluding certain condition types while others are taken into account during pricing.
    Example
    You can define a condition exclusion which determines the best price for the customer and excludes other less favorable results of pricing. The best price then reverses the priority of condition types which would have been predefined by the access sequence.
    The procedure according to which the selection is carried out within or between the condition exclusion groups is defined in the pricing procedure. The following options are possible:
    Selection of the most (least) favorable condition type within a condition exclusion group
    Selection of the most (least) favorable condition record of a condition type, if more valid condition records exist (for example, selection from different condition records of the condition type PR00)
    Selection of the most (least) favorable of two condition exclusion groups (in this case, all condition types of the two groups are cumulated and the totals are compared)
    Exclusion procedure: If a condition type in the first group exists in the document, all condition types in the second group are set to inactive.
    The tables for condition exclusion are empty when delivered. You therefore have to carry out the following steps if you want to use condition exclusion:
    OV31 --- Define condition exclusion groups
    OV32 --- Assign Condtion types to exclusion groups.
    VOK8 --- Maintain conditoin exclusion groups for pricing procedure.
    At T.Code VOK8 you can have therse options configured.
    A Best condition between condition types
    B Best condition within the condition type
    C Best condition between the two exclusion groups
    D Exclusive
    E Least favorable within the condition type
    F Least favorable betweent the two exclusion groups
    Reward points if it helps
    Regrads
    Srini

  • An error occurred within the report server database. This may be due to a connection failure, timeout or low disk condition within the database. mail will not be sent.

    Hii all,
    I have a subscription which used to send report email daily 10 am morning 
    now today it does not sent an email the status i s showing above error message ..
    why this occurs ?? at the time of subscription running time ??
    i have checked there is not error of subscription it runs fine ..
    only today errored ..
    Kindly , help me
    Dilip Patil..

    Hi Dilip,
    Based on the error message "An error occurred within the report server database. This may be due to a connection failure, timeout or low disk condition within the database." it seems the issue is caused by the Report Server catalog databases are
    corrupted.
    To fix this issue, I suggest that you use the Reporting Services Configuration Manager to recreate the Report Server catalog databases. In addition, please make sure report server instance can connect to the report server database. For more details about Configure
    a Report Server Database Connection (SSRS Configuration Manager), please see the following document:
    http://msdn.microsoft.com/en-IN/library/ms159133.aspx
    Besides, if the issue is caused by the connection to the SQL Server Reporting Services Report Server catalog database is timeout. Please refer to the following thread:
    http://social.technet.microsoft.com/Forums/en-US/db4ca6c2-5445-4ff9-9f63-e20f3859cc70/error-throwing-microsoftreportingservicesdiagnosticsutilitiesreportserverstorageexception-an?forum=sqlreportingservices
    If the problem is still existed, I would appreciate it if you could give us detailed error log, it will help us move more quickly toward a solution.
    Thanks,
    Katherine Xiong
    Katherine Xiong
    TechNet Community Support

  • Condition Type Groups - Rebates

    Plz make me understand d use of the "Condition Type Groups" with example. The F1 help n stuff on SDN has already been checked, some1 who has worked on rebates will b able 2 xplain better d xact need of "condition type groups" e.g sometimes v have only 1 condition type assgined 2 it bt diff tables of that condition type n sometimes just 1 table of 1 condition type then wat's d need of it?
    An answer with a small scenario would b of gr8 help.
    regards

    Hi,
    i think u r working on rebtes,
    Condtype grup is used to group the condtypes together to come in an agreement for selection.
      for example:
    you r working material rebate
    for this condtype is BO02,  for this condtype you want to use 3 key combination (condtables/accesses in access sequence).  how you club these cond accesses to ur agreement type.  unless u group them. here u group them when assign condtable 1,2,3, to BO02 in this screen. 
    observe this example:
    condtypegrup         counter          condtype                  table
    xyz                          1                 BO02                          1     customer/material
    xyz                           2                 BO02                          2    region/material
    xyz                          3                 BO02                          3     countrly/material
    xyz                          1                 BO03                         1      customer/material
    xyz                           2                 BO03                        2      region/material
    xyz                           3                 BO03                        3      countrly/material
    now u assign this condtypegroup to agreemtn type for say XXXX,
    finally u create agreement type in BO01 t.code
    at the time of agreemtn creation u get all the above combination for selection in a popup. that 6 options in two condtypes in on conditiontypegroup.
    hope u understand
    regards,
    sadanandam kasarla

  • SSRS 2008: connection failure, timeout or low disk condition within the database. (rsReportServerDatabaseError)

    Hi,
    I have started getting this error since a week now when I try to schedule a report or change a schedule of a report. 
    An error occurred within the report server database. This may be due to a connection failure, timeout or low disk condition within the database. (rsReportServerDatabaseError) Get Online Help For more information about this error navigate to the report
    server on the local server machine, or enable remote errors 
    We have SQL Server 2008 installed along with SSRS running on the server. I have never seen this happening before for almost a year now but suddenly it appeared.  Along with this, report subscription is also messed up and some report are not been
    emailed as they have a error like:
    Failure sending mail: An error occurred within the report server database. This may be due to a connection failure, timeout or low disk condition within the database.Mail will not be resent. 
    I am not sure what caused this but if anyone has any idea of what is going on it will be great. 
    Thanks you for your help. 
    Please reply soooon !!!

    Rich, hi, sorry for my english but I speak spanish...
    Well, I was tried to recreate this issue and is really hard to recreate, however and as a rain from the sky, one of my customers receive the same error that you have, reviewing Windows Logs and SQL Traces there is nothing.
    Just for discard security issues I decide to change permissions in my server.
    1. Go to SQL Server Reporting Services Configuration Manager
    2. Go to Databases
    3. Verify the credentials used to connect to the database server
    4. Go to your database server
    5. Look for the login or user that is being used to connect to the database server from SSRS
    6. Change the role of that user and convert it to Sysadmin (Relax, this is not the final solution)
    7. Try again (Is not necesary to restart ANYTHING)
    8. Now, your SSRS and Subscriptions must work fine
    9. If your SSRS and subscriptions are working ok, you have to give some permissions to the user
    10. Grant execute permissions on
    master.dbo.xp_sqlagent_notify
    master.dbo.xp_sqlagent_enum_jobs
    master.dbo.xp_sqlagent_is_starting
    msdb.dbo.sp_help_category
    msdb.dbo.sp_add_category
    msdb.dbo.sp_add_job
    msdb.dbo.sp_add_jobserver
    msdb.dbo.sp_add_jobstep
    msdb.dbo.sp_add_jobschedule
    msdb.dbo.sp_help_job
    msdb.dbo.sp_delete_job
    msdb.dbo.sp_help_jobschedule
    msdb.dbo.sp_verify_job_identifiers
    11. Grant select permissions on
    msdb.dbo.sysjobs
    msdb.dbo.syscategories
    12. Grant public role to the user in the MSDB and Master DB
    13. Remove the Sysadmin role to the user
    14. Try again, now, your SSRS is ready to work
    Regards
    Pls let me know if work for you
    Regards | John Bocachica | jboca.blogspot.com

  • Price download from ECC goes to which condition maintenance group in CRM?

    Hi all,
    I have a question related to pricing download. If I am downloading conditions from ECC to CRM, how does the system determine that the condition type needs to go to which Application & Condition Maintenance Group in CRM?
    Thanks in advance.

    Hi,
    When u download pricing conditions from ECC to CRM the Application is always CRM and u need to create Condition Maintenance Group in CRM in SPRO path:
    Customer Relationship Management>Master Data>Conditions and Condition Technique>Condition Technique: Basics>Create Maintenance Group
    here u can create and add the conditions and Condition table as required.
    Hope it helps,
    Regards,
    PePe

  • Condition Exclusion group for Conditions

    Hi Gurus,
    Can we set up  C Exclusion group when two condition types having different calculation.
    1st condiion tyep- Condition class- Price and Calculation type is Quanity and
    2nd condition Type -Condition class-Discount and Calculation type is Percentage.
    Now i need to set exclusion group between this condition when 1st is active the 2nd should be deactiave. if calculation type is changed how system will react?
    Regards,
    Seegal

    Hi ,
    I think you have assigned the ZD01 and ZD02 condition type to the condition exclusion group.
    you have given the best between the conditions. so i think ZD01 discount value is more then the ZD02. so the system picked up the Zd01,
    Thank
    Kuntla

  • Sort within group

    I have several groups within groups, and on my last grouping:
    <?for-each-group:current-group();./TASK?>
    I'd like to sort alphabetically by task, but can only seem to sort on the highest group I have:
    <?for-each-group:G_DEPT;./DEPT?><?sort:DEPT;'ascending';data-type='text'?>.
    Is it possible to sort on the current group task? I just get a dump when I try to add the sort tag after for each statement.
    thanks

    I'm not sure about your <?for-each-group?> element because I haven't seen your data. This is an example from one of my reports.
    <?for-each-group: current-group();ELEMENT_NAME?>
    <?for-each:ELEMENT_NAME?>
    <?sort:PROC_PRIORITY?>
    HTH
    - Dan Stober
    Salt Lake City

  • Condition Maintenance Group

    Hey all,
    I have a new condition type, which I need to add to a condition maintenance group.
    What is the TCODE for assigning the conditon type to condition maintenance group.
    Thank you in advance.
    Regards,
    Chan

    Hi,
    Follow the below path to maintain your condition in Condition Maintenance Group.
    SPRO>Customer Relationship Management>Master Data>Conditions and Condition Technique>Condition Technique: Basics-->Create Maintenance Group.
    Regards,
    PePe

  • Conditions within a Structure

    Is is possible to use a condition in a query that has a structure in the rows?  If so, please explain.

    Hi Eugene,
    I should elaborate.  Yes, I have tried it and it does work if I have 1 selection within the structure within the rows.  I have multiple rows with the same material that is grouped within the selections by a transaction type.  When I have more than 1 selection, any material that meets the conditions at the first selection level is repeated in every selection although the criteria is not met.  I feel this defeats the purpose of using a condition.  I would like it to consider each record independently.  If you do not receive this type of results, perhaps you are doing something different than me.  Please advise.
    Thanks,
    Diane

  • Creation of Sub-Totals within Groups

    Hi - hope this is me just being a plank but I've hit a brick wall whilst trying to recreate a set of management accounts. So far the report has just two Groups - call them A & B for ease. Group B summarizes the detail and Group A neatly collects the results from Group B.
    Group A  comprises 6 parts all doing their bit and all the standard Crystal Sub-Totals (Summaries) work just fine. The problem I encounter is when I need to insert another Sub-Total into Group A which summarizes multiple parts of Group A e.g. Part 1 is Sales, Part 2 is Cost of sales, Part 3 is Labour, Part 4 is Expenses, Part 5 is Other and Part 6 is Depreciation. I need to insert a Sub-Total between Parts 3 and 4 which basically gives a total of Sales minus Cost of Sales minus Labour and to then continue with Parts 4 to 6. This is obviously a huge simplification of the issue but an answer to this would let me proceed with everything else.
    I've tried creating an line so I can add a formula for this by giving it a name of its own in Group A but it fails to appear on the report. I've also tried the 'Insert Section Below' option and whilst I can suppress it where necessary the formula just picks up values from the last entry on the Detail Section.
    Any ideas where I am making some elementary mistakes and is there an easy solution? Many thanks

    Hi,
      Try to create a manual running total formula for summing the fields with a condition.
    Create a @reset formula and place it report header:
    formula:
    whileprintingrecords;
    numbervar i:=0;
    Create a @eval formula and place it in group header A:
    formula:
    whileprintingrecords;
    numbervar i;
    if {groupname.field} = 'Labour' or {groupname.field} = 'Expenses'  then
    i:= i + {summary.field};
    Create a @display formula and place it in report footer;
    formula:
    whileprintingrecords;
    numbervar i;
    Hope this helps!
    Regards,
    Vinay

  • How do I use just 1 click with move tool (command v) to select layer within group?

    I'm on Snow Leopard 10.6.8, Photoshop CS3 10.0.
    Is there a way to click just once with "command V" to select a layer within a group?
    I used to be able to do it, and on my laptop I can do it now (same OS and Photoshop) but the mac I use for my design work won't do it...I have to also right click and select the layer that is highlighted. I have a many multilayered Photoshop document with lots of groups, and it's an extra time consuming step.
    Is there some preference I can turn on? Or some other simple keystroke?
    Thanks so much!

    Glad I could help, Emily

  • Add pricing condition within order created with reference to SPA

    Hi,
    I have a requirement wherein I need to add a $50 fine to order if the total order weight is below 75 kg.
    Problem I am facing is with orders created with reference to SPA wherin pricing is not calculated but copied from SPA.
    Please help me in solving this issue.
    Also, Please let me know the pricing userexit / BADI for CRM wherein this can be coded.
    Regards,
    Willban
    Edited by: willban_sap on Jul 21, 2010 11:43 AM

    Hi Willban,
    wonder wether you could use any weight dependent (net or gross) group condition with a scale. Delow 75 kg across all grouped items you would charge 50 $ and starting at 75 kg you would charge 0 $. As the scale base should get adjusted with the copy / create with reference step, I see no need for custom code.
    Best Regards,
    Michael

  • Working with items within groups

    With nearly all primary Adobe CS applications they offer a way to modify individual items within a group without ungrouping the item. Both Illustrator and InDesign in CS5.5 enable to doubleclick on the group which enters a mode were that item is isolated and only the contents within can be modified. As far as I can tell the only options to do this in Fireworks is to:
    * Ungroup and then regroup, which is not ideal because you loose the name of the group and you have to reselect each item again afterwards to regroup
    * Use the sub selection tool, which is also not ideal because it dose not allow you to target sub groups as items
    Can anybody else confirm this behavior?

    Try the Object extension by Aaron Beall http://fireworks.abeall.com/extensions/
    You can also, instead of grouping the objects, convert them to a Symbol (Select all, then Modify > Symbol > Convert to Symbol > Graphic. The objects will then behave as a group. You can edit individual items in the group by opening the symbol in the Symbol editor. To open the Symbol editor, simply double click on it.

  • NEW blackberry 9380 smartphone is in DEAD condition within 5 days.

    Sir/Madam,
    I have purchased new  blackberry 9380 smartphone in NAGPUR dated 10 .Oct.12  (Maharashtra,INDIA)  i have used the hand set for 5 days, but on 6th day my phone is switched off automatically. Am tried to charged the phone for long time but the phone is not switched on after that on 15 .Oct.12 i visited to your authorised service centre namely COWMEN INFORMATION TECHNOLOGIES PVT.LTD. they also tried to ON the phone but it cant switch ON,then they kept my entire BOX of Phone i.e. Smartphone with ORGINAL INCOICE  they told that since u buy the phone within a week , as per our terms &  conditions of BLACKBERRY your ENTIRE PHONE will get replaced within 3 working days ie. on 18.Oct.12 & give a call to your contact Number.
    Now today when i visited again to your authorised service centre namely COWMEN INFORMATION TECHNOLOGIES PVT.LTD,they told that your Smartphone will not get replaced because the company has rejected your request for replacing the smartphone.when i asked the question why they havent give me a proper reply & harshely told that u wait for atlest 2 months to get repaired your Smartphone 7 told that if you have any query then contact to our customer care helpline & dont visit here.
    Sir/ Madam am requesting you to please solve my problem so that i can get my NEW SMARTPHONE at earlist & again am requesting that the staff of  your authorised service centre namely COWMEN INFORMATION TECHNOLOGIES PVT.LTD is not professional they havent have knowledge of Blackberry phone & there behaviour is so rude that you cannot imagin . 
    IF MY PROBLEM IS NOT GET SOLVED AT EARLIST THEN I launched the complaint against CUNSOMER COURT AGAINST BLACKBERRY / COWMEN INFORMATION TECHNOLOGIES PVT.LTD
    <Personal Content Removed>

    This is a user-to-user community support forum. We are not RIM employees, but volunteers who enjoy assisting other users. RIM personnel rarely comment on queries posted here. You would have noticed this in the EULA and message upon registration.
    In other words, we can help you here with this issue, we are users just like you.
    If you want to notify RIM/BlackBerry of your complaint, please see the information at www.blackberry.com/contact
    1. If any post helps you please click the below the post(s) that helped you.
    2. Please resolve your thread by marking the post "Solution?" which solved it for you!
    3. Install free BlackBerry Protect today for backups of contacts and data.
    4. Guide to Unlocking your BlackBerry & Unlock Codes
    Join our BBM Channels (Beta)
    BlackBerry Support Forums Channel
    PIN: C0001B7B4   Display/Scan Bar Code
    Knowledge Base Updates
    PIN: C0005A9AA   Display/Scan Bar Code

Maybe you are looking for

  • JVM vs JRE vs Java Plug-In and Yahoo Chat

    Hi I am a little confused as to what is required in the browser to run an applet. Do I require JVM installed in my browser? Do I require Java Plug-In installed in my browser? Do I require JVM installed in my browser? What is the difference between th

  • PL/SQL add procedure with nested table - Duplicate Thread

    Hi, I am trying to do a procedure to input information for one order and another for 2 orders. The information I have so far is as follows: Drop table Orders cascade constraints; Drop type item_type; Drop type Item_nested; Create or Replace Type item

  • Using JNDI to keep a independent session

    Hi. I want to design a hashtable of session attributes connected in the JNDI tree in a J2EE application. My motivation is to instead of using the Session object provided by the servlet to store user dada, use an object acessible anywhere in the appli

  • Iphone 6 expected ship date of 10/3

    I had an expected ship date of 10/3. I called earlier to find out if the phone would actually ship and they told me that the order was held up due to a change of address...Really?!? I called DAYS before and asked to change the shipping address and af

  • Span VLANs across switches

    VLANs are new to me so please forgive me - We have 5 Cisco sg500x switches. We need to create two vlans across some or all of the switches. I have been successful in creating vlan1 on one switch and excluding and including ports to segregate traffic.