Document Counter in cube

Hi, Can someone please suggest me on the following issue:
I am trying to add Document count keyfigure and also maintain its history in the Cube which is already there in the ODS.The ODS is feeding the Cube and I want report on the Cube and not on the ods.
Note: The cube already contains the Document Item Counter.
Also, is there any way that I can derive Document Count from the Document Item Counter KF using Replacement path variable.
Thanks,
sruthi

Hi,
Just create one Line Item Dimension in infoCube for Document Number, in BEx Designer create one Formula Variable using Replacement Path.
Create a formula variable of type Replacement Path, assign the Reference Characteristic to that here I think Document Number, in second Tab Replacement Path Define Replace Var. with -> InfoObject, Replace with -> Attrib. value, Attribute -> Char. Ref.
After Creating Formula Variable create Calculated Key Figure using this formula variable in Aggregation define Calculation after Aggregation.
Regards,
Rajdeep.

Similar Messages

  • Filtering in Document Count

    Hi,
      I have a doubt on Query.
    I need to display the Count of Closed and Pending  service Orders in the report.
    I have info Object 0CRM_USSTAT which contains all the status of the Service Orders.
    Based on the document "How to Get the Document Count in a Query using Formula Variable with Processing Type Replacement Path", I can able to count the Service Orders. But i need to display the count only for Closed Service Orders and Pending Service Orders.
    Can u pls provide what are the steps i need to perform.
    Thanks,
    Shahina A

    Hi Shahina,
    How to Get the Document Count in a Query using Formula Variable with Processing Type Replacement Path :
    Pre-requisites:
    Document Number (Purchase Order/Sales Order Number) should have been included as a characteristic in the Info Cube. It can be defined as a Line Item dimension for better Query performance.
    Summary
    In some business scenarios, it may be required to find out the document count for analyzing certain Key Performance Indicators (For example Number of Orders in a given period). This article illustrates the steps to get the Document Count in a Query using Formula variable with processing type as Replacement path. This article also brings forth one of the major differences between Calculated Key Figure and New Formula.
    Create a New Calculated Key Figure
    The first step is to create a New Calculated Key figure for the Number of Documents/Orders.
    Open Query Designer.
    Create a new query or open an existing Query.
    Drag and drop the required Characteristics and Key figures to the rows and columns depending on your business-reporting requirement.
    From the context menu of the Key Figure directory, choose New Calculated Key Figure.
    Provide a description, for example Number of Documents/Orders.
    The next step is creating a formula variable for getting the document count.
    From the context menu for the Formula Variable, choose New Variable. 
    Provide the technical name and description for the variable.
    Choose the Processing type as Replacement Path.
    In the next screen, select the Characteristic Info Object based on which the number of documents is to be displayed in the report (For example: Document Number / Order Number). 
    Choose Next.
    In the Replace Variable with drop down box, choose Attribute Value.
    In the Attribute drop down, select Characteristic Reference (Constant 1).
    Choose Next.
    On the Save Variable page, an overview of the settings made for the variable will be displayed.
    Confirm the entries and Choose Finish. 
    Open the formula variables directory and use Drag & Drop to transfer the formula variable as shown in the screen shot.
    If the Formula variable is directly assigned to the Calculated Key Figure, a warning Calculated Key Figure is not defined correctly will be displayed while executing the Query.
    To avoid the warning message, the formula variable is multiplied by 1 as shown in the screen shot.
    Choose OK.
    In the Properties of Calculated Key Figure dialog box, assign a Technical name for the CKF.
    Set the number of Decimal placed to 0.
    The most important step here is to set the Time of Calculation to After Aggregation.
    Then only the total Number of Documents/Orders will be displayed correctly in the report.
    If itu2019s set to Before aggregation, when an existing document is changed in the source and data is loaded to the cube using a new delta request, the document count will be displayed as two instead of one.
    By Default the Time of Calculation is set to After Aggregation. 
    Choose OK. 
    The new calculated key figure is available under Calculated Key Figure in the Key Figure directory, and can be included in the query definition using Drag & Drop as shown in the screen shot below.
    You may have to include another Key Figure also in the definition; otherwise an error message will be displayed in the query. If you donu2019t want to display the newly added key figure in the report, you can hide it by choosing Properties from context menu of the key figure and selecting the Hide option.
    Save and Execute the Query.
    The sample report shown here displays the total number of Documents/Orders for each plant on a daily basis. 
    Why Calculated Key figure instead of New Formula?
    The replacement of formula variables with the processing type Replacement Path acts differently in calculated key figures and formulas:
    If you use a formula variable with u201CReplacement from the Value of an Attributeu201D in a calculated key figure, then the system automatically adds the drilldown according to the reference characteristic for the attribute. The system then evaluates the variables for each characteristic value for the reference characteristic. Afterwards, the calculated key figure is calculated and, subsequently, all of the other operations are executed, meaning all additional, calculated key figures, aggregations, and formulas. The system only calculates the operators, which are assembled in the calculated key figure itself, before the aggregation using the reference characteristic.
    If you use a formula variable with Replacement from the Value of an Attribute in a formula element, then the variable is only calculated if the reference characteristic is uniquely specified in the respective row, column, or in the filter.

  • Document Count

    Hello Gurus,
    I have a requirement to display the document count of Document numbers.
    I am querying on an infoset, which has a Cube and an DSO. The cube contains header data. Hence there is 1 count against the document number. The DSO holds item details, which would have more than 1 item per document number.
    When I execute the query I would like to see Count = 1, against Doc no. 10001, which has 3 line items in the DSO. Instead its showing the Count = 3.
    Is there a way around for this.
    Thanks in advance

    Hi,
        Just refer this document,
    https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/009819ab-c96e-2910-bbb2-c85f7bdec04a
    Hopefully this will work on Infoset also.
    Regards,

  • Retrieve document count in document library

    Guys, I'm trying to figure out how I can get the document count in a document library. I suspect we've reached the magical number of 5000 documents in a library which causes sync issues, and I need a way to find out if this is the case. I spend the last
    45 minutes searching the web for a solution just to count the documents in a library, but apparently, Sharepoint does not offer an easy way to view this information. I've found custom webparts and even apps to get the document count, but they require some
    in-depth Sharepoint knowledge I don't have.
    One of the sites I found:
    http://www.c-sharpcorner.com/UploadFile/anavijai/how-to-get-the-number-of-items-inside-the-folder-in-sharepoi/
    Is there another "easy" way to view the amount of documents stored in the document library ona Sharepoint Online site? I tried to use the "Browse with explorer" button to count al the documents. It works, but it counts about 4800 documents,
    so it probably does not count all the items stored.

    Hi Tom,
    According to your description, my understanding is that you want to retrieve the document count in document library.
    I suggest you can query all document in all folders using Client Object Model. Before you use Client Object Model, you need to install the SharePoint Componments SDK firstly.
    Here is a code snippet for your reference:
    ClientContext clientContext = new ClientContext("your site");
    Microsoft.SharePoint.Client.List spList = clientContext.Web.Lists.GetByTitle("Documents");
    clientContext.Load(spList);
    clientContext.ExecuteQuery();
    if (spList != null && spList.ItemCount > 0)
    Microsoft.SharePoint.Client.CamlQuery camlQuery = new CamlQuery();
    camlQuery.ViewXml =
    @"<View Scope='RecursiveAll'>
    <Query>
    <Where><Eq><FieldRef Name='FSObjType' /><Value Type='Integer'>0</Value></Eq></Where>
    </Query>
    </View>";
    ListItemCollection listItems = spList.GetItems(camlQuery);
    clientContext.Load(listItems);
    clientContext.ExecuteQuery();
    Console.WriteLine(listItems.Count);
    Console.ReadKey();
    Here are some detailed articles for your reference:
    SharePoint Server 2013 Client Components SDK
    Complete basic operations using SharePoint 2013 client library code
    Best Regards
    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]
    Zhengyu Guo
    TechNet Community Support

  • PDF Document Counting Form Field

    I've searched and can't seem to find a solution to this - is there a way to include a document counter so that when a person opens or saves a pdf, it shows the number of that pdf. If I open it, it will show Doc #1 and the next person to open/save it, shows Doc #2 and so forth.
    Thank you!!!

    I know nothing about programing.  However, I was able to create a stamp following the directions at http://blogs.adobe.com/acrolaw/2009/05/add_dynamic_exhibit_stamps_in_ac.html,
    The problem is that I need the stamp value to increment each time I stamp something.  For example, if I have a binder with 40 emails, I want to be able to just go through the pages and stamp each one with the number on the stamp incrementing by one.  Can you or anyone tell me how to do this - in language suitable for a "dummie"?  Thank you.  My email is [email protected] Thanks again.

  • Document currency in cube but not in the getting in query out put

    Hi Gurus,
    I am in production.... my query is regarding account receivable( which is user defined ie., is custom )  i am able to see amount in document currency in cube but is not appering when i excute the query ...
    And i am to get the output amount in local currency ( i am getting ) amount in document ( not getting )
    and revalution amount ( not getting )---- which is cal key fig 
    and finally   Amount FAS ( not getting ) ---  which is Restricted key fig
    Gurus Please suggest ..........

    Hi,
    The fields in the report
    customer
    HFC code
    doc Number
    business divison
    sales order
    country
    profit center
    customer number compounded with company code
    customer payment terms
    reference
    documennt type
    document date
    net due date
    G/L Account comp cpde
    item  Status
    Document currency
    Account in Local currency
    Amount  in Document currency
    filters are
    compay code
    controling area
    Business Division
    Free char
    Controling area
    account type
    clearing Doc Number
    Ref Key 2
    Fical year
    Fiscal year / period
    interunit / outside
    Posting Date
    Leading BD ( Wbs Attr)
    in rows
    customer
    doc number
    business divison
    sales order
    country
    profit center
    customer bumber compounded with company code
        under this we have customer payment terms
    Reference
    document type
    document date
    Net due date
    G/L Account Comp code
    item status
    Document Currency
    In columns
    i am selecting
    Amount  in local currency
    amount Document currency
    Revaluation amount
    Amount in FAS

  • Minimize the count of cubes when there are more number of cubes

    Hi All:
    Need your inputs on reducing the count of cubes when there are more number of cubes in any project.
    On which basis we can downsize the count of cubes? For example,if there 30 cubes in same region,I want to reduce them to ,say 20 cubes.
    Please share your thoughts.
    Regards,
    Upendra.

    You need to evaluate all of your existing cubes and see if there is any overlap in dimensionality that would allow you to combine cubes. Such as if one is actuals and another cube is budget for the same data, possibly you can combine those. Or as someone else suggested based on Business Units (If the other dimensions allow it. Perhaps conflicting Account or other structures won't allow it. )
    However you have to then balance combining cubes against larger cube size which could impact calc time and other performance issues.
    Its all a balancing act.
    Look at where it makes sense to combine them. Only you know your environment enough to state if they can be combined or not.

  • Calculated keyfig for Document count with exclusions

    Hi,
    I have to create a ckf document count with exclusion, with the following logic
    "If RFK_MR8MCOUNT ==0 then count equal to 1
    Else If RFK_MR8MCOUNT <>0 then count equal to 0"
    RFK_MR8MCOUNT I already have it.
    Pls guide me which datafunction to use & how to implement it in the formula editor.
    Regards,
    Shreesh.

    I don't get all the formula's posted in this thread, they don't make any sense. For example (and all others like this one):
    NODIM((( X == 0 )1 + (Not( X == 0 ))0 ))
    First off, NODIM on a logical expression makes no sense at all, there is no dimension to a simple 0 or 1
    Second, (X == 0) will result in 0 or 1 (true or false), the *1 is of no added value
    Third, (Not(X==0)) * 0 will allways result in 0. ALLWAYS!
    You can get the same result as the above formula by using:
    (X==0)
    If that is what you need, a reversal of your count statement, use it.
    Kind regards,
    Alex

  • CF8 verity french reports wrong document count

    I had to rebuild a number of collections that use the verity
    language packs in migtrating to 8. All of the document counts
    displayed in the cfadministrator and by calling #recordsSearched#
    come out correctly EXCEPT for the french language one. I deleted
    and rebuilt the collection 3 times, same results each time. As near
    as I can tell, the collection is behaving correctly in terms of
    finding items- no duplicates displayed, and the most I can find
    with any search is 55 documents (expected total)
    Since I am pulling from a database, I know exactly how many
    records I have (76), 55 of which have electronic versions and get
    indexed. I looped a query to index the documents and output the
    title and action each time to visually verifiy that it looped 76
    times, and did the indexing 55 times. Yet my document count is 133
    with each build.
    Has anyone else seen anything similar? It's not a fatal
    problem by any means, but it is weird and I would love to know that
    I can rely on the recordSearched returned. (Arabic, Spanish,
    Russian, Portuguese, English were all fine.)

    CF_Ninja,
    I get your point. What you discovered isn't new, and didn't start with Adobe. In fact, it is so common in commercial software, you can even call it a new Murphy's law. If version s is the latest version of a given software(say, Coldfusion 9), and there has been a switch from module m1 in version s-1 to module m2 in version s (say, the switch from Verity in CF8 to Solr in CF9), then the module m1 will invariably be crappy.
    The developers of CF8, already with a euphoric eye on the future use of Solr, would inadvertently have ignored any further development of Verity. It's only human to think: Why waste all that effort on an end-of-life product?
    I share your choice. The Coldfusion Jedi has a good comparison of Verity and Solr

  • Document count in query

    Hi All
    I have 2 queries, query A and query B between these queries in tcode RSBBS i have created a report to report link. Query A shows summarised car mileage data such as total miles and total cost, while query B shows more detalied info about the milegae such as trave location travel reason etc. The report to report works fine as the user can right click from a line  from query A and go to to query relating to that line in Query B with the more detailed data.
    Now i want to create a document counter that will count how many records in query B, the problem i am facing is that because Query A and Query B are based on different infoprovider, when I am creating my formula variable in reference characteristic i cannot select the info object i need to count the lines because of the fact they are based on different info provider.
    Does anyone have any workarounds on how i could achive this.
    regards
    Forhad

    Hi,
    You can create a multiprovider on the two info providers.
    -Vikram

  • Dso updating item count to cube

    Hello experts.
    I am counting item in transformation from data source to DSO (key fields - order no and item no).
    Result = 1`.
    In DSO, count works fine.
    Now, I am updating DSO to a summary cube.
    What transformation routine I need to write, so that an item only count once and not aggregated when same item and order comes in multiple times.
    Is this routine correct -
    if source_fields-recordmode = 'R' or
      source_fields-recordmode = ' ' .
    result = '-1'.
    else.
    result =1.
    endif.

    Ramesh,
    No need to write any code while mapping from DSO to CUBE.
    Just map, counter(one-to-one) from DSO to CUBE.
    Change DTP settings to from change log. Change log takes care of new, changed or canceled records.
    Hope it Helps
    Srini

  • Using ISEG as datasource for cycle counting BW cube

    ISEG captures the cycle count transactions in R3. As far as I know there is no business content cycle counting cube or extractors. I would like to create an extractor against ISEG to bring into BW in order to create a custom BW cycle counting cube. I would like to know any pertinant notes on advice in general on using ISEG as a datasource. I do understand how to create new extractors; I'm looking for any nuances with ISEG. Perhaps data quality, keys, delta processing, new content etc., just for examples.
    thanks
    Bob Bechtel

    Hi Bob,
    I have faced the same situation as yours. Could you tell me how you proceeded to get this cycle couting cube in place.
    Thank you.
    Cheers,
    DM

  • Documents attached to cube: transport?

    We want to attach technical documentation to a cube. Problem is that this technical documention will not be transported when we transport the cube.
    Any idea on how we can include documents in a transport (manually or automatically)?

    Use program RSOD_CTO.

  • Document Count when Condition is Active

    Hi Experts
    I have the following scenario
    I have a Calculated Key Figure which by formula variable *1 calculates the number documents.
    The count works correctly as it gives me the proper count of the documents that make up the amount on that line. Let suppose it was 180 documents and that 175 of these have amount =0.
    However after applying a condition that would not display the records whose amount = 0, I would expect the count to change to 5,  but still gives me 180.  The document number is not a field in the default view of the report.  If I bring the docuemnt number with my condition active, it displays the 5 reports.  Puts a one in the counter and the result row display 5.
    If document number is not in the view, I get 180 when its supposed to be 5. 
    Am I missing a setting on the Calculated Key Figure.  I have calculate single values as Total, I have reference characteristic: Document Number, and the CKF has Aggregation: After
    Thanks in advance.

    Thanks Ananda
    But what I am really looking for is an unique document number counter.
    I have several records (updates, etc.) that roll up in the document level to make up my amount.
    I dont want a record count.  I want a document number counter that will work when the condition is applied.

  • Document count limit under folders

    We are trying to figure out what the library file count restriction is for items under a folder.
    We can see here:
    http://technet.microsoft.com/en-us/library/cc262787(v=office.15).aspx#ListLibrary
    Documents :: 30,000,000 per library >> You can create very large document libraries by nesting folders, or using standard views and site hierarchy. This value may vary depending on how documents and folders are organized, and by the type and size of
    documents stored.
    Does that mean there is a file count limit of some sort under folders for a library?
    Thank you!

    +1 on Paul's comments.
    In the document you referenced,
    http://technet.microsoft.com/en-us/library/cc262787(v=office.15).aspx#ListLibrary, you will see that the 30,000,000 is a "Supported" number. Microsoft defines three kinds of limits.
    Boundaries: Static limits that cannot be exceeded by design
    Thresholds: Configurable limits that can be exceeded to accommodate specific requirements
    Supported limits: Configurable limits that have been set by default to a tested value
    The actual limit on documents is based on restrictions in SQL Server, which is much larger than 30,000,000.
    The guidance for number of items per view (or max displayed in a page or retrieved via code in a single batch) is 2000 for SharePoint 2007 and 5000 for SharePoint 2010 and 2013. The 2000 limit was based on "testing" and the 5000 is based on a SQL Server
    restriction. Note that in the referenced page the 5000 is listed as a "Threshold" and that you can change this in Central Administration. But, SQL server escalates from row locks to a table lock at 5000 rows. As all documents in all libraries in all sites
    in a site collection (and possibly in an entire web application) are stored in a single table, one user exceeding 5000 rows in a request would be locking all other users out for the duration of the request.
    Folders, grouped views and the 5000 "Threshold" are all ways of limiting problem sized requests. Bottom line, the size of a library or a folder is practically unlimited, while the maximum number of items displayed in a single request should never exceed
    5000.
    http://technet.microsoft.com/en-us/library/cc262787(v=office.15).aspx#ListLibrary
    Mike Smith TechTrainingNotes.blogspot.com
    Books:
    SharePoint 2007 2010 Customization for the Site Owner,
    SharePoint 2010 Security for the Site Owner

Maybe you are looking for