How to get the required result in BI publisher?

Hi All,
QuoteROW
   QuoteItemROW
    SA   -- abc   
    PROD --xyzitem
    NR     -- 100
    MR     -- 150
             QuoteItemROW
                   SA   -- abc   
                   PROD --xyz
                   NR     -- 100
                   MR     -- 150
              QuoteItemROW
                   SA   -- abc   
                   PROD --xyz
                   NR     -- 100
                   MR     -- 150
  QuoteItemROW
    SA   -- abc   
    PROD --xyzitem
    NR     -- 100
    MR     -- 150
              QuoteItemROW
                  SA   -- abc   
                  PROD --xyz
                  NR     -- 100
                  MR     -- 150
               QuoteItemROW
                  SA   -- abc   
                  PROD --xyz
                  NR     -- 100
                  MR     -- 150
    QuoteItemROW
  SA   -- abc   
  PROD --klmitem
  NR     -- 100
  MR     -- 150
              QuoteItemROW
                 SA   -- abc   
                  PROD --xyz
                  NR     -- 100
                  MR     -- 150
              QuoteItemROW
                  SA   -- abc   
                  PROD --klm
                  NR     -- 100
                  MR     -- 150
I have to grp on SA, PROD, NR, MR
My Result should be a table
SA ---abc
PROD               NR           MR                 count
xyzitem               100         150                    2
    xyz                  100         150                   4
klmitem               100          150                   1
     xyz                 100          150                  1
     klm                 100          150                  1
Please let me know how to get cnt on child record.
Regards,
Sam

Hi Alex, thank you for your reply.
Yes that is the hierarchy,
QuoteItemROW -------------------------------------> this is the main POFS (master)
    SA  -- abc 
    PROD --xyzitem
    NR    -- 100
    MR    -- 150
    QTY  --  1
            QuoteItemROW ----------------------------this is POES under POFS (child)
                  SA  -- abc 
                  PROD --xyz
                  NR    -- 100
                  MR    -- 150
                  QTY  ---- 1
and required a group on SA, then PROD, NR and MR. Basically wanted to display QTY count/sum.
xyz is repeating (in red color) because first xyz is under group of xyzitem and another xyz is under another group of klmitem.
SA ---abc
PROD              NR          MR                QTY
xyzitem              100        150                    2
   xyz                  100        150                  4
klmitem              100          150                  1
   xyz                100          150                  1
    klm                100          150                  1
Regards,
Sam

