Problem with logic groups combining data at the point of importation

I really hope that you will be able to help me with a problem I've had for the last few days.

The scenario I have requires a logical group be created as the source data must be mapped differently if its + ve or - ve even thought the source account is the same.

I created a logical group complex and added the corresponding logical group account in the account mapping table. The group uses the definition of rule 001806 *.

The accounts that would be affected by this rule are below the values:
18060000 - 2093096.69
18060000 2093096.69
18060005 - 2474955.48
18060005 2474955.48
18060015 11319512.13
18060015-8000000 (a PEAK partner)
18060015 - 3319512.13 (a PEAK partner)

The + ve values need to go to an asset account and the values of ve - to a liability account.

At the stage of import, I have a zero value which seem to be the sum of the values of the first 4, substantive values 3 then appear on individual lines.

Step validate the asset HFM account displays the 3 + values of ve (15.8 M) Although 2 of them apparently wide net to zero with the values of the first and the third - ve. However, the liability account shows the background raising 2 (11. 3 m) as its missing the other 2 values - ve. Assets and liabilities HFM values should be the same

In the account mapping, I'm using the following script for the + ve (its been reformatted for this forum):
' If varValues (9) > '0' Result = "BSA401000" Else Result = "Ignore" End If

The script - ve is:
' If varValues (9) < "0" Result = "BSL625600" Else Result = "Ignore" End If

I later changed the logical group to be Simple, but I get a similar result, although what I am trying to reach seems to be detailed in the Administrator's Guide FDM under the heading create accounts within Simple logic groups

I understand that it is a little lengthy so apologies if you need more information, then please let me know and I will happy to provide more

Thank you, James

You could even put in place two mapping rules and avoid the complexity of a logic rule, if you wish. The mapping will continue to the next line if it does not meet the criterion, and there is no result.

Side assets would be with a name of rule vAsset (you can change this, but it must be unique to the next line)
If varValues (9) > 0 then result = "BSA401000."

and then you add a second line to your card with a name of vLiab rule and check the sign flip.

If varValues (9)< 0="" then="" result="BSL6256002">

In the past I have avoided the rules of logic to the extent possible, by adding removes the ability to drill holes in the source file.

Concerning
JOINT TASK FORCE

Tags: Business Intelligence

