Create a metric to count on Item Number begining with 9 or 7

I need to create a metric that counts on all Pay Item Numbers that begin with 9 or 7

CASE WHEN metric LIKE '9%' OR metric LIKE '7%' THEN 1 END
you might need to cast it as char and metric's aggregation must be set to Sum

Similar Messages

  • @count for first names beginning with "

    I was trying to come up with a formula for counting club members and partners by using an "&" in front of the first name of partners. I could not find a conditional function whereby I could count the names that begin with the "&". I used trial and error with various count functions on strings with if thens, etc. I either end up with syntax errors or a null. Not that important but I like solving puzzles and may find a use for the concept with other strings in the future. Bottom line is: I would like to pick out a unique character at the beginning of different strings and count it (numerically) if is there (true).

    Here's an alternative that is similar to Jerry's, but allows placing the ampersand in a more logical location in the Name column entries. The yellow-filled column (Flag) may be hidden.
    Column B: Entered data (names), with an ampersand used to join names of partners where applicable.
    Column C (Flag) contains a formula that places a null string in rows where there is no entry in the column B (Name), zero in rows where the names entry does not contain an ampersand, and a number larger than zero corresponding to the position of the ampersand in rows where the Names entry has one.
    C2, and filled down: =IF(LEN(B)>0,IFERROR(FIND("&",B),0),"")
    Cells D2 and E2 contain similar formulas to count the two-name (partner) entries and the single name entries, using the flags set in column C.
    D2: =COUNTIF(C,">0")
    E2: =COUNTIF(C,"=0")
    Regards,
    Barry

  • How to I get the iPad to recognize a number beginning with 0 without it cutting off the 0

    How do I get the iPad to recognize a number beginning with 0 without dropping the 0.  And how do I get the iPad to recognize a 4 (birth year) or 5 (zip code) digit number with adding a comma delineating it to thousands?

    Hi,
    Because the iPad requires more power than from a normal USB port can supply therefore you can not charge an iPad using ONE USB port on a laptop/PC.  Please try this free utility, many HP users say it works:
       http://event.asus.com/mb/2010/ai_charger/
    Regards, 
    BH
    **Click the KUDOS thumb up on the left to say 'Thanks'**
    Make it easier for other people to find solutions by marking a Reply 'Accept as Solution' if it solves your problem.

  • When using a chart in Pages, the first zero is deleted in any number beginning with a zero

    When using a chart in Pages, the first zero is deleted in any number beginning with a zero (for example, 055). How do I stop this?

    The leading zero in the value 55 is unnecessary, so Numbers eliminates it for cells formatted as Number or Automatic. A cell formatted as Text prior to making the entry will take whatever you type into it and keep it as entered. A cell formatted as Numeral System will display as many places as you tell it to, and will add zeros as necessary without your even having to type them in.
    Jerry

  • Purchase requistion number and line item number linkage with work order opr

    Hello,
    I want to know what is the link between Purchase requisition number along with its line item number with work order operation number.
    For the non stock component assign to Work order operation ( say operation 10) the PR get generated for that component which assign to that operation .
    in which table we can find that PR as input and output as Work order number along with its operation .
    In AFVC table if we put PR as input then it does not show any entry for that PR number?
    Regards
    Vaibhav

    HI Vaibhav,
    If you have the Work Order Number AUFNR, then you can get AUFPL from AFKO.
    Then Pass AUFPL to AFVC table to get BANFN(Purchase requisition number) and BNFPO(Item number of the purchase requisition in the order).
    Regards,
    Ravi

  • Can I create a list which counts the number of documents of a specific metadata type by the folder they are stored within?

    Running SP2013 Foundation. My users interact by uploading documents to personal folders within a document library, selecting the type of document they have uploaded via a lookup column and SP list. I have two levels of view in my library, a top level view
    and an in-folder view which contains the metadata and standard document information like version and modified date etc.
    Currently I am able to count the total number of documents that have been uploaded of a particular document type against my document type list, but I would also like to include folder along with document type to thoroughly track document returns by folder
    name. The desired output being a list with a count of document type uploaded by folder name.
    I have tried creating an associated user column at the top level view and also uploading an associated user and folder name list.
    Is this possible and how would I go about this?
    Many thanks for any assistance

    Hello MJH9J,
    Thank you for your question.
    We are currently looking into this issue and will give you an update as soon as possible.
    Thank you for your understanding and support.
    Best Regards,
    Zhengyu Guo
    Zhengyu Guo
    TechNet Community Support

  • Line item number issue when manually created PO is attached to Auto PO

    Initially, we have an automatically-created PO with 4 line items. We created another PO in R3 system and added the line items to the auto-PO. When this was added as 5th line, the item number listed was 14 (instead of 5). Could you help me investigate on this?
    Thank you!

    hi..
    please check the number assignment for your PO document type...
    whether there is serial number profile assigned to that Doc type or not....
    Thanks..

  • BOM Item number and the pr number created through network

    We can create PR through network. If we know the PR number and the item number, how do we find the BOM item number in the network?
    BOM item number
    Item number of the BOM components copied into the order.

    RSDB
    RSBD POSNR

  • Create Store Procedure to Count Number of records in Database for each table

    Hello,
    I have created the code which counts the number of records for each table in database. However, I want create store procedure for this code this code that when ever use execute the Store Procedure can provide the database name to execute it and as a result
    table will display number of records in each table.
    Below you will find the code its working:
    CREATE
    TABLE #TEMPCOUNT
    (TABLENAME
    NVARCHAR(128),
    RECORD_COUNT BIGINT)
    -- Creating a TEMP table
    EXEC
    sp_msforeachtable
    'insert #tempcount select ''?'', count(*) from ? with (nolock)'
    SELECT
    * FROM
    #TEMPCOUNT
    ORDER
    BY TABLENAME
    DROP
    TABLE #TEMPCOUNT
    This code need to be convert in store procedure and user can give database name when execute the procedure in order to count the records.
    Looking forward for your support.
    Thanks.
    SharePoint_Consultant_EMEA

    Something like:
    set quoted_identifier off
    go
    create procedure usp_TableCounts
    @DBName as varchar(1000)
    as
    set nocount on
    declare @SQLToExecute varchar(1000)
    CREATE TABLE #TEMPCOUNT (TABLENAME NVARCHAR(128), RECORD_COUNT BIGINT) -- Creating a TEMP table
    set @SQLToExecute = @DBName + ".dbo.sp_msforeachtable 'insert into #tempcount select ''?'', count(*) from ? with (nolock)'"
    print @SQLToExecute
    exec (@SQLToExecute)
    SELECT * FROM #TEMPCOUNT
    ORDER BY TABLENAME
    DROP TABLE #TEMPCOUNT
    GO
    Satish Kartan www.sqlfood.com

  • Cust  for Item number calculation when creating/changing a sales orders

    Hi
      I need to know if the item number when capturing/ modifying  a sales order can be calculated automatically with some route in the customizing,  or do I need to do it with some user exit in the sales order entry?.
    Thanks!
    Regards
    Soraya

    Hi,
    Goto the T.Code "VOV8".
    Select your order type.Details.
    Goto the "Number systems" tab.
    Maintain the value as "10" or "15" like this any number as per your requirement for the field "Item no.increment".
    So that the main item will be incremented by the number you specified here.Suppose you specified the number as "10" the line item numbers would be 10,20,30,.....
    Next is if you maintain the value for the field "Sub-item increment" then the sub items will be incremented by the number you specified here.
    It would be mainly used in the case of BOM.
    To get the numbers from the order,goto the T.Code "SE11/SE16".
    Enter the table name as "VBAP".
    Pass the order number.Execute.
    You will get the all line items with numbers.
    Regards,
    Krishna.

  • Count for item records reaches 999 the second idoc gets triggered!

    Hi Experts,
         I have an issue. Sender is file and receiver is idoc with a header and item  level records. Only one header and n number of records can be there.
    Now we want to make  this way that as soon as the count for item records reaches 999 the second idoc gets triggered.
      Hints / Solutions Pls.
    Regards,
    Arnab .

    incorporate mapping logic such that for every 999 item records create new IDoc node
    check with this UDF for IDoc node mapping, item records will be input to UDF
    int count = a.length;
    int k=999;
    result.addValue("");
    for(int i=0;i<count;i++)
          if (i>=k){
              result.addValue(""); // if records > 999, add IDoc node
              k=k+999;     
    Do rest of the mapping accordingly

  • Credit Check on Open Items number of day

    Hi
    We have setup automatic credit control and all seems to work fine,  we now want to expandon this to include open items. So we have created a static block on open items.
    The next step was to only include open itesm that have been open for longer than 60 day, sowe have entered 60 in the number of day box.  But order are stillgoing on block due to this statoc check.
    We have 0 set in the max open items box.
    Do we need to enter anything in this box.  We want the check to only include open items older than 60 days and the credit limit not to go over the main customers credit limit
    Thanks
    Barry

    Hi,
    Could you please share the answer?
    Tawsif Chogle

  • Get PO and Item number from FI Cleared Items

    Hi,
    I need to retrieve PO and item numbers from FI cleared items.
    So I retrieve the records for a particular GR/IR account from table BSIS.  Based on FI document number, item number, fiscal year and company code, I get the PO and item numbers from table BSEG.
    However, I cannot use BSEG in query i.e. SQ01.
    What is the easiest way for me to retrive PO and items numbers?
    Thanks.

    Hi,
    First of all, cleared items live in BSAS. BSIS is for the items that are still open.
    Goto SQ02 and make a direct table read to BSAS; click 'Extras' icon; on the right part of screen click 'Create' icon; give name BSEG and choose 'Additional table' radio button. The keys suggested by the system should be good.
    Regards,
    Ming

  • Need help in creating a metric Days Late

    Due Date and Pay Date are seperate dimensions with their respective ID's in the Fact_Details. Now i need to create a metric Days_Late=(Due_Date - Pay_Date).
    My question is whether i have to create this metric using the Logical Table Source editor in the Data Type Tab or by using 'Use existing logical coumns as the source' in the general tab.
    If i use the editor in the general tab then i can directly use the two dates from the dimensions. If i use the logical table source editor in the data type tab then i have to use the date Id's which are in the number format with dates concatenated with the company number id's.
    Can anyone suggest me what to do. I would appreciate any help.
    Message was edited by:
    user641749

    Create DB Objects to answer specific questions - saves a lot of headaches...

  • Count of items in ALV report

    Hi I have created an ALV report  on which i need  a count of number of lines after the sorting  and a grand total count .
    I dont need a total value of the fields but instead a count of number of lines .
    I have sorted by state ALV and then by the facility.I need a count of the number of lines for each facility and then for each region and then a grand count .
    I am using the function  REUSE_ALV_GRID_DISPLAY to display the ALV I am using the is_sort paramater to sort the ALV by the State and facility .
    What parameter do i use to give a count and a grabd count of all items

    Hi Anjali,
    Use this code, while defining the field catalog to hide the individual entries:-
    wa_field-no_out = 'X'.
    append wa_field to it_field.
    And pass this it_field in the FM for ALV Display.
    Hope this solves your problem.
    Thanks & Regards,
    Tarun Gambhir

Maybe you are looking for