Similar Messages

  • How to get the fixed result in a DES/CBC mode with fixed input data and fix

    How to get the fixed result in a DES/CBC mode with fixed input data and fixed key. Below is my program , I tried to get the checksum of the DESInputData with the DESKeyData, but each time the result is different.
    below is my code:
    byte[] DESKeyData = {(byte)0x01 ,(byte)0x01 ,(byte)0x01 ,(byte)0x01, (byte)0x01 ,(byte)0x01 ,(byte)0x01 ,(byte)0x01 };
    byte[] DESInputData = {(byte)0x31 ,(byte)0x31 ,(byte)0x31 ,(byte)0x31,(byte)0x31 ,(byte)0x31 ,(byte)0x31 ,(byte)0x31 };
    SecretKeySpec skey = new SecretKeySpec( DESKeyData, "DES" );
    Cipher cipher = Cipher.getInstance("DES/CBC/NoPadding");
    cipher.init( Cipher.ENCRYPT_MODE, skey );
    byte[] result = cipher.doFinal( DESInputData );

    Use class javax.crypto.spec.IvParameterSpec to specify IV for CBC mode cipher:
    // Create CBC-mode triple-DES cipher.
    Cipher c = Cipher.getInstance("DESede/CBC/PKCS5Padding");
    // Specify IV.
    IvParameterSpec iv = new IvParameterSpec(new byte[] { (byte)0x01, (byte)0x23, (byte)0x45, (byte)0x67, (byte)0x89, (byte)0xAB, (byte)0xCD, (byte)0xEF });
    // Initialize cipher with proper IV.
    c.init(Cipher.ENCRYPT_MODE, yourKey, iv);
    // Encrypt and decrypt should work ok now.
    For more info about cryptography, search the Internet for IntroToCrypto.pdf from mr. Phil Zimmerman. This document is also part of PGP (http://www.pgp.com).
    An excellent book is 'Applied Cryptography' from Bruce Schneier (http://www.counterpane.com/applied.html).
    Regards,
    Ronald Maas

  • How to get the query result of improvement (Before and After ) using sql de

    how to get the query result of improvement (Before and After ) using sql developer.

    Check
    http://www.oracle.com/technetwork/articles/sql/exploring-sql-developer-1637307.html

  • How to get the full result of a google search?

    How to get the full results of a google search?
    Nov 23, 2006 2:28 AM
    Hi, Friends,
    I want to build a URL collector as a seamless and integrated part of my desktop application in java language which can access the full search results of google, but i am not sure the right way? what is the best way to do that in java?
    Where to find the relevant materials for the problem?
    thanks a lot

    Cross post - http://forum.java.sun.com/thread.jspa?threadID=788627&messageID=4481369#4481369

  • How to get the best results using the refine edge tool?

    how to use the sliders in the refine edge tool? how do you get the best results using the fine edge tool?

    You should ask in the forum for the (un-named) program you are using
    The Cloud forum is not about using individual programs
    The Cloud forum is about the Cloud as a delivery & install process
    If you will start at the Forums Index https://forums.adobe.com/welcome
    You will be able to select a forum for the specific Adobe product(s) you use
    Click the "down arrow" symbol on the right (where it says All communities) to open the drop down list and scroll

  • How to get  the Overall result and Avg in Query

    Hi
    I am facing a problem to find Overall result and Avg for the keyfigure.
    Here is the scenario.
    I have a fiscalperiod ,qty in query column and material in row, when user enters the fiscalperiod(004.2006 to 006.2006)
    the output should come as
       0406 0506 0606  Avg
    M1  10  20   40     35
    M2  20  40   30     45
    res 30  60  70
    i can able to get the overall result not avg,
    if i change the properities of keyfigure 'Calicuate Result as 'Average of all values'',then i am loosing the overall result.
    eitherway i can able to get one result,not both.
    anybody can help.
    Thanks
    Madhu

    You have 2 key figures and you have put Material in the ROWS.
    Remove Material from ROWS and instead use 0FISCYEAR in the row selection.
    You can create 12 Key figures for each month and use either Filer or Free Characteristic using 0CALMONTH to restrict the month for the selection Variable.
    For the Key Figures use "Calculate Single Value as" Average.
    Create another formula as KF1KF2....+KF12 to get the sum of average.
    Regs
    Gopi
    Assign points if it helps...

  • How to get the Survey result with a External Provider

    Hi all
    We have an scenario where we create a Survey and it's executed for a third party, and then they send to us the results for example in a excel sheet.
    Some know how we can upload the survey results per each client into CRM,
    Best Regards.

    Go for ELM processing.....create mapping and ELM the file in the system....In the BADI enhancement for processing steps, define the logic for processing the response through an activity....
    Create Activity
    Attach the questionaire to the Activity...
    ELM the file that you received
    Process the file filling up answers on the activity questionaire...
    Hope it helps...
    Thanks
    Nikhil

  • How to get the entire result into an XMLDocument??

    Hello,
    I would like to get the result of a DB Query as XMLDocument. Here's the code I use:
    ResultSet rset = stmt.executeQuery();
    OracleResultSet orset = (OracleResultSet) rset;
    while (orset.next()) {
    XMLType poxml = XMLType.createXML(orset.getOPAQUE(1));
    Document doc = poxml.getDOM();
    The problem is, that I can only get a XMLDocument per table row, but not an XMLDocument of the entire result.
    Regards,
    Dominik

    I got the answer myself:
    In the xsql-query, use the xmlagg() function to group the all records into one record.
    Use the same Java code.
    Regards,
    Dominik

  • How to get the  page count in XML Publisher Report

    Hi Team,
    I am generating one xml report. I want to get the total Page count in XML publisher report. This page count is depends on the input Parameters at runtime. How to get this total page count on the runtime dynamically.
    Best Regards
    Sri

    there is some seeded variable available please read xml publisher developer user guide

  • How to get the query result !

    Experts !
    i am working on a query. in this query i have a sales for a sales person for a month, and in the 2nd coulmn sales for the previous month. there is a 3rd column which gives (% change ). now i have to show only those records where (% change ) is more / less 34%. how do i get those ? Exceptions ??
    If by using exceptions, then the 3rd column ( % change) is a formula column ( Not the key figure) . can i use exceptions on Formula column ?
    Please help

    HI ,
    You can try this by creating a condition ,
    Create a new condition, in keyfigure you can choose the formula for %, choose  the operator as Greater than , in values give 34
    Regards,
    Sathya

  • How to get the correct result when I access mxml file in address bar in IE?

    os: windows xp
    web server: tomcat 5.5
    lcds version: 2.6
    One week ago, I installed lcds2.5 in my coumputer. At that time, when I type address http://localhost/lcds/test.mxml in address bar of Internet Explorer, the web server return the result of test.swf.
    I upgraded lcds from 2.5 to 2.6 this morning, and then when I type http://localhost/lcds/test.mxml in IE address bar again, the server return the source code of text.mxml in the web page, which is not I expected.
    Why the web server don't handle the *.mxml file like in lcds2.5? How can I resolve this problem?

    Hi,
    Webtier Compiler is which is no longer part of LCDS starting with the version 2.6. However you can install it if you want, read the instructions from this link http://labs.adobe.com/wiki/index.php/LiveCycle_Data_Services:Setting_up_an_SDK,_Compilers ,_and_Flex_Builder

  • How to Get the required List Item values by using Where Clause

    I have two tables named "TAX_RULES","BILL"
    1. " Tax_Rules" (Sub_Head_Code,Tax_ID,Tax_Percentage)
    { While "Sub_Head_Code" field is unique,
    Tax_ID describes that there are two kinds of Tax_IDs based on Tax_percentage which is 6% for some Sub_Head_Codes and 3.5% for the remainng Sub_Head_Codes. I have given Tax_ID 1 for 6% and Tax_ID 2 for Sub_Head_codes having 3.5%. }
    2. "BILL" (Bill_ID,Sub_Head_Code,Tax_ID,Bill_Amount)
    {While "Bill_ID" describes unique Bill Identification Number,
    Sub_Head_Code and Tax_ID are behaving like composite foreign key from Tax_Rules table}
    I have design form for both tables.
    In BILL form i am trying to get values of Tax_ID from Tax_Rules table at run-time by using WHEN-NEW-FORM-INSTANCE.
    For this whenever i select a Sub_Head_Code in Bill Form, all the Tax_IDs that i have recorded against each Sub_Head_Code which is either 1 or 2 against 6% and 3.5% respectively.
    But I want that whenever i select a "Sub_Head_Code", Only that Tax_ID which is associated with that Sub_Head_Code ahould come in the LIST ITEM.
    I have used WHERE clause but that is useless.
    Following is the Code that i have applied in the WHE-NEW-ITEM-INSTANCE Trigger at FORM LEVEL
    <CODE>
    DECLARE
         rg_n1 VARCHAR2(40) :='TAX_ID';
         rg_idn1 RecordGroup;
         gc_idn1 GroupColumn;
         errcode NUMBER;
    BEGIN
         CLEAR_LIST('BILL.TAX_ID');
         rg_idn1 := Find_Group(rg_n1);
    IF      Id_Null(rg_idn1) then
              rg_idn1 := Create_Group(rg_n1);
         gc_idn1 := Add_Group_Column(rg_idn1,'EXPLAIN',CHAR_COLUMN,60);     
              gc_idn1 := Add_Group_Column(rg_idn1,'TAX_ID',CHAR_COLUMN,3);
         END IF;
         errcode := Populate_Group_With_Query(rg_idn1,'select TAX_ID,TAX_ID from TAX_RULES');
         POPULATE_LIST('BILL.TAX_ID',RG_IDn1);
    END;
    </CODE>

    In the Tax Rules table, you state:
    "Sub_Head_Code" field is unique
    In the Bill table, you state:
    Sub_Head_Code and Tax_ID are behaving like composite foreign key from Tax_Rules table
    If the Sub_Head_Code is unique, then it's acting as a primary key, so Sub_Head_Code and Tax_ID in the Bill table are not behaving like a composite foreign key. The Sub_Head_Code is a foreign key, and the Tax_ID is irrelevant as far as keys are concerned.
    It is not clear what it is you want to do.
    If you want to display the Tax_IDs from the Bill table when you select a Sub_Head_Code from the Tax_Rules table, then change your query to:
    select TAX_ID, TAX_ID from BILL where Sub_Head_Code = :Tax_Rules.Sub_Head_Code
    If you want to display the Tax_IDs from the Tax_Rules table when you select a Sub_Head_Code from the Bill table, then change your query to:
    select TAX_ID, TAX_ID from TAX_RULES where Sub_Head_Code = :Bill.Sub_Head_Code
    If this is not what you want, then clarify what it is you want to do. Don't say:
    "I want that whenever i select a "Sub_Head_Code", Only that Tax_ID which is associated with that Sub_Head_Code"
    because it is not clear what tables you are referring to.

  • How to get the desired result

    hi friends
    i have a field having name value in table which when order by a datetime field named change_date give me the result like shown below
    a b value
    * * 3
    * * 5
    * * -1
    * * 8
    * * 13
    * * 19
    * * 21
    * * -1
    * * 6
    now i want a query that will give result like below
    * * -1
    * * 8
    * * -1
    * * 6
    means the record having the value field -1 and the next row and then again -1 record and the next immediate record.Plz help
    Edited by: dj on Feb 25, 2012 5:36 AM

    Maybe
    select a,b,value
      from (select a,b,value,
                   row_number() over (order by your_column) rn,
                   case when lag(value) over (order by your_column) = -1 then 1 end x
              from your_table
    where value = -1
        or x is not null
    order by rnRegards
    Etbin

  • How to get the required name name in the HTML output ?

    Hello all.
    While publishing the project, where can we give our custom name which has to be taken as the title in the HTML file?
    Thanks in advance,
    Kartik.

    Kartik.  This is a known issue with some Captivate projects created from other projects or upgraded from an earlier version .
    The workaround is:
    Save your project as a different file name in a different folder.
    Change the information in your Project Preferences > Project Information > Project Name settings and also in the Publishing dialog > Project Title field to appear as you want it.
    Publish the project to a different folder than the original location.
    Save as again, this time saving as the original filename. You can save back into the same location as the original file and overwrite it.
    Now when you publish (if you are lucky) the information should be as you want it to appear and the title will reflect the information shown in Project Preferences > Project Information > Project Name
    Try that and see if it works for you.

  • HD to SD how to get the best results

    I have shot a 3 minute film in HD, edited in HD, then created a SD MPEG 2 in compressor and created a SD DVD in DVDSP. The quality was not very good. So I exported the film in FCP with print to video back to the camera then down converted back into FCP created my MPEG 2 in compressor and the quality was much better. My question is: Is there a quicker way? Its not so bad with a 3 minute film but when it comes to longer films is becomes a nightmare. any suggestions gratefully received.

    Patricia W wrote:
    anamorphic (doesn't that use letterboxing?)
    No, it's a way to create a true 16:9 aspect ratio in SD
    without squishing or letterboxing or cropping.
    I want a regular 4 by 3 aspect ratio.
    Just guessing here: you're using Export Using QuickTime Conversion,
    and in the Size section, you have the option of preserving the aspect ratio
    (of the image, not the SD frame) using either Letterbox or Crop.
    Make sure you have the Dimensions set to 4:3.

Maybe you are looking for

  • Acrobat 9 Pro setup media

    I have just signed in to licensing.adobe.com to download Acrobat 9 Pro setup. It is not available for download. In my account, I see the serial numbers for all Acrobat versions (7, 9, and 10) that I have purchased. However, only Acrobat 10 Pro is ava

  • Site not working in IE, fine in Firefox

    It took me forever to get some issues resolved with Captivate/Flash and get my site working correctly. I use Firefox and didn't think to check IE. I called the client and he has IE and said there was nothing there, much to my shock. Everything shows

  • DMS Migration from AIX to windows

    Dear All, We are in process of migrating of SAP landscape from AIX to windows. We have idea of migrating ECC and BI from AIX to windows. But we are confuse, how to migrate SAP DMS from AIX to windows. Need you suggestion how to proceed futhure for mo

  • Workflow: check multiline container element for emptiness

    Hi! Please suggest how to check multiline workflow-container element for emptiness in condition block. Regards, Maxim.

  • Virtual Directory

    Our corporate website uses coldfusion. We have developed a web time entry system that also uses coldfusion. I am trying to setup the new timentry system as a virtual directory under our website. When I try to access the time system I get a coldfusion