Similar Questions

  • Creation of the logic group - no limitation for the value of criteria field?

    I am trying to create simple logical groups in FDM (11.1.1.3 and 11.1.2.1 version). However, an error message is displayed in the information bar.

    : Error adding the new record.
    Detail: data access error.

    I clicked on the button "Add" and created a logical group that contains * 1 520 * accounts not sequential sources in the field of value of criteria (with operator).
    I separated these accounts from source with a comma and no space between them. (Note: operator = x, value/Exp = 1, Seq = 0) I've updated the grid. Then the error message was displayed and the logical group create failed.

    And then, I created a new group of logic that contains only * 100 * accounts not sequential sources in the field of value of criteria (with operator).
    I also separated a comma, no spaces and the same setting. I've updated the grid. And the logical group has been successfully added.

    The account of each source contains 10 characters (alphabet and number).

    I want to ask:
    1. is there a limitation by specifying accounts sources (i.e.. more than number of accounts for each group of logic source) in the criteria value field when creating simple logical group?

    2. I'm adding these logical groups by clicking on the button 'Add' one by one, is it faster way to do (i.e. transfer an excel or csv source file specified accounts)?

    Thank you very much!

    You perform the update the named range in the Excel file as the previous poster said? When you import an Excel file using the import XLS function, only the name family (s) starting with 'ups' are actually loaded in the system. Note that at least in versions 9.3 and 11.1.1.3 there was also some hidden lines had to be such that specify the header.

    JOINT TASK FORCE

  • I am not able to download apps for my iPhone on the App Store. He just 'waiting '. But never starts the download. I tried with wifi and mobile data. The two are not download apps

    I am not able to download apps for my iPhone on the App Store. He just 'waiting '. But never starts the download. I tried with wifi and mobile data. The two are not downloading the applications Can u find out what's wrong? I use iPhone 5s

    I had the same problem. At the same time hold the screen lock button and the home button until your iPhone restarts. That solved the problem for me.

  • I can't see the pictures in my yahoo email, I did not have this problem with other browsers. I used the safe mode and still no success. Help, please.

    Question
    I can't see the pictures in my yahoo email, I did not have this problem with other browsers. I used the mode 5 firefox safe and always without success. Help, please

    To help other users find solutions, please come back to this Thread and connect you to the
    Forum with your user name and password:

    Click on 'resolved' beside the answer above that BETTER resolved your issue

    DO NOT CLICK on 'Solved It' next to this answer

  • I don't know why I had problems with FF 3.6.16 and the last update for thunderbird

    I'm at the Canada and for some reason, downloads for the two FF 3.6.12 and Thunderbird was last updated was the BritishVersions is why I UK search engines, not the US versions is maybe why I'm struggling with my email and addons. The other 2 computers in my house is the American version.

    But there is always something a bit screwey with 3.6.12 that some addons do not work correctly on other computers. Can you please change the software for the US version please? Thank you

    I deleted the software twice already. before realizing I was downloading the British version... same problem with my Thunderbird cannot connect to the Internet service provider even if everything is done correctly! Help!

    You can find the version en here:

  • I have printer color laserjet 5550N having problem with error 59.C0. What is the cause of the error?

    I have printer color laserjet 5550N having problem with error 59.C0. What is the cause of the error?

    Thanks Ray,

    Hello... How can I get the manual download for all the error on any printer laser color spray top of HP range.

    Kind regards

    Monday Nwankwo

  • After 3 years of use of this helmet and having no problems with it, now I can hear the sound in the right ear

    Hello, after 3 years of use of this helmet and having no problems with it, now I can hear the sound in the right ear... what should I do? Help, I don't want to say 'goodbye' to it already... Thank you

    It could be the plug on the computer that is the cause of the problem. Try another helmet or a pair of speakers in it.

    If you hear only on one side, who will tell you that is the question.

    If you hear from both sides, you must obtain a new helmet

    Software will fix either of the foregoing...

  • Since Acrobat Reader downloaded DC I can't sign my PDF documents. It does not give me the option more and yes I am connected. On the old version, I got no problem with clicking on "signature" and draw the area where I needed my signature, put passw

    Since Acrobat Reader downloaded DC I can't sign my PDF documents. It does not give me the option more and yes I am connected. On the old version, I got no problem with clicking on "signature" and draw the area where I needed my signature, put the password and "POOF" my signature would be there. With this new version, it won't do that or give me the option. The online help is useless. I need to explain to me how connect you as I used too?

    Hi nicholass35183848,

    I assumed that you had a digital signature created in your player application of old and whenever you use to fill out a pdf with a signature field signed you it. But in order to draw and then sign you must use Acrobat Pro DC no DC drive.

    Thank you

    Abhishek

  • I have a problem with a card being inadmissible for the zoom on a phone.

    I have a problem with a card being inadmissible for the zoom on a phone. The Web site has been formatted for the phone using Muse. The plan should be saved in a way in Photoshop or y at - it a setting in the Muse who can fix this?

    Please provide more details, as if the card is integrated an image or a real map generated by widget.

    The generated plan must zoom in/out.

    Thank you

    Sanjit

  • I have problems with Lightroom. I just downloaded the creative cloud with LR and PS PS works fine, but does not open LR. It is stuck on the license screen and freezes. Please advise...

    I have problems with Lightroom. I just downloaded the creative cloud with LR and PS PS works fine, but does not open LR. It is stuck on the license screen and freezes. Please notify.

    reset your preferences-

    Acrobat: http://help.adobe.com/en_US/acrobat/X/pro/using/WS58a04a822e3e50102bd615109794195ff-7feb.w .html

    Adobe media encoder: https://forums.adobe.com/thread/1713540

    Legacy: http://helpx.adobe.com/after-effects/using/preferences.html

    Bridge: https://helpx.adobe.com/bridge/kb/troubleshoot-errors-freezes-bridge-windows.html

    Dreamweaver: https://helpx.adobe.com/dreamweaver/kb/restore-preferences-dreamweaver-cs6-cc.html

    Flash: http://helpx.adobe.com/flash/kb/re-create-preferences-flash-professional.html

    Illustrator: http://helpx.adobe.com/illustrator/using/setting-preferences.html

    InDesign: https://forums.adobe.com/thread/526990

    Lightroom: https://helpx.adobe.com/lightroom/help/setting-preferences-lightroom.html

    Muse (mac): https://forums.adobe.com/thread/1246022?tstart=0

    Photoshop: https://forums.adobe.com/thread/375776

    Photoshop elements: https://helpx.adobe.com/photoshop-elements/kb/preference-file-locations-photoshop-elements .html, http://www.photokaboom.com/photography/learn/Photoshop_Elements/troubleshooting/1_delete_p references_file.htm

    elements of first: https://helpx.adobe.com/photoshop-elements/kb/preference-file-locations-photoshop-elements .html

    First pro: http://www.mediacollege.com/adobe/premiere/pro/troubleshooter/trash-preferences.html

  • Problem with negative filters of refinement and the source of data on the OID 2.3

    Hello

    I have a problem using the filters of negative refinement on a data source with Information discovered 2.3

    Here is the configuration of data source

    {
    "baseFunctions":]
    {
    "attributeKey": "COMPANY"
    "attributeValue": "PROMO."
    'class': 'com.endeca.portal.data.functions.NegativeRefinementFilter '.
    },
    {
    'class': 'com.endeca.portal.data.functions.RecordFilter ',.
    'recordFilter': 'OR (OID_RECORD_TYPE:RES, OID_RECORD_TYPE:DEF).
    }
    ],
    "datastoreName": "datastorename",
    'name': 'ABC ',.
    "port": "7770."
    "Server": "XYZ".
    }

    When I reached a dashboard page where all the portlets using this data source, the record filter is applied as expected. However, for negative refinement filter, so that it appears in the portlet of the breadcrumb, it has no effect on the data set. Guided navigation always displays the value as a dimension as possible and I can see in my table of results as the data was not deleted by the negative refinement filter. I tried to restart Tomcat, without effect.
    If I go to the guided navigation and define negatively this value on the dimension of the COMPANY, the data gets filtered and I get 2 negative improvements will appear in the navigation bar to the same value (!)

    Is there something escapes me to configure negative refining filter?

    Thank you

    Your configuration is correct.

    I see two possible problems, but we are really just shooting in the dark:

    (1) "rogue whitespace.
    -If your value is not actually "PROMO" "PROMO", then your filter would not exclude anything. This would also explain why you might then add a negative refinement for the "real value". To validate this, use a browser with some debugging functions (i.e., Chrome), have your applied by default negative refinement and then "apply manually" in Studio.

    And then open the browser debug mode (chrome, right click on the value you just added and click 'Inspect element'). If all goes well, the HTML code will show a little differently, and you can see the white space in the manually added refinement.

    (2) it would happen to be a managed attribute? I think that the managed attribute values can have display names and real names and real name should be used for filtering purposes. I doubt that's the problem, but it's the only other thing I could think of...

    Kind regards

    Patrick Rafferty
    Branchbird

  • R12: Copy a group of companies with configurations, metadata and data in the same instance of OA

    The idea was born to a very common condition between the companies IT. pre-sales and pro-ventes groups do various tasks, including the response of the RPF/RFI, PoC, building, Solution architecture, customer demo etc. Ususally they do not have the dedicated application instances, or rather they do not find a sufficient number of cases of applications dedicated to deep study of the road. Every other day a group cries out for an Apps instance and the same gets lift for senior management in short time. It gives a lot of pain to the infrastructure/DBA groups because they fail to meet people like them, due to the limited availability of free nodes, resources, networks and space etc.

    I have a Vision of the R12.1.3 (tell SID = VIS1213) installed on a Linux machine. The box is quite busy with his hearts limited, showing little free memory and the attached SAN has insufficient free space remaining. A group of Oracle Apps pre-sales consultants, says "Group 1", is the use of this.»

    Now the 3 other groups are asking for a R12.1.3 Vision instance separately for different reasons below. Each of them wants the instance again and do not share with others.

    Group 2 for deep study of the road against a critical response to RFP
    Group-3 for the development of a point of contact for a customer demo
    Group 4 for the manufacture of PUK media on some business processes

    In this scenario, I should install 3 distinct Vision of R12.1.3 (using CDs or downloaded zip) or clone VIS1213 in 3 different places with different SIDS, possibly on one or more separated nodes (as above Linux node has insufficient free resources). In this case, the need for available server resources and disk space multiplied by 3, so that DBA maintenance for these 3 new instances is added.

    Hope that I have clear air up to this point.

    Then I was thinking if we have "virtual instances" within an existing instance of Apps, by copying from a vertain org level. First I thought I'd take THE level, but it will not work if an instance of group to work with HRMS claims. We must therefore take business group level. After that we will create the appropriate role and responsibility, user profile options so that the new user can see and work on the new BG and data area down only. It will be like a separate instance to use.
    Benefits of my desired task will be

    -no separate server resource, the required network
    -no additional DBA not involved maintenance
    -no separate required backup plan

    So here it is to create 3 new "virtual instances" right within the same instance of VIS1213. New groups will have same URL, same existing TNS details but 3 credentials different existing access. Each of them would be limited in a way so that they can not see each and other data and can not hurt each and other changes.

    This can be achieved if we can copy an existing group of its activities with org structures, metadata and data, within the same instance. Oralce planning cannot be copied within the same instance configurations.

    What I've done so far was I manually created a new BG, attached an existing sobbing (CoA, Agenda / currency), created a new, copied and modified accounting structure flexfields before fixing, created the new ORGANIZATIONAL unit, and then a new InvOrg of master and a new InvOrg clild, defined the profile MO some GL and HR profiles. Then I extracted finished master and data assignment article category Masters against a master/child existing InvOrg, updated the data for newly created InvOrgs, inserted into tables insterface and ran seeded import conc program element. Except for a few, all data have been loaded into base against new InvOrgs tables.

    Then I tried with master provider (with sites and contacts). A few AP configurations are required, and then data provider (+ contact + site) have been loaded against OR newly created (under new BG) base tables.

    I do not proceed after that. I'm currently looking for ideas from the experts on how to go further.

    Planning is able to create this kind of 'virtual instance' within the same instance of OSTEOARTHRITIS?

    PL nowadays return.

    Thank you and best regards,
    Castelbajac Dhara
    E-mail: [email protected]

    PL don't post duplicate topics - R12: copy a group of companies with org, configurations, metadata & data structures

  • Problems with lines due double date/time in the query

    Hello

    I'm trying to draw a list of the counties of the test sample. I want only 1 rank by the test result so that I can build a report in Cognos showing the rate of an outcome determined as a percentage of the total causes a range of dates.

    My problem is that I get duplicate for the same result rows: in the example below, I have 2 to 5 lines for each result instead of only 1 for each result. I have this reduced up to caused by the date - the date is the same, but the times are different, if several lines are drawn. I tried to use tronque(), among other things, but although the output now shows the same date without the time part, duplicate rows are always drawn.

    Any help would be appreciated!

    This is the code for the query:
    SELECT DISTINCT
        io.lab_id AS "LAB ID",
        l.name AS "LAB NAME",
        mtr.marketingtest_id AS "TEST ID",
        mtl.name AS "TEST NAME",
        mtr.marketingresult AS "MARKETING RESULT",
        COUNT(DISTINCT mtr.sample_id) AS "NO OF SAMPLES",
        TRUNC(os.statusdate) AS "STATUS DATE",
        os.orderstatuscodes_id AS "ORDER STATUS",
        io.redoorderid AS "REDOORDERID",
        mtl.locale_id AS "LOCALE"
    FROM igen_sample s
    INNER JOIN igen_igenityorder io ON s.igenityorder_id = io.igenityorder_id
    INNER JOIN igen_orderstatus os ON io.igenityorder_id = os.igenityorder_id
    INNER JOIN igen_marketingtestresult mtr ON s.sample_id = mtr.sample_id
    INNER JOIN igen_lab l ON io.lab_id = l.lab_id
    INNER JOIN igen_marketingtestlocale mtl ON mtr.marketingtest_id = mtl.marketingtest_id
    
    WHERE mtl.locale_id = 1
    AND os.orderstatuscodes_id IN (8, 9)
    AND mtr.marketingtest_id = 84
    AND os.statusdate BETWEEN '24-OCT-2011' AND '31-OCT-2011'
    
    GROUP BY mtr.marketingtest_id, mtl.name, mtr.marketingresult, os.statusdate, os.orderstatuscodes_id, io.lab_id, l.name, io.redoorderid, mtl.locale_id
    ORDER BY mtl.name

    Hello

    893078 wrote:
    Hello

    I'm trying to draw a list of the counties of the test sample. I want only 1 rank by the test result so that I can build a report in Cognos showing the rate of an outcome determined as a percentage of the total causes a range of dates.

    My problem is that I get duplicate for the same result rows: in the example below, I have 2 to 5 lines for each result instead of only 1 for each result. I have this reduced up to caused by the date - the date is the same, but the times are different, if several lines are drawn. I tried to use tronque() among others...

    TRUNC looks like what you want. If you want a single line per calendar day, or need to GROUP BY TRUNC (os.statusdate).

    AND        os.statusdate  >= TO_DATE ( '24-OCT-2011'
                                , 'DD-MON-YYYY'
                            )
    AND       os.statusdate  <  TO_DATE ( '31-OCT-2011'
                                 , 'DD-MON-YYYY'
                            ) + 1
    GROUP BY  mtr.marketingtest_id
    ,            mtl.name
    ,        mtr.marketingresult
    ,        TRUNC (os.statusdate)               --     <==  CHANGED
    ,        os.orderstatuscodes_id
    ,        io.lab_id
    ,        l.name
    ,        io.redoorderid
    ,        mtl.locale_id
    ORDER BY  mtl.name
    

    If os.statusdate is a DATE, don't try to compare it to a VARCHAR2, as 24 October 2011 "." Compare DATEs to other DATEs.

    Furthermore, GROUP BY product automatically separate results. If all GROUP expressions in the SELECT clause, there is not need to say SELECT DISTINCT .

    Published by: Frank Kulash, November 23, 2011 09:34

  • Calc problem with fact table measure used in the bridge table model

    Hi all

    I have problems with the calculation of a measure of table done since I used it as part of a calculation in a bridge table relation.

    A table of facts, PROJECT_FACT, I had a column (PROJECT_COST) whose default aggregate is SUM. Whenever PROJECT_COST was used with any dimension, the appropriate aggregation was made at appropriate levels. But, no more. One of the relationships that project_fact is a dimension, called PROJECT.

    PROJECT_FACT contains details of employees, and every day they worked on a project. So for one day, employee, Joe, could have a PROJECT_COST $ 80 to 123 project, the next day, Joe might have $40 PROJECT_COST for the same project.

    Dimension table, PROJECT, contains details of the project.

    A new feature has been added to the software - several customers can now be charged to a PROJECT, where as before, that a single client has been charged.
    This fresh percentage collapse is in a new table - PROJECT_BRIDGE. PROJECT_BRIDGE has the project, CUSTOMER_ID, will BILL_PCT. BILL_PCT always add up to 1.

    Thus, the bridge table might look like...
    CUSTOMER_ID BILL_PCT PROJECT
    123 100.20
    123 200.30
    123 300.50
    456 400 1.00
    678 400 1.00

    Where to project 123, is a breakdown for multiple clients (. 20,.30.50.)

    Let's say in PROJECT_FACT, if you had to sum up all the PROJECT_COST for project = 123, you get $1000.


    Here are the steps I followed:

    -In the physical layer, PROJECT_FACT has a 1:M with PROJECT_BRIDGE and PROJECT_BRIDGE (a 1:M) PROJECT.
    PROJECT_FACT = > PROJECT_BRIDGE < = PROJECT

    -In the logical layer, PROJECT has a 1:M with PROJECT_FACT.
    PROJECT = > PROJECT_FACT

    -Logical fact table source is mapped to the bridge table, PROJECT_BRIDGE, so now he has several tables, it is mapped (PROJECT_FACT & PROJECT_BRIDGE). They are defined for an INTERNAL join.
    -J' created a measure of calculation, MULT_CUST_COST, using physical columns, which calculates the sum of the PROJECT_COST X the amount of the percentage in the bridge table. It looks like: $ (PROJECT_FACT. PROJECT_COST * PROJECT_BRIDGE. BILL_PCT)
    -J' put MULT_CUST_COST in the presentation layer.

    We still want the old PROJECT_COST autour until it happened gradually, it is therefore in the presentation layer as well.


    Well, I had a request with only project, MULT_CUST_COST (the new calculation) and PROJECT_COST (the original). I expect:

    PROJECT_COST MULT_CUST_COST PROJECT
    123. $1000 $1000

    I'm getting this for MULT_CUST_COST, however, for PROJECT_COST, it's triple the value (perhaps because there are quantities of 3 percent?)...

    PROJECT_COST MULT_CUST_COST PROJECT
    123 $1000 (correct) $3000 (incorrect, it's been tripled)

    If I had to watch the SQL, you should:
    SELECT SUM (PROJECT_COST),
    SUM (PROJECT_FACT. PROJECT_COST * PROJECT_BRIDGE. BILL_PCT),
    PROJECT
    Of...
    PROJECT GROUP


    PROJECT_COST used to work properly at a table of bridge of modeling.
    Any ideas on what I got wrong?

    Thank you!

    Hello

    Phew, what a long question!

    If I understand correctly, I think the problem is with your old measure of cost, or rather that combines with you a new one in the same request. If you think about it, your request as explained above will bring back 3 rows from the database, that's why your old measure of cost is multiplied. I think that if you took it out of the query, your bridge table would work properly for the only new measure?

    I would consider the migration of your historical data in the bridge table model so that you have one type of query. For historical data, each would have a single row in the bridge with a 1.0 BILL_PCT.

    Good luck

    Paul
    http://total-bi.com

  • Problem with analytical function for date

    Hi all

    ORCL worm:
    Oracle Database 11 g Enterprise Edition Release 11.2.0.2.0 - 64 bit Production
    PL/SQL Release 11.2.0.2.0 - Production
    "CORE 11.2.0.2.0 Production."
    AMT for Linux: Version 11.2.0.2.0 - Production
    NLSRTL Version 11.2.0.2.0 - Production

    I have a problem with the analtical for the date function. I'm trying to group records based on timestamp, but I'm failing to do.
    Could you please help me find where I'm missing.
    This is the subquery. No issue with this. I'm just posting it for reference. 
    select sum(disclosed_cost_allocation.to_be_paid_amt) amt,
        substr(reference_data.ref_code,4,10) cd,
        to_char(external_order_status.status_updated_tmstp, 'DD-MON-YYYY HH24:MI:SS') tmstp,
        DISCLOSED_CLOSING_COST.DISCLOSED_CLOSING_COST_ID id
      FROM Deal.Fee_Mapping_Definition ,
        Deal.Fee_Index_Definition ,
        Deal.Fee_Closing_Cost_Item,
        Deal.Closing_Cost,
        Deal.Document_Generation_Request,
        deal.PRODUCT_REQUEST,
        deal.External_Order_Request,
        deal.External_Order_Status,
        deal. DISCLOSED_CLOSING_COST,
        deal.DISCLOSED_COST_ALLOCATION,
        deal.reference_data
      WHERE Fee_Mapping_Definition.Fee_Code                    = Fee_Index_Definition.Fee_Code
      AND Fee_Index_Definition.Fee_Index_Definition_Id         = Fee_Closing_Cost_Item.Fee_Index_Definition_Id
      AND Fee_Closing_Cost_Item.Closing_Cost_Id                = Closing_Cost.Closing_Cost_Id
      AND CLOSING_COST.PRODUCT_REQUEST_ID                      = Document_Generation_Request.Product_Request_Id
      AND closing_cost.product_request_id                      = product_request.product_request_id
      AND Product_Request.Deal_Id                              = External_Order_Request.Deal_Id
      AND external_order_request.external_order_request_id     = external_order_status.external_order_request_id
      AND external_order_request.external_order_request_id     = disclosed_closing_cost.external_order_request_id
      AND DISCLOSED_CLOSING_COST. DISCLOSED_CLOSING_COST_ID    = DISCLOSED_COST_ALLOCATION.DISCLOSED_CLOSING_COST_ID
      AND Fee_Index_Definition.Fee_Index_Definition_Id         = Disclosed_Closing_Cost.Fee_Index_Definition_Id
      AND Fee_Mapping_Definition.Document_Line_Series_Ref_Id   = Reference_Data.Reference_Data_Id
      AND Document_Generation_Request.Document_Package_Ref_Id IN (7392 ,2209 )
      AND External_Order_Status.Order_Status_Txt               = ('GenerationCompleted')
      AND Fee_Mapping_Definition.Document_Line_Series_Ref_Id  IN ( 7789, 7788,7596 )
      AND FEE_MAPPING_DEFINITION.DOCUMENT_TYPE_REF_ID          = 1099
      AND Document_Generation_Request.Product_Request_Id      IN
        (SELECT PRODUCT_REQUEST.PRODUCT_REQUEST_id
        FROM Deal.Disclosed_Cost_Allocation,
          Deal.Disclosed_Closing_Cost,
          DEAL.External_Order_Request,
          DEAL.PRODUCT_REQUEST,
          Deal.Scenario
        WHERE Disclosed_Cost_Allocation.Disclosed_Closing_Cost_Id = Disclosed_Closing_Cost.Disclosed_Closing_Cost_Id
        AND Disclosed_Closing_Cost.External_Order_Request_Id      = External_Order_Request.External_Order_Request_Id
        AND External_Order_Request.Deal_Id                        = Product_Request.Deal_Id
        AND product_request.scenario_id                           = scenario.scenario_id
        AND SCENARIO.SCENARIO_STATUS_TYPE_REF_ID                  = 7206
        AND product_request.servicing_loan_acct_num              IS NOT NULL
        AND product_request.servicing_loan_acct_num               = 0017498379
          --AND Disclosed_Cost_Allocation.Disclosed_Cost_Allocation_Id = 5095263
        )
      GROUP BY DISCLOSED_CLOSING_COST.DISCLOSED_CLOSING_COST_ID,
        External_Order_Status.Status_Updated_Tmstp,
        Reference_Data.Ref_Code,
        disclosed_cost_allocation.to_be_paid_amt
      order by 3 desc,
        1 DESC;
    
    Result:
    2000     1304-1399     28-JUL-2012 19:49:47     6880959
    312     1302     28-JUL-2012 19:49:47     6880958
    76     1303     28-JUL-2012 19:49:47     6880957
    2000     1304-1399     28-JUL-2012 18:02:16     6880539
    312     1302     28-JUL-2012 18:02:16     6880538
    76     1303     28-JUL-2012 18:02:16     6880537
    
    
    But, when I try to group the timestamp using analytical function,
    
    
    select amt 
            ,cd 
            ,rank() over(partition by tmstp order by tmstp desc) rn 
    from 
    (select sum(disclosed_cost_allocation.to_be_paid_amt) amt,
        substr(reference_data.ref_code,4,10) cd,
        to_char(external_order_status.status_updated_tmstp, 'DD-MON-YYYY HH24:MI:SS') tmstp,
        DISCLOSED_CLOSING_COST.DISCLOSED_CLOSING_COST_ID id
      FROM Deal.Fee_Mapping_Definition ,
        Deal.Fee_Index_Definition ,
        Deal.Fee_Closing_Cost_Item,
        Deal.Closing_Cost,
        Deal.Document_Generation_Request,
        deal.PRODUCT_REQUEST,
        deal.External_Order_Request,
        deal.External_Order_Status,
        deal. DISCLOSED_CLOSING_COST,
        deal.DISCLOSED_COST_ALLOCATION,
        deal.reference_data
      WHERE Fee_Mapping_Definition.Fee_Code                    = Fee_Index_Definition.Fee_Code
      AND Fee_Index_Definition.Fee_Index_Definition_Id         = Fee_Closing_Cost_Item.Fee_Index_Definition_Id
      AND Fee_Closing_Cost_Item.Closing_Cost_Id                = Closing_Cost.Closing_Cost_Id
      AND CLOSING_COST.PRODUCT_REQUEST_ID                      = Document_Generation_Request.Product_Request_Id
      AND closing_cost.product_request_id                      = product_request.product_request_id
      AND Product_Request.Deal_Id                              = External_Order_Request.Deal_Id
      AND external_order_request.external_order_request_id     = external_order_status.external_order_request_id
      AND external_order_request.external_order_request_id     = disclosed_closing_cost.external_order_request_id
      AND DISCLOSED_CLOSING_COST. DISCLOSED_CLOSING_COST_ID    = DISCLOSED_COST_ALLOCATION.DISCLOSED_CLOSING_COST_ID
      AND Fee_Index_Definition.Fee_Index_Definition_Id         = Disclosed_Closing_Cost.Fee_Index_Definition_Id
      AND Fee_Mapping_Definition.Document_Line_Series_Ref_Id   = Reference_Data.Reference_Data_Id
      AND Document_Generation_Request.Document_Package_Ref_Id IN (7392 ,2209 )
      AND External_Order_Status.Order_Status_Txt               = ('GenerationCompleted')
      AND Fee_Mapping_Definition.Document_Line_Series_Ref_Id  IN ( 7789, 7788,7596 )
      AND FEE_MAPPING_DEFINITION.DOCUMENT_TYPE_REF_ID          = 1099
      AND Document_Generation_Request.Product_Request_Id      IN
        (SELECT PRODUCT_REQUEST.PRODUCT_REQUEST_id
        FROM Deal.Disclosed_Cost_Allocation,
          Deal.Disclosed_Closing_Cost,
          DEAL.External_Order_Request,
          DEAL.PRODUCT_REQUEST,
          Deal.Scenario
        WHERE Disclosed_Cost_Allocation.Disclosed_Closing_Cost_Id = Disclosed_Closing_Cost.Disclosed_Closing_Cost_Id
        AND Disclosed_Closing_Cost.External_Order_Request_Id      = External_Order_Request.External_Order_Request_Id
        AND External_Order_Request.Deal_Id                        = Product_Request.Deal_Id
        AND product_request.scenario_id                           = scenario.scenario_id
        AND SCENARIO.SCENARIO_STATUS_TYPE_REF_ID                  = 7206
        AND product_request.servicing_loan_acct_num              IS NOT NULL
        AND product_request.servicing_loan_acct_num               = 0017498379
          --AND Disclosed_Cost_Allocation.Disclosed_Cost_Allocation_Id = 5095263
        )
      GROUP BY DISCLOSED_CLOSING_COST.DISCLOSED_CLOSING_COST_ID,
        External_Order_Status.Status_Updated_Tmstp,
        Reference_Data.Ref_Code,
        disclosed_cost_allocation.to_be_paid_amt
      order by 3 desc,
        1 DESC);
    
    Result:
    312     1302            1
    2000     1304-1399     1
    76     1303            1
    312     1302            1
    2000     1304-1399     1
    76     1303            1 
    
    
    Required output:
    312     1302            1
    2000     1304-1399     1
    76     1303            1
    312     1302            2
    2000     1304-1399     2
    76     1303            2
    THX
    Rod.

    Hey, Rod,

    My guess is that you want:

    , dense_rank () over (order by  tmstp  desc)  AS rn 
    

    RANK means you'll jump numbers when there is a link. For example, if all 3 rows have the exact same last tmstp, all 3 rows would be assigned number 1, GRADE would assign 4 to the next line, but DENSE_RANK attributes 2.

    "PARTITION x" means that you are looking for a separate series of numbers (starting with 1) for each value of x. If you want just a series of numbers for the entire result set, then do not use a PARTITION BY clause at all. (PARTITION BY is never required.)
    Maybe you want to PARTITIONNER IN cd. I can't do it without some examples of data, as well as an explanation of why you want the results of these data.
    You certainly don't want to PARTITION you BY the same expression ORDER BY; It simply means that all the lines are tied for #1.

    I hope that answers your question.
    If not, post a small example data (CREATE TABLE and only relevant columns, INSERT statements) for all of the tables involved and also publish outcomes from these data.
    Explain, using specific examples, how you get these results from these data.
    Simplify the problem as much as possible.
    Always tell what version of Oracle you are using.
    See the FAQ forum {message identifier: = 9360002}

    Published by: Frank Kulash, August 1, 2012 13:20

Maybe you are looking for

  • sync iPhone system 10 iTunes 11.4 on MacBook Pro

    I just updated my iPhone OS 10 5 and now I can sync is no longer the phone with my laptop MacBook Pro running iTunes on system 10.6.8 11.4 When connected, the phone will ask you to 'trust' of the computer. I select "trust", but a window on the comput

  • SQL Reporting Services license

    Working on explodes a separate instance of SQL 2014 Reporting Server from a normal SQL 2014 database server. If I run SQL reporting services on an area where the SQL engine is not installed does this burn a separate license of SQL?

  • My missing junk e-mail folder

    Summary of the issueOther issues of Windows Live Hotmail Please provide your address affected: E-mail address is removed from the privacy *. Additional detailsHello. I recently discovered that my Junk folder disappeared. I'm afraid that some competit

  • Need help to create a BCD to 7-segment decoder using logic gates

    I guess I'm a bit puzzled here.  I am creating a decoder 7 segments with AND, NOT and OR the doors, but I seem to have a bit of luck to get the display of numbers 1, 4 and 9 to work. Any help would be appreciated, thanks.

  • Explorer.exe error black screen

    HelloI have to tell you all that I am not good at tech or computers, so please bare with me.My drive has been recently cleaned. I restarted my pc and I got an error "explorer.exe application error".There is also an error in dll C:\Windows\system32\We