Summing only particular values in publisher 10g

Hi All,
We need to sum the sales based on the product at the end of the report.
Below is the required report format:
Colm1 Colm2
A 10
A 20
B 20
B 20
ATOTAL 30
BTOTAL 40
Thanks

as example for
<ROW>
<VAL>10</VAL>
<COLOR>A</COLOR>
</ROW>
<ROW>
<VAL>20</VAL>
<COLOR>A</COLOR>
</ROW>
<ROW>
<VAL>20</VAL>
<COLOR>B</COLOR>
</ROW>
<ROW>
<VAL>20</VAL>
<COLOR>B</COLOR>
</ROW>use
ATOTAL : <?sum(//VAL[../COLOR=’A’])?>
BTOTAL : <?sum(//VAL[../COLOR=’B’])?>

Similar Messages

  • Display only positive values for a particular Keyfigure

    Hi..
    (Sorry, I accidentally posted this also in Datawarehousing forum, actually it related to BeX forum).
    For a particular column(keyfigure) in my report, the user wants to display only positive values.
    I used the formula from the one of the forums
    (Keyfig > 0)* Keyfig.
    This displays only positive values in the column as required. But, the result for this column is also affected. As the result is negative, it shows, zero in the result for this column.
    Is there a way in which the result will not be affected by the formula?
    I went into the properties of the particular keyfigure and chose Calculate Result as -> Summation.
    It throws out the following error message
    'Calculating result as...' was not executed
    Message no. BRAIN141
    Diagnosis
    The function 'Calculate Results as ...' could not be used in all
    instances.
    The recalculation of a result cell always occurs based on the set of
    detailed cells subordinated to this cell. This is the most detailed
    level of the drilldown. Therefore it is not posible to recalculate in
    hierarchical lists. The calculation of a results cell is not performed
    if a cell or column with an expand symbol is assigned beneath it.
    Otherwise the newly calculated result is changed every time one of its
    lower-level nodes is expanded. This is not supported for technical
    reasons and would also only confuse users.
    Note, however, that calculating with "Suppress Results" is always
    executed because the restriction described above does not apply in this
    case.
    NOTE:
    The query shows the keyfigure values for a selected title, for profit center and territory hierarchies.
    Any suggestions would be greatly appreciated.
    Thanks,
    Sai.

    Hi Deepu,
    Thanks for the reply. I tried with ur formula.
    LEAF(keyfig) gives all values "zero" for that particular column including the result.
    NOT LEAF(keyfig) gives all values "one" for that particular column including the result.
    So, ur formula gives the same values as of the present column values.
    I tried condition, but it's not working...it says the following errors...
    There is a condit. on Title, results row suppress. active on Profit Center    
    (conditional                                                                               
    Message no. BRAIN144                                                                               
    Diagnosis                                                                               
    Characteristic Title has an output condition and the 'Suppress Results    
        Cells' property is active for Profit Center. This generally leads to an   
        incomprehensible output list.                                                                               
    System response                                                                               
    As soon as an output condition is defined for a characteristic (here      
        Title), the system calculates the corresponding result cells and applies  
        the output condition. If a result cell of this type is later deleted by   
        the condition, all the lower-level detail and result cells in its         
        drilldown are suppressed. Because the result cell is suppressed the       
        Title rows are then omitted from Profit Center.                                                                               
    In extreme cases this can lead to an entirely empty list being            
         displayed, although the single rows or columns would be displayed if the  
         condition were deactivated.                                                                               
    Procedure                                                                               
    Check the query settings, especially results row suppression and the      
         output conditions.                                                                               
    Procedure for System Administration                                                                               
    You can deactivate this message Brain 144 with transaction RSRT1.                                                                               
    There is a condit. on Profit Center, results row suppress. active on        
    Territory as in SPL (conditional                                                                               
    Message no. BRAIN144                                                                               
    Diagnosis                                                                               
    Characteristic Profit Center has an output condition and the 'Suppress  
        Results Cells' property is active for Territory as in SPL. This         
        generally leads to an incomprehensible output list.                                                                               
    System response                                                                               
    As soon as an output condition is defined for a characteristic (here    
        Profit Center), the system calculates the corresponding result cells and
        applies the output condition. If a result cell of this type is later    
        deleted by the condition, all the lower-level detail and result cells in
        its drilldown are suppressed. Because the result cell is suppressed the 
        Profit Center rows are then omitted from Territory as in SPL.                                                                               
    In extreme cases this can lead to an entirely empty list being            
         displayed, although the single rows or columns would be displayed if the  
         condition were deactivated.                                                                               
    Procedure                                                                               
    Check the query settings, especially results row suppression and the      
         output conditions.                                                                               
    Procedure for System Administration                                                                               
    You can deactivate this message Brain 144 with transaction RSRT1.
    Thank you very much.
    Regards,
    Sai.

  • BI Publisher 10g. How to leave only one button Export, in the report?

    Good day!
    I'm working with Oracle BI Publisher 10g.
    Tell me please how to solve the following problem!
    I already have created the report, and when you view it, you can choose the format of its presentation, for example (pdf, html, ...).
    You can also see these buttons : View, Analyzer, Export, ...
    How can I make the report links panel of the report show only "Export" button?
    I also know that when you click the Edit button and selecting a report, you can remove the checkmark from the following properties:
    1)     Show controls
    2)     Disable access to the client from Analyzer for Excel.
    Then we will see in the first case that the entire selection panel has disappeared, while in the latter case, the off button Analyzer for Excel (in the presentation layer).
    And if you choose to layouts-> template, you can specify output formats, for example (pdf, html, ...).
    Thank you for your attention.
    Alex.
    Edited by: 816497 on 29.11.2010 7:59
    Edited by: 816497 on 29.11.2010 7:59

    I guess, you are looking for option in BIP enterprise itself, so
    making the user as different roles , you can suppress it.
    go thru this, to understand the roles and behaviour.
    http://download.oracle.com/docs/cd/E12844_01/doc/bip.1013/e12188/T421739T475591.htm#4455931
    if you going to view the report outside of this interface, e can see alternative solutions.

  • Can't figure out how to sum only certain dates

    Hi all,
    Here is my issue: we use numbers to keep a running inventory of pieces in stock, and when a piece sells we mark it with the date sold. I'd love to be able to get a sum of monthly sales, but I can't figure it out. Would someone be kind enough to explain it to me like I was five? Here is a sample of our spreadsheet layout: http://i.imgur.com/sV1RU4s.png
    I can easily get a sum for the full column of C, but how do I enter the formula to sum only the sales from April, for instance.
    Thanks!!

    you can get function descriptions from Apple for free by downloading the function references here:
    http://support.apple.com/manuals/#productivitysoftware
    you will want to download the formula and function reference.
    OK...
    sumif() is a function that will sum values in a range based on a condition
    sumifs() is a similar function where multiple conditions
    both functions look at each row and only sum the values in a particular row when the condition(s) are all met.
    =SUMIFS(B,C,">="&E2,C,"<="&EOMONTH(E2, 0))
    let's work from the inside out...
    EOMONTH() returns the last day of the month you pass if offset by some number of months.  In this case I asked it to give the last day of the same month I passed in so the offset is 0.  The month I passed in is stored in E2.
    the basic concept is I only want to sum values in column B when the date in column C is in a paricular month.  said another way... I want to sum values in B where the corresponding date (in the same row) of column C is greater than or equal to the 1st day of the month AND is it also less than or equal to the last to of the month.
    SUMIFS() has several arguments a range to sum followed by a pair of arguments (test values range and a condition):
    SUMIFS(<SUM_RANGE>, <TEST_RANGE1>, <CONDITION1>, <TEST_RANGE2>, <CONDITION2>, etc )
    the sum range is column B
    test range 1 is the date column (column C)
    the condition is ">="&E1  which concatenates ">=" with the date in cell E1 to make a condition ">=Jan 1, 2013"
    test range 2 is the date column (column C)
    the condition is "<="&EOMONTH(E1, 0)  which concatenates "<=" with the date corresponding to the last day of the monthe in cell E1 to make a condition "<=Jan 31, 2013"
    I hope this helps

  • How to use parsing technique to access a particular value from a webpage

    hi,
    i'm in need of a coding to access a particular value from a webpage only by using its link. one of my friend said the we can do this by parsing technique. but i doesn't have knowledge about it. can any one help me?

    ksnagendran26 wrote:
    hi,
    i'm in need of a coding to access a particular value from a webpage only by using its link. one of my friend said the we can do this by parsing technique. but i doesn't have knowledge about it. can any one help me?I'm sorry could you explain in detail what do you mean by +"access a particular value from a webpage only by using its link"+?

  • Counting rows with a particular value

    Hello. I recently posted this thread Count java problem for how to count an attribute.
    Now I need that count to be limited to a certain value inside the attribute.
    let me clarify. I have a table Casinos, which is connected to a table SlotsInCasinos, which is further connected to SlotMachines in a many to many with SlotsInCasinos being the intersection.
    The previous post that I mentioned (thanks Timo by the way) told me how to count all the slots in a particular casino.
    Now I would like to know how I could count all the slots of a particular value (for example Poker slot Machines, regular Slot machines, etc) instead of the total count in a particular object.
    So on the page I would have lets say 2 output texts, one showing the number of Poker Slot Machines in that particular casino and the other showing the number of regular Slot machines in that particular casino (a third could show the number of some third kind of slot machines).
    Thank you for your time

    Hello everyone here is an update
    I created a view object called Test, based on the entity object SlotMachinesInCasino. I then created a view link TestLink and created a master detail relationship (the same one I already had for the View Object SlotMachinesCasinosVO.
    The difference is in the query for test I put the following
    SELECT
        VezaTehOpTipAp.OBJEKAT_ID,
        VezaTehOpTipAp.TIP_APARATA_ID,
        VezaTehOpTipAp.VEZA_TEH_OP_TIP_AP_ID,
        TIPOVI_APARATA.NAZIV_APARATA NAZIV_APARATA
    FROM
        VEZA_TEH_OP_TIP_AP VezaTehOpTipAp,
        TIPOVI_APARATA
    WHERE
        TIPOVI_APARATA.NAZIV_APARATA = 'Evona'My thinking was that if I do this the estimated row count function for this will just give me the number of Evona Game machines. I tried it out in an SQL Worksheet and it gives back only the Evona machines.
    Unfortunately when I create the TestIterator and then drop output text whose EL is the estimated row count for the test iterator it does not work as intended. It counts all the Slot Machines in the Object no matter the Name.
    So it gives a number equal to all the slot machines instead of to the number of slot machines with name 'Evona'.
    What did I do wrong?

  • Consult a Lookup in a particular value from a reconciliation

    Hello everybody ...
    I need to find a method (tcLookupOperationsntf) that searches a Lookup a certain value (string). For example, I have several records in a Lookup as follows OU=pp_99123,OU=PE,DC=domain,DC=net , I contain only the number 99123 which is a unique identifier. I need that number by 99,123, I return the full amount coming from the Lookup OU=pp_99123,OU=PE,DC=domain,DC=net. It would be a research method, but I can not find. Does anyone know answer me?
    Thank you in advance

    Hi Sam,
    You cannot do this directly as exclusion, but you can include all other values, even as ranges and thus exclude the particular value, else you can also try to do this by writing a routine.
    Hope this helps...

  • Query not executing for one particular value

    Hi
    I have query on multi provider. and this multi provider is combination of Info objects only but not any ODS or cubes. I have one key figure in this multi provider.while executing the query i need to give input for variabl which has 7 different values. Query is executing fine for 6 values but not for one particular value.
    query executed in listcube transaction and it is executed fine here for the same selection. then what might be the reason?
    Please advise as soon as possible.
    Thanks

    Hi Kiran,
    are you maintaining any filters in the query? or is there any logic in the exit for this variable.
    regards.

  • How to display only Negative values in the report.....

    Hi,
    I want to display only negative values for one particular column.
    Any suggestions ?
    Thanks,
    Jeetu

    Hi,
    define a condition for all characteristics and for specially the keyfigure. Set it to < 0. That should do the trick.
    regards
    Siggi

  • Output only numeric values

    CREATE TABLE XYZ( A1 VARCHAR2(10));
    Inserting value in table
    SELECT * FROM XYZ;
    A1
    1
    999
    45
    $
    ^
    +
    =
    How get output only numeric values ?

    Hmm..
    satyaki>
    satyaki>select * from v$version;
    BANNER
    Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Prod
    PL/SQL Release 10.2.0.1.0 - Production
    CORE    10.2.0.1.0      Production
    TNS for Linux: Version 10.2.0.1.0 - Production
    NLSRTL Version 10.2.0.1.0 - Production
    Elapsed: 00:00:00.01
    satyaki>
    satyaki>
    satyaki>CREATE TABLE XYZ( A1 VARCHAR2(10));
    Table created.
    Elapsed: 00:00:00.07
    satyaki>
    satyaki>insert into XYZ values('&val');
    Enter value for val: 1
    old   1: insert into XYZ values('&val')
    new   1: insert into XYZ values('1')
    1 row created.
    Elapsed: 00:00:00.00
    satyaki>/
    Enter value for val: 999
    old   1: insert into XYZ values('&val')
    new   1: insert into XYZ values('999')
    1 row created.
    Elapsed: 00:00:00.00
    satyaki>/
    Enter value for val: 45
    old   1: insert into XYZ values('&val')
    new   1: insert into XYZ values('45')
    1 row created.
    Elapsed: 00:00:00.00
    satyaki>/
    Enter value for val: !
    old   1: insert into XYZ values('&val')
    new   1: insert into XYZ values('!')
    1 row created.
    Elapsed: 00:00:00.00
    satyaki>/
    Enter value for val: @
    old   1: insert into XYZ values('&val')
    new   1: insert into XYZ values('@')
    1 row created.
    Elapsed: 00:00:00.00
    satyaki>/
    Enter value for val: $
    old   1: insert into XYZ values('&val')
    new   1: insert into XYZ values('$')
    1 row created.
    Elapsed: 00:00:00.00
    satyaki>/
    Enter value for val: #
    old   1: insert into XYZ values('&val')
    new   1: insert into XYZ values('#')
    1 row created.
    Elapsed: 00:00:00.00
    satyaki>/
    Enter value for val: ^
    old   1: insert into XYZ values('&val')
    new   1: insert into XYZ values('^')
    1 row created.
    Elapsed: 00:00:00.00
    satyaki>/
    Enter value for val: &
    old   1: insert into XYZ values('&val')
    new   1: insert into XYZ values('&')
    1 row created.
    Elapsed: 00:00:00.00
    satyaki>/
    Enter value for val: *
    old   1: insert into XYZ values('&val')
    new   1: insert into XYZ values('*')
    1 row created.
    Elapsed: 00:00:00.00
    satyaki>/
    Enter value for val: (
    old   1: insert into XYZ values('&val')
    new   1: insert into XYZ values('(')
    1 row created.
    Elapsed: 00:00:00.00
    satyaki>/
    Enter value for val: )
    old   1: insert into XYZ values('&val')
    new   1: insert into XYZ values(')')
    1 row created.
    Elapsed: 00:00:00.00
    satyaki>/
    Enter value for val: -
    old   1: insert into XYZ values('&val')
    new   1: insert into XYZ values('-')
    1 row created.
    Elapsed: 00:00:00.00
    satyaki>/
    Enter value for val: +
    old   1: insert into XYZ values('&val')
    new   1: insert into XYZ values('+')
    1 row created.
    Elapsed: 00:00:00.00
    satyaki>/
    Enter value for val: =
    old   1: insert into XYZ values('&val')
    new   1: insert into XYZ values('=')
    1 row created.
    Elapsed: 00:00:00.00
    satyaki>
    satyaki>commit;
    Commit complete.
    Elapsed: 00:00:00.00
    satyaki>
    satyaki>
    satyaki>select * from XYZ;
    A1
    1
    999
    45
    $
    ^
    A1
    +
    =
    15 rows selected.
    Elapsed: 00:00:00.01
    satyaki>
    satyaki>
    satyaki>
    satyaki>select * from XYZ
      2     where regexp_like(A1,'[[:digit:]]');
    A1
    1
    999
    45
    Elapsed: 00:00:00.00
    satyaki>
    satyaki>Regards.
    Satyaki De.

  • Mandatory parameter in Oracle BI Publisher 10g

    Can we define a parameter to be mandatory so that user needs to enter some value for it in Oracle BI Publisher 10g? If yes how do we do that?
    Edited by: 933296 on Aug 23, 2012 7:49 PM

    No option is provided for such action.
    If you really want the user to enter a value then you need to capture the NULL value from parameter and pass it to template and display a text message accordingly for this case.
    regards
    Jorge Anicama
    p.s. If this answers your question then please mark the answer as "correct" else as "helpful"

  • Retreiving only particular keys from a properties file

    hello friends,
    can someone kindly tell me , is there any way to retreive only particular keys from a properties file .
    for e.g the file is as follows
    abc.properties
    ad_1 = "hello"
    ad_1_fg = "bye"
    ad_1_hj = "dfd"
    ad_1_jk = "sdfsdf"
    bk_2_jk = "sdfdsf"
    bk_2_lk = "klklk"
    so lets say at run time , i get the key ad_1 , and i am told to retreive all the keys from the properties file starting only with ad_1, then how do i do it.
    I tried using ResourceBundl,PropertyResourceBundle, but they all get all the keys, and tehre is no way to specify within them that get only keys with particular format.
    please do help me

    Retrieve all the properties, and then loop over them
    looking for those whose names match the pattern you
    need.hello jverd thanks for your quick response, i was thinking the same, but lets say i retreive all keys, then how do i match them to my pattern, i mean if some keys is like this jhk_ad_1 , so i dont want that , i only want keys starting from ad_1 , hope u got what i am trying to say.
    i mean i want all the keys that are starting from the runtime value i am getting

  • Hashtable- how to retrieve key for a particular value?

    I fetched few values from the database and stored all them using hashtable. Then i check for the value entered by the user in a textbox using contains() method of hashtable. Now i want to fetch the key associated to this particular value so that i can pass it to my rest of the program?
    Pls help me....

    The obvious question is what are you using as your key when you store the value into your hashtable?? The idea behind the key/value system is that you use the key to get the value you want, not the other way around. In your current situation, the contains() method might return true, but that could you mean you have 1, or 1000 instances of that value in your hashtable. Which key do you want? You could, I suppose, parse through the output of Hashtable.toString()... but that still wouldn't resolve the possibility of duplicate values in the hash.
    Another possible solution to your problem, depending on how your application works, is to wait until you get that user input before running your database query. Simply append the added info onto your SQL SELECT statement to accurate retrieve only those entries from the database that you will need.

  • How  Kernel Parameters values calculated in 10g*

    Hi to all;
    *10g Orace installation on OEL*
    How  Kernel Parameters values calculated in 10g
    kernel.shmall = 2097152
    kernel.shmmax = 2147483648
    kernel.shmmni = 4096
    +# semaphores: semmsl, semmns, semopm, semmni+
    kernel.sem = 250 32000 100 128
    fs.file-max = 65536
    net.ipv4.ip_local_port_range = 1024 65000
    net.core.rmem_default=262144
    net.core.rmem_max=262144
    net.core.wmem_default=262144
    net.core.wmem_max=262144
    Run the following command to change the current kernel parameters
    /sbin/sysctl -p
    **  "/etc/security/limits.conf"  **
    *               soft    nproc   2047
    *               hard    nproc   16384
    *               soft    nofile  1024
    *               hard    nofile  65536
    My question I think 32 bit or 64 bit OS calculation will be same only.
    I want know how it was calculated ?
    Edited by: 969352 on Feb 9, 2013 7:02 AM

    Hi
    I suggest please review:
         Relationship Between Common Init.ora Parameters and Unix, Linux Kernel Parameters [ID 144638.1]
    Regard
    Helios

  • Collection Method to check for the existence of a particular value

    I have to use an associative array to store a list of values. How can i check whether a particular value exists or not in the entire collection?
    The list would look like
    John
    Abel
    Keith
    Johhan
    .i just want to know whether a particular value (say John) exists or not in the entire collection.I can't use the method EXISTS because it will only returns TRUE if the nth element in an Associative array exists.
    If this is not possible with Associative arrays, what other collection types(and method) can i use for this?

    associative arrays should do the trick.
    index by varchar2() rather than binary_integer or pls_integer:
    good example here:
    http://download.oracle.com/docs/cd/B19306_01/appdev.102/b14261/collections.htm#sthref1022
    edit: I guess I should qualify this by saying that it only works like that if you've got unique values in your index, which may not be an acceptable solution for you. if you have to index by a number, then I'd also be curious if there's a solution other than looping through the whole table find a value. the only fast way I know of would be to ensure the array is ordered and perform a binary search algorithm or something.

Maybe you are looking for

  • HT5622 Can Face Time be used to connect with more than one person at a time?

    Can I connect with more than one person at a time when using Face Time?

  • I need a recovery disk

    My cousin has formatted my recovery partition and now I cannot refresh or reset my netbook to its factory settings. Is there a way that I can retrieve it or get another one? I am using HP Pavilion TouchSmart 14-b114se Sleekbook Serial Number: [Person

  • Wicd connects to Wired fine but is unable to connect to wireless

    I don't think I have changed anything, but now wicd will not connect to any wireless network (Stuck at optaining IP address, or Verifying association if I use static ip, and then, without saying a specific error, quits connecting and goes back to not

  • Is it possible if I use Adobe Acrobat reader

    Hi all. I have some question to ask about Adobe acrobat reader and Adobe acrobat professional. Is it possible if I use Adobe Acrobat reader to input data in PDF file that is generated by interactive form using web dynpro or Abap program. I try to use

  • SVG Series chart problems and wish list

    Hi, I've noticed that when I add more than 3 series, the fourth item in the legend is displayed below it, amidst the data, in other words the legend is not resized or the exceeding elements are not accomodated in the spare space available inside the