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,

Similar Messages

  • 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.

  • 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 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.

  • 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

  • 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

  • Count of Documents

    Hi,
    How can we calculate count of documents using New Calculated key figure apart from  using replacement path.
    Thanks
    krish

    Hi ,
    Instead of doing it at the front end . You can simply write a routine in the end routine .
    Please check the code suggested by me in the below post :
    Re: Count of Sales Doc
    In the front end you can do the following :
    Create a formula (In Rows) and assign a value =1 and then save.
    Now in Aggregation tab fill the below details :
    Exception Aggregation : Select counter for all detailed values.
    Ref. Characteristic: select the object for which you want the count ( billing document etc ).
    Number of documents count in BEx
    Thanks
    Kamal
    Edited by: kamal mehta on Jan 19, 2012 2:59 PM

  • Problem with Counter in Query

    Hi Experts,
    There is a problem in my query output.
    I have a CKF for sales documents number created with replacement path which gives the correct count of number of Sales documents.
    But the req here is to create two more counters which will be counting the passed and failed count with reference to other KF1 (the value of this KF can be 0 or 1).
    i.e. If the KF1 value is then failed count would be 1 .
           else passed count would be 1.
    I have used the Replcement path variable created for Sales Document count.
    For failed count the CKF formula which I have created is: (Sales Order Count ) * (KF1<>1)
    Which gives the right result but as soon as I remove the drill down , instead of aggrading the total results, failed counter still shows 1 which is incorrect.
    Could any one please help me out.
    Regards,
    BW User

    hello,
    try using exception aggregation as total and reference char as the one which u have reomved from drilldown.
    Regds,
    Shashank

  • Total amount of all the items of invoice at document level to present ....

    We have two cubes one is sales document count cube (header data) and other one is sales transation cube (item level data) . Invoice net val is there in sales document count cube and profit center, principal and item category is ther in sales transation cube.
    our requirement is ,total amount of all the items of invoice at document level to present along with principal, profit center & item category.
    This has to be done in the document count cube and not the transaction cube.
    note: multi provider is not solution. There any solution at query level?

    hi
    If your using 2 ODS one for header and one for Item to 2 Cubes.....
    Then just create a update rule between Item data ODS to Document CUbe mapping the new keyfigure ( Net value of total of all items in sales order )
    If not tel me how the cubes and ODS are fed the data
    Assign points if useful
    Regards
    N Ganesh

  • How do I create a table of content in a Pages Template (lay-out) document?

    Dear all,
    I recently started designing a brochure in Pages, using a lay-out document. The document counts over 100 pages. Now I need to make a table of contents and I just don´t get how to do this...
    Any help is more then welcome!
    With warm regards,
    Nina

    That sounds more like a book than a "brochure".
    You can not make a TOC in Layout mode. The TOC only scans the styled text in the default text area (between the margins) of Word Processing documents and ignores everything else.
    Peter

  • HT2506 hi i can't seem to copy and paste pdf files from preview to a microsoft word document. it always comes up with nonsense characters in the word document. how do i fix this? thanks in advance

    hi i can't seem to copy and paste pdf files from preview to a microsoft word document. it always comes up with nonsense characters in the word document. how do i fix this? thanks in advance

    Hi,
    The quickest way to do this (tested with OS 10.8.2, MS Word 2011) is in one line:
    tell application "Microsoft Word" to close every document whose name begins with "book"
    The reason why your script doesn't work is that you aren't specifying to Word which document you want it to close.
    So, changing one line ought to do it:
    close document incrementvalue -- instead of "close document"
    But... when you close a document, you change the document count. Document 2 becomes document 1, document 3 becomes document 2 etc. So eventually you'd get a message saying "The object you are trying to access doesn't exist".
    Because of this, if you want to do it in a repeat loop, you have to work backwards:
    tell application "Microsoft Word"
      set doc_count to count documents
      repeat with x from doc_count to 1 by -1
      if name of document x begins with "book" then close document x
      end repeat
    end tell
    Hope this helps.

Maybe you are looking for