How to use boolean operator to get count

Hi All,
In my query i need to add a field Count which shows number.
Meaning,
Column A   ColumnB ColumnC  Count
100               50            0            2
55                60             76         3
79                0               0           1
meaning from all three column only two has values then Count should show 2. etc....
any suggestion how to use boolean expression here ?
or anyother way to display Count ?
thanks,
KS

Hi thanks for idea.
boolean didnt work here. the formulau sugested worked...
But i wrote formula for the Count --> COUNT("overtime") and for the Count property I selected Calculate Result As --> Summation fo Rounded Values
so the output is as follows:
i had data for 3 payperiods
Count  (1st 3 columns)                    overall result(last Column)
200801     200802     200803           
1                 0             1                         2
1                1              1                         3
0                1             0                         1
Now the out put i wanted is in the last column -Result column.
I dont want Count column to be display like this. it is showing values instead of total. any this i should change for this?
thanks,
KS

Similar Messages

  • How tio use like operator in textitem to get the name

    Oracle forms6i
    Hai All
    I have created an form to create an hierarchy list. I that I had an Text_item how can i use like operator to get the name to select. which trigger i need to use. when i select the name i need to get his employee code and other details
    Thanks In Advance
    Srikkanth.M

    A is the head of Dept 10 and three person are under A namelyHow will you know that B, C and D are under A is there any parent child relationship between Leader and Employee code? If yes, Then you can create the relationship between blocks no need to set where_clause programatically. So, relationship can be like...
    leader_block.emp_code = emp_block.leader_code
    AND leader_blokc.dep_code = emp_block.dep_codeSo, when you will query data in LEADER block it will show employees which are under LEADER which you queried in LEADER block.
    Or if there is no relationship then how will you know that which employee under which leader?
    b 002 10 1
    c 003 10 1
    d 004 10 1
    When i enter the name of head corresponding other members in the department will need to display in the
    Tabular format Or if you want to query the records only for department relation. Then as you said you create two blocks then create create the relationship using dep_code between those blocks.
    like...
    leader.dep_code = emp_block.dep_code-Ammad

  • How to use LIKE operator in plsql

    Hi
    I wanted to select certain rows using like operator in plsql(Input should be given by the user). I have given my experiment here .I couldn't get any result.
    As per sql syntax while using LIKE operator we should give search criteria within single quote.where as in plsql if we give within single quote its takes as string so no output is comming.what is solution ? How to use like operator in plsql?
    sql syntax
    SQL>SELECT customer_name FROM customer_header
    WHERE customer_name LIKE 'B%' ; customer_name
    Bala murali
    Babu
    Basker
    plsql syntax
    PROCEDURE pro_custheader_like ( v_cname IN varchar2
         ,answer OUT type_refcur_customer) IS
         BEGIN
         OPEN answer FOR
         SELECT customer_name FROM customer_header
              WHERE customer_name LIKE ( ' v_cname ' );
    END pro_custheader_like;
    execution command
    sql>variable answer refcursor;
    sql>set serveroutput on
    sql>exec package_name.pro_custheader_like( 'R',:answer);
    plsql successfully completed
    sql>print :answer
    no row selected
    by
    balamuralikrishnan.s

    plsql syntax
    PROCEDURE pro_custheader_like ( v_cname IN
    varchar2
    ,answer OUT
    type_refcur_customer) IS
    N
         OPEN answer FOR
         SELECT customer_name FROM customer_header
    WHERE customer_name LIKE ( v_cname );
    END pro_custheader_like;
    Try it without any quotes. And, let us know your feedback.
    Regards.
    Satyaki De.
    Message was edited by:
    Satyaki_De

  • How to use ternary operator in JSF using EL expression

    how to use ternary operator in JSF using EL expression

    I want to use ternary operator for h:datatable columnclasses attribute like as below
    <h:datatable
    columnClasses="#{booleanExpression ? style1,style2 : style3,style4}"
    />
    But it's not working.Is there any other alternative to do this?

  • How to Use Dimension Operator

    Hi
    I'm trying to implement SCD Type 2. I have done so using conventional methods.
    I have read in some blogs that dimension operator can be used for SCD. Can any one provide me material on how to use Dimension Operator. I tried OWB User guide. But its not useful.
    I have seen that we need to create levels. But i dont need levels.
    Can somebody please tell me how to use it.
    Regards
    Vibhuti

    Hi Vibhuti,
    using dimensions with OWB 10g R2 isn't that difficult. You just create a number of attributes like an ID, a business key and probably a description and then associate each of the attributes with a level. You need at least one level that all the attributes are associated to. Then you can use the slowly changing dimension wizard (SCD) to track changes. In the SCD settings you can determin for which attribute you want to trigger history and which attributes contain your effective date and your end date (if you want to use SCD type II). Obviously you would need two additional attributes in every level for that purpose.
    Regards,
    Jörg

  • How To Use Sigma Operator?

    Hi All,
    In My Vc Application,We use Sigma Operator.
    1.Count The No Of Records.
    2.Sum of the Records Of That Field.
    What Code I Will Write And Where I Will Write That Code
    In The VC.
    Please Replay ASAP.

    Hi,
    Just add the Sigma operator to the data service out put portthen go for configuration of that Operator .
    In bottom right side Map the Fileds of Dta service to Sigma parameters(Count,Max,Min..)
    Regards,
    Govindu
    If helpful award ponits
    and let me know if ur problem not solved

  • How to use where clause with get statement in LDB programs

    Hi All,
    I am using logical databse in my report program.I am not getting how to use the where clause in the get statement is it possible to use?or if not possible only option is we should filter it after get statment is right?Can you please some body throw some idea on this?
    Regards
    Mahesh

    Hi,
    Reffer these links
    http://help.sap.com/saphelp_nw04/helpdata/en/9f/db9bfa35c111d1829f0000e829fbfe/content.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/9f/db9b5e35c111d1829f0000e829fbfe/frameset.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/c6/8a15381b80436ce10000009b38f8cf/frameset.htm
    /people/srivijaya.gutala/blog/2007/03/05/why-not-logical-databases
    reward if helpful
    Thanks,
    Suma.

  • How to use Min function to get FileName into a Variable

    I was wondering how to use MIN function in Evaluate variable in package to get the first file name from the list(Datastore)
    With reference to Merging Flat Files into a single file Post number-4
    Thanx

    Hi Diwakar,
    That List data store should be table, than only it will gives the min of the filename string,
    If it is a file datastore, Min function does not works properly it will returns a first name in the file data store.
    so please, use an interface to upload the List filedatastore into some other temp table. From that table you can use variable to get Min value of file name.
    Thanks
    Madha

  • How to use 'about' operator in Full text search query?

    Hi all,
    I have to search the following string in full text index using 'about' operator.
    'Advertisment(Cosmetics) Assets'
    If use the following query
    SELECT keyword_id
    FROM mam_keyword_languages
    WHERE contains(fts_text_uc, convert('about(Advertisment(Cosmetics) Assets)',
    'WE8MSWIN1252', 'WE8MSWIN1252')) > 0
    ORDER BY nlssort(text, 'NLS_SORT=EEC_EUROPA3')
    It gives following error.
    ERROR at line 1:
    ORA-29902: error in executing ODCIIndexStart() routine
    ORA-20000: Oracle Text error:
    DRG-50901: text query parser syntax error on line 1, column 37
    How can i do this search? Is there any other way?
    Thanx in advance.
    T.Umapathy

    Sum((postab.subtotal)*(loc.royalty)/100)
    Is there any other way to take product of two
    attributs? your help will be greatly appreciated as
    it is really stumbling block in my project. Thanks in
    advanceSuch a stumbling block should have inspired more activity on your part.
    I'd try rewriting it like this:
    sum(postab.subtotal*loc.royalty/100)[/b]%

  • How to use XRANK operator for partial match comaprison?

    Hi All,
    I am aware how to use the XRANK operator to boost a result if a managed property equals a specific value.
    XRANK(cb=400) importance:'1'
    How would I make a key word query using XRANK which will boost a result if the managed property contains a part or whole of a term as indicated in the pseudo code below?
    XRANK(cb=400) language:'*en*'
    In this scenario, I would like all results where language contains  the phrase 'en' to be boosted. I wonder if this is possible at all.
    thanks,
    Saurabh
    sdg

    Hi,
    Keyword Query Language does not support suffix matching.  So, in the above scenario it might not be possible.
    Please refer to the technet article.
    Keyword Query Language (KQL) syntax reference
    Please mark it answered if your problem resolved or helpful.

  • Can someone tell me how to use ObjectSharingInformation.GetObjectSharingInformation to get AnonymousViewLink property

    Hi,
    I am successfully using ObjectSharingInformation.GetObjectSharingInformation to get AnonymousEditLink property but I can't figure out how to use the same function to get AnonymousViewLink property it is always coming out as null does anyone know how to get
    a value for this property?
    Any help will be greatly appreciated.

    Hi,
    According to your post, my understanding is that you had an question about the property of AnonymousViewLink.
    The SPObjectSharingInformation.AnonymousViewLink property
    gets the anonymous view link for the securable object, or an empty string if the link is not available.
    There is an example about the property in the sharing.debug.js file which located in the below path, you can have a look at it.
    C:\Program Files\Common Files\microsoft shared\Web Server Extensions\15\TEMPLATE\LAYOUTS
    Thanks,
    Jason
    Forum Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
    [email protected]
    Jason Guo
    TechNet Community Support

  • How to use boolean?

    I now boolean is a data type that returns either true or false but i dont really know how to use it. Can someone please explain it for me with some common examples or codes would be highly appreaciated?
    One more question, how do you use boolean isDigit(char ch) or boolean isLetter(char ch)?
    Thanks

    public static jePrastevilo(int number){
    for(int
    int deljitelj=2;deljitelj<number;deljitelj++){
                        if(number%deljitelj==0)
                             return false;
                        else return true;
    Why this doesn't work? Retun type required?You need to make sure that the method declares that it is returning a boolean.
    i.e. public static boolean jePrastevilo(int number)
    Also think about what happens when number is less than 2?

  • Explanation how to use rainflow module with rainflow counting method

    Hello, I want to know how to use the Rainflow Classification Module in dasylab 13.0, in particular with the rainflow counting method. I save the result matrix, but I don't understand how to read it. The help is quite useless, because it doesn't explain what there is in the matrix for this method. My target is to obtain a matrix with number of cycles catalogued by mean value and alternative value.
    Someone can help me?
    thanks

    Hi Davide,
    I'm not familiar with DasyLab software, but I found some helpful documentation on NI website.
    Try to look @ these KBs:
    How to Display a Rainflow Matrix in DASYLab
    Additional Information about the Rainflow Algorithms in DASYLab
    DASYLab Rainflow Module and Counting Methods
    DASYLab Support
    Best Regards.
    CLA_Cup

  • When using restart firefox you get a folder on the desktop called old firefox data i need to know how to use this folder to get my old firefox preferences back

    i've recently reformatted my computer and i've taken the old firefox folder from before the reformat and put it on the new one but i dont know how to use it to restore my old settings
    by the way im not using a different operating system im running windows 7 like i was previously

    Here's my suggested profile resurrection procedure using the old profile folder that's inside the Old Firefox Data folder.
    '''Overview'''
    These are the steps:
    # Create a new Firefox profile
    # Remove everything from that new profile folder
    # Copy in everything from the old profile folder
    '''Create a new Firefox profile (Windows)'''
    Exit Firefox and start up in the Profile Manager using Start > search box (or Run):
    firefox.exe -P
    ''Note: Any time you want to switch profiles, exit Firefox and return to this dialog.''
    Click the Create Profile button and skip the option to change the folder location. Then select that new profile in the dialog and start Firefox.
    '''Open the New Profile folder in Windows Explorer'''
    Firefox in the new profile should look like a factory fresh installation. Open the Troubleshooting Information page using either:
    * "3-bar" menu button > "?" button > Troubleshooting Information
    * Help menu > Troubleshooting Information
    In the first table, click the "Show Folder" button. Firefox will launch your brand new profile folder in Windows Explorer.
    Leaving this folder open, switch back to Firefox, and Exit. This will leave that profile folder open in Windows Explorer.
    '''Copy Old Data in Place of New'''
    In that new profile folder, select all the contents and delete.
    Leaving that window open, open or switch over to your Old Firefox Data folder. Drill down into your old profile folder. At this level you should see a folder named bookmarkbackups among other things.
    Select everything (Ctrl+a) and Copy (either right-click > Copy or Ctrl+c).
    Switch to the empty new profile folder in other window and Paste (either right-click > Paste or Ctrl+v). This may take a minute since some of the files are large.
    '''Start Firefox'''
    Firefox should start up in that new profile with the resurrected old profile data. Success?

  • How to use Hide Tech. and Get cursor field

    Hai Experts,
    Can any one tell me about
    how and when we use hide tech. and get cursor stmt in interactive report.
    In my reqirement , i want to display PO header details like PO docno, Vendor No, and so on. when i am double clicking the EBELN , it will display the item details of the particular document number which i am clicked in the basic list.
    if i am double click the vendor number, it will show the vendor details.
    how can i get this?
    Thanks in advance  for ur reply.
    Regards,
    Msivasamy

    Thanks for ur reply.
    I got the output in this way.
    *& Report  SAPMZMMPO
    REPORT  SAPMZMMPO no standard page heading.
    tables: ekko.
    DATA: f(40) TYPE c, off TYPE i, lin TYPE i, val(10) TYPE c, len TYPE i.
    data: begin of iekko occurs 0,
            bukrs like ekko-bukrs,
            bsart like ekko-bsart,
            ekorg like ekko-ekorg,
            ekgrp like ekko-ekgrp,
            ebeln like ekko-ebeln,
            lifnr like ekko-lifnr,
            bedat like ekko-bedat,
          end of iekko.
    data: begin of iekpo occurs 0,
            ebeln like ekko-ebeln,
            ebelp like ekpo-ebelp,
            matnr like ekpo-matnr,
            menge like ekpo-menge,
            meins like ekpo-meins,
            netpr like ekpo-netpr,
            matkl like ekpo-matkl,
            werks like ekpo-werks,
            lgort like ekpo-lgort,
            eeind like rm06e-eeind,
          end of iekpo.
    data: begin of ilfa1 occurs 0,
            lifnr like lfa1-lifnr,
            name1 like lfa1-name1,
            stras like lfa1-stras,
            ort01 like lfa1-ort01,
          end of ilfa1.
    *parameters: p_ebeln like ekko-ebeln default '4500006130'.
    select-options: s_ebeln for ekko-ebeln DEFAULT '4500006130' TO '4500006135'
                     OPTION bt SIGN i.
    *start-of-selection.
    start-of-selection.
    select bukrs bsart ekorg ekgrp ebeln lifnr bedat
            from ekko into corresponding fields of table iekko
            where ebeln in s_ebeln.
    loop at iekko.
            write:/ iekko-ebeln HOTSPOT COLOR 5 INVERSE ON,
                    iekko-lifnr HOTSPOT COLOR 3 INVERSE ON ,
                    iekko-bukrs,iekko-bsart,iekko-ekorg,iekko-ekgrp.
            hide: iekko-ebeln,iekko-lifnr.
    endloop.
    iekko-lifnr,iekko-ebeln.
    at line-selection.
      GET CURSOR FIELD f VALUE val .
    WRITE: / 'Field: ', f,
            / 'Offset:', off,
            / 'Line:  ', lin,
            / 'Value: ', (10) val,
            / 'Length:', len.
    case sy-lsind.
    when 1.
    *if val = iekko-ebeln.
    if f = 'IEKKO-EBELN'.
            select  ebeln ebelp menge meins lgort werks
                    matnr matkl netpr from ekpo
                    into corresponding fields of table iekpo
                    where ebeln = iekko-ebeln.
                   for all entries in iekko where ebeln = iekko-ebeln.
            loop at iekpo.
                write:/ iekpo-ebelp,iekpo-matnr,iekpo-menge,iekpo-meins,
                        iekpo-werks,iekpo-lgort,iekpo-matkl,iekpo-netpr.
            endloop.
    endif.
    *if val = iekko-lifnr.
    if f = 'IEKKO-LIFNR'.
            select lifnr name1 stras ort01 from lfa1
                    into corresponding fields of table ilfa1
                    where lifnr = iekko-lifnr.
            loop at ilfa1.
                write:/ ilfa1-lifnr,ilfa1-name1,ilfa1-stras,ilfa1-ort01.
            endloop.
    endif.
    when others.
          leave screen.
    endcase.

Maybe you are looking for