Incorrect Count() Total

Hi Experts
i am using Webi XI 3.1
i had taken object as detailed dimension and it consists of descriptions. of material. And i created a formula to divide it into  3 sections .and i used breaks and then selected count for material description
EX:
section   mtrl.description   
   A           aaa
                bbb
      count=35
   B           aaa
                bbb
      count=18
   C           aaa
                bbb
      count=24
so the total count is 352418=77  
But my issue is the grand total count returning value 75 Strange!!!!! i didnt understand whats happening can any one can solve this issue please
Regards
Sunil
Edited by: K.sunil on Nov 2, 2011 1:25 PM
Edited by: K.sunil on Nov 2, 2011 1:28 PM

What I guess is you are using a count function on a dimension object and it is doing a distinct count. Modify the formula in the cell showing counts to include all values. Please refer to http://help.sap.com/businessobject/product_guides/boexir31/en/xi3-1_web_intelligence_formulas_functions_calculations_en.pdf for help in webi functions.

Similar Messages

  • Count total number of rows present in the schema

    Count total number of rows present in the schema including table, sequence, view
    Desirable Output
    table          Sequence     Views
    1000          20          1000

    You mean You need to count the No of Tables, View and Sequence Present in the Schema ??
    Hi Some thing like this,
    SELECT a.view_cnt AS "View Count", b.tab_cnt AS "Table Count",
           c.seq_cnt AS "Sequence Count"
      FROM (SELECT COUNT (*) view_cnt
              FROM USER_VIEWS) a,
           (SELECT COUNT (*) tab_cnt
              FROM USER_TABLES) b,
           (SELECT COUNT (*) seq_cnt
              FROM USER_SEQUENCES) cWhich give you,
    View Count      Table Count      Sequence Count
           153              878                   32Thanks,
    Shankar
    Edited by: Shankar Viji on Aug 28, 2012 3:03 AM

  • Count total page in ABAP list

    Dear Expert,
    Please help me, how to count total page in ABAP list ?
    Any suggestion or idea to solve this question ?
    Thank you.
    Really appreciate your respond and solution.

    In the first statement of ur report u'll have to reserve some lines for footer as follows:
    REPORT <prg name> LINE-COUNT 25(2).
    here ur list will display 23 lines of data and then 2 lines are reserved for footer.
    This means that in each page u can display 23 lines of text.  Now depending on number of entries in your internal table which contains data to be displayed, we can calculate the number of pages required to print the total output.
    E.g: I have 62 records in my internal table, so to get the total number of pages use the following logic:
          (U can find out the number of recs in internal table dynamically using DESCRIBE stmt)
           62/23 = 2.69
           Round the result to the next integer using CEIL , so the next interger is 3.
           So ur total number of pages is 3.  And u now the current page number by sy-pagno.
    Hope this solves ur problem.

  • Count total rows?

    Hello,
    In some function of my program, I need to count total number of rows but, I don't need to fetch results. Only the number of rows.
    Is there any way to count the total number of result rows without fetch?
    In OCI ver.7, it was very simple.
    Just Call ofen() (OCIStmtFetch() in ver.8) without defining, but it's impossible that fetch without defining in Ver.8
    Is there any idea to solve this situation?
    I can defining and fetching just like normal process, but customer can send any SQL statement so, it can include LOBs.. and so on.
    It's very waste source codes and memory for just counting rows.
    Thank you

    One possibility is to execute a different statement
    (i.e. select count(*) from foo;) to get the number of
    rows directly. This would probably be the most efficient
    way to get the row count (since no row data is shipped
    with this statement).
    Unfortunately, I was unable to fetch rows w/o defining
    in OCI either (I got an ORA-24374), so I am not sure how
    you can get around this.
    Incidentallly, when fetching LOBs, I don't think that
    the entire lob is fetched, only the LOB locator. In this
    case, there is very little over head associated with the
    data transfer.
    Also, I believe that ofen() was doing roundtrips in the
    past, and my impression was that the latency of the
    roundtrip to the server (and not the associated latency
    of transferring the data) was the bottleneck here. Hence,
    there may not be as much of a performance penalty as
    expected for doing the extra client define with OCI
    v8. So you still might be able to use your old ofen logic
    (after replacing with OCIStmtExecute/OCIDefine) and not
    see a very high performance hit.
    Hope that helps out somewh

  • Count total no of records in csv file

    hello
    i made a function which count total no of records in csv file.
    but it always return 0 goes in the exception when no data found which
    it also display the total no of records in another parameter.
    code is here
    CREATE OR REPLACE FUNCTION COUNT_RECORDS_CSV (storeid1 number ) RETURN NUMBER
    IS
    wfile_handl UTL_FILE.FILE_TYPE;     
    v_file varchar(100);
    S VARCHAR2(32767);
    c number :=0;
    v_dir VARCHAR2 (50) := 'REPORTS';
    BEGIN
    v_file :='DATA_'||storeid1 ||'.CSV';
    DBMS_OUTPUT.PUT_LINE('V_FILE='||v_file);
    wfile_handl := UTL_FILE.FOPEN(v_dir,'DATA_5138.CSV','R');
    LOOP
    UTL_FILE.GET_LINE(wfile_handl,S);
    C := C + 1;
    END LOOP;
    UTL_FILE.FCLOSE(wfile_handl);
    RETURN C;
    EXCEPTION
    WHEN NO_DATA_FOUND THEN
    RETURN 0;
    END COUNT_RECORDS_CSV;
    if i print the values of c it show me correct result but it always return 0 can any body told me why its happening.
    thanks

    The fact that you have written this:
    EXCEPTION
      WHEN NO_DATA_FOUND THEN
        RETURN 0;means you didn't bother to read this.

  • Recently changed my password for mail, can still read my mail, but the drop down keeps appearing, asking for my password and saying it's incorrect. Totally confused. 

    I Recently changed the password for mail, on iMac. I can still read my mail, but the drop down keeps appearing, asking for my password, then telling me it's incorrect. Totally confused. 

    If your password is accepted, and Mail connects to the account, but you're prompted for the password repeatedly, take each of the following steps that you haven't already tried. Note: these steps don't apply if the server rejects the password. That's a different problem.
    Step 1
    When prompted for the password, check the box marked Remember this password in my keychain.
    Step 2
    Check that the keychain is working.
    Step 3
    Check that the default keychain is unlocked.

  • Counting Total No.of Idocs received in BPM

    Hi Experts,
                   My scenario is " I am getting three different Idocs from three interfaces. Now i want to count total number of idocs from all the interfaces and compare this count with the one of the idoc field(Which contains the total number of idocs send from the sender) if the count matches then i have to send this idocs to the receivers."
                   I have done the configuration as follows
    1.Fork step with three branches
    2.Loop, inside the loop Receive step,Container operation step with the property Assign for counting and one more container operation step for Appending.
    3.Transformation step
    4.Send step
            While doing this i am getting individual idoc counts but i want the sum of these three interfaces count. How can i get the count of all three interfaces.
            Can you please let me know.
    Thanks & Regards,
    Purushotham
    Edited by: Purshothamm Thenepalli on Aug 5, 2008 5:32 AM

    If you want to count every time u get an IDoc irrespective of the sender, you need to use multiple receiver steps for receiving each type of idoc and then count.
    It will be almost like a collect pattern at the receiving part in BPM.
    VJ
    Edited by: VijayaShankar Konam on Aug 4, 2008 11:53 PM

  • Incorrect Grand total

    Can anyone pls tell how to fix the issue of Incorrect Grand total ?
    Especially for calculated values.If any formula is applied then the grand total should also be executed with the same formulas.
    Pls help

    Thanks Madhan and MMA.
    Madhan
    I've already tried adding <ReportAggregateEnabled>true</ReportAggregateEnabled> and even after restarting the services no use. My server version is 10.1.3.2.1.Is there any alternate solution?
    MMA
    I tried with Server complex aggregate also.But no use.
    Pls suggest if there is any alternate solution.

  • Count total no of ip addresses from a database

    how can we count total number of ip addresses from a database using jsp
    Edited by: 863765 on Jun 6, 2011 7:26 PM

    863765 wrote:
    yes IP addresses are in database, so I need to count the total number of ip addressesIs the issue connecting to the database containing the IP addresses? Or writing the SQL to query the database to get the count of IP addresses? Also, do you need a count of unique IP's or just all IP's in the database even if there are duplicates?

  • How to count total number of records in mYSQL through JSP ??

    hi
    i want method to count total number of records in table.
    it was there rs.count() method in VB .
    But what about JSP , i used MYSQL database.
    tell me solution please...
    thanks...
    remember JSP - total record count for mySQL

    hello mr.
    i don't want ur suggestion ok
    i know that site.
    no need to give suggestion if u don't give code.
    its better to give proper reply instead of making a
    comment in forum.
    next time take care
    He was perfectly justified in that remark. I have given you the information you need, nicely, twice. But I, and noone else here is going to do your work for you. We will point you in the direction you need to be looking, but we are not going to give code. If you attempt to code something yourself, and it doesn't work, then post the code you tried, and we may make some corrections to it. Then again, with the attitude you've shown so far we probably will not. But one thing no one here will do, is do your work. Especially not for free.
    Now, if you are not willing to sit down, and look at the suggestion that has already been made, and attempt to use it. Then continue wasting your time, but go away and stop wasting our time.

  • Powershell: Count total messages to and from external domain

    Hi All,
    I'm attempting to get a count of total messages to and from our clients domains.  For example, @customer1.com 23.
    So far, I have the following code
    get-messagetrackinglog -start (Get-Date).adddays(-1) -resultsize unlimited |where-object {$_.EventID -eq
    Send" -or $_.EventID -eq "Receive"}
    What I'm looking for is the following:
    If the Sender or the Recipient is NOT @ourcompanydomain.com, count total messages either sent or received from the domain.  Output to csv.
    123.com, 53
    456.com, 32
    Any help would be greatly appreciated.
    Brian
    Syncronet

    Ok, so I've made some progress and now have it so I get an accurate count of total messages.  Now I need to group them by @recipientdomain.com and have totals for each recipientdomain.com.  I also need to get the output correct.  
    Add-PSSnapin Microsoft.Exchange.Management.Powershell.E2010 -ea silentlyContinue
    [long]$IntSent=0
    [long]$IntRec=0
    [long]$IntTotal=0
    $domain="extdomain.com"
    get-messagetrackinglog -start (Get-Date).adddays(-1) -resultsize unlimited -Eventid Send| ForEach{$IntSent++}
    get-messagetrackinglog -start (Get-Date).adddays(-1) -resultsize unlimited -EventID Receive |Where {[String]$_.recipients -notlike "*@mydomain.com*"}|ForEach{$IntRec++}
    #write-host ($IntSent)
    #Write-host ($IntRec)
    $IntTotal=$IntSent + $IntRec
    write-host ($IntTotal)
    $table=@"
    Domain,Messages
    $domain,$IntTotal
    $Table |set-content c:\temp\messages.csv
    Any help is greatly appreciated.
    Thanks
    Brian
    Syncronet
    Directly loading in the snap in for Exchange 2010 and 2013 is not supported.
    Please update scripts to use remoting:
    http://blogs.technet.com/b/rmilne/archive/2015/01/28/directly-loading-exchange-2010-or-2013-snapin-is-not-supported.aspx
    Cheers,
    Rhoderick
    Microsoft Senior Exchange PFE
    Blog:
    http://blogs.technet.com/rmilne 
    Twitter:   LinkedIn:
      Facebook:
      XING:
    Note: Posts are provided “AS IS” without warranty of any kind, either expressed or implied, including but not limited to the implied warranties of merchantability and/or fitness for a particular purpose.

  • Rating - Play count totals question ...

    Hi,
    I'd like to transfer the Rating & Play count totals to another computer (that has hopefully the same play list).
    How do I do this?
    Thanks.

    As you probably know, the rating and playcount are not stored in the song file itself; they are stored in the library and will be lost if you move the songs separately from the entire library.
    So, to preserve them, first consolidate your library (if it isn't already) using the command File > Library > Organize Library... > Consolidate Files, and then copy the entire iTunes folder to the new machine.

  • Incorrect GRAND TOTAL (with COUNT DISTINCT)

    Hi,
    I'm getting wrong results in the GRAND TOTAL of a COUNT DISTINCT measure column.
    I have 5 distinct customers in Paris and 10 distinct customers in NYC, I want the grand total to retrieve the sum of both, that's 15.
    But OBIEE is calculating the distinct customers for all cities, so if there are customers in both Paris and NYC the result is wrong.
    This is the result I'm getting:
    City Number_Distinct_Customers
    Paris 5
    NYC 10
    GRAND TOTAL 12
    12 is the number of all the distinct customers.
    The correct GRANT TOTAL should be 5+10=15
    Thanks
    Regards

    So just as a weird question...from a business standpoint, what does the "15" mean?
    It's not a count of distinct customers, which is what this measure is supposed to be.
    If I were to come up with a business description for what's being described, it's "a count of distinct customers by city....summed up so that it is no longer a count of distinct customers". What and/or how exactly would anyone use such a number?
    Not trying to be a pain, just trying to figure out how this would be used.
    Thanks,
    Scott

  • Count total rows in database?

    Hello all,
    Is there a way to query the database for the total number of rows.... without using ANALYZE STATISTICS? (That would cause the db to sometimes use COST instead of RULE based optimization, slowing it down significantly.)
    I know I could could brute force a total row count with something like:
    spool get_total_rows.sql
    SELECT 'SELECT COUNT(*) FROM '||owner||'.'||table_name||';'
    FROM ALL_TABLES;
    spool off
    ...then run get_total_rows and manually add all the counts.
    But it just seems like there must be a cleaner way to do it.
    Thanks much,
    Natasha

    ok. here you have that information:
    ALL_TABLES
    ALL_TABLES describes all relational tables accessible to the current user. To gather statistics for this view, use the SQL ANALYZE statement.
    Related Views
    DBA_TABLES describes all relational tables in the database.
    USER_TABLES describes all relational tables owned by the current user. This view does not display the OWNER column.
    Note:
    Columns marked with an asterisk are populated only if you collect statistics on the table with the ANALYZE statement or the DBMS_STATS package.
    Column Datatype NULL Description
    OWNER
    VARCHAR2(30)
    Owner of the table
    TABLE_NAME
    VARCHAR2(30)
    Name of the table
    TABLESPACE_NAME
    VARCHAR2(30)
    Name of the tablespace containing the table; NULL for partitioned, temporary and index-organized tables
    CLUSTER_NAME
    VARCHAR2(30)
    Name of the cluster, if any, to which the table belongs
    IOT_NAME
    VARCHAR2(30)
    Name of the index-organized table, if any, to which the overflow entry belongs. If IOT_TYPE column is not null, this column contains the base table name.
    PCT_FREE
    NUMBER
    Minimum percentage of free space in a block; NULL for partitioned tables
    PCT_USED
    NUMBER
    Minimum percentage of used space in a block; NULL for partitioned tables
    INI_TRANS
    NUMBER
    Initial number of transactions; NULL for partitioned tables
    MAX_TRANS
    NUMBER
    Maximum number of transactions; NULL for partitioned tables
    INITIAL_EXTENT
    NUMBER
    Size of the initial extent in bytes; NULL for partitioned tables
    NEXT_EXTENT
    NUMBER
    Size of the secondary extension bytes; NULL for partitioned tables
    MIN_EXTENTS
    NUMBER
    Minimum number of extents allowed in the segment; NULL for partitioned tables
    MAX_EXTENTS
    NUMBER
    Maximum number of extents allowed in the segment; NULL for partitioned tables
    PCT_INCREASE
    NUMBER
    Percentage increase in extent size; NULL for partitioned tables
    FREELISTS
    NUMBER
    Number of process freelists allocated to this segment; NULL for partitioned tables
    FREELIST_GROUPS
    NUMBER
    Number of freelist groups allocated to this segment; NULL for partitioned tables
    LOGGING
    VARCHAR2(3)
    Logging attribute; NULL for partitioned tables
    BACKED_UP
    VARCHAR2(1)
    Has table been backed up since last change
    NUM_ROWS*
    NUMBER
    Number of rows in the table
    BLOCKS*
    NUMBER
    Number of used data blocks in the table
    EMPTY_BLOCKS*
    NUMBER
    Number of empty (never used) data blocks in the table
    AVG_SPACE*
    NUMBER
    Average amount of free space, in bytes, in a data block allocated to the table
    CHAIN_CNT*
    NUMBER
    Number of rows in the table that are chained from one data block to another, or which have migrated to a new block, requiring a link to preserve the old ROWID
    AVG_ROW_LEN*
    NUMBER
    Average length of a row in the table in bytes
    AVG_SPACE_FREELIST
    _BLOCKS
    NUMBER
    The average freespace of all blocks on a freelist
    NUM_FREELIST_BLOCKS
    NUMBER
    The number of blocks on the freelist
    DEGREE
    VARCHAR2(10)
    The number of threads per instance for scanning the table
    INSTANCES
    VARCHAR2(10)
    The number of instances across which the table is to be scanned
    CACHE
    VARCHAR2(5)
    Whether the cluster is to be cached in the buffer cache (CACHE | NOCACHE)
    TABLE_LOCK
    VARCHAR2(8)
    Whether table locking is enabled or disabled
    SAMPLE_SIZE
    NUMBER
    Sample size used in analyzing this table
    LAST_ANALYZED
    DATE
    Date on which this table was most recently analyzed
    PARTITIONED
    VARCHAR2(3)
    Indicates whether this table is partitioned. Set to YES if it is partitioned.
    IOT_TYPE
    VARCHAR2(12)
    If this is an index-organized table, then IOT_TYPE is IOT, IOT_OVERFLOW, or IOT_MAPPING. If this is not an index-organized table, then IOT_TYPE is NULL.
    TEMPORARY
    VARCHAR2(1)
    Can the current session only see data that it place in this object itself?
    SECONDARY
    VARCHAR2(1)
    Whether the trigger is a secondary object created by the ODCIIndexCreate method of the Oracle9i Data Cartridge (Y |N)
    NESTED
    VARCHAR2(3)
    Is the table a nested table?
    BUFFER_POOL
    VARCHAR2(7)
    The default buffer pool for the object. NULL for partitioned tables
    ROW_MOVEMENT
    VARCHAR2(8)
    Whether partitioned row movement is enabled or disabled
    GLOBAL_STATS
    VARCHAR2(3)
    For partitioned tables, indicates whether statistics were collected for the table as a whole (YES) or were estimated from statistics on underlying partitions and subpartitions (NO)
    USER_STATS
    VARCHAR2(3)
    Were the statistics entered directly by the user?
    DURATION
    VARCHAR2(15)
    Indicates the duration of a temporary table:
    SYS$SESSION: the rows are preserved for the duration of the session
    SYS$TRANSACTION: the rows are deleted after COMMIT
    Null for a permanent table
    SKIP_CORRUPT
    VARCHAR2(8)
    Whether Oracle ignores blocks marked corrupt during table and index scans (ENABLED) or raises an error (DISABLED). To enable this feature, run the DBMS_REPAIR.SKIP_CORRUPT_BLOCKS procedure.
    MONITORING
    VARCHAR2(3)
    Whether the table has the MONITORING attribute set
    Try with ALL_TABLES and post if the results were zero too
    Joel P�rez

  • S_ALR_87012083: incorrect (sub)totals in exported excel

    Hi,
    We run S_ALR_87012083 to do vendor line item analysis.
    Standard the report subtotals on Vendor, G/L account, Company Code and Currency (in this sequence).
    Sort order Ascending: Company Code, G/L account, Vendor, Special G/L indicator, Assignment, Posting Date, Currency and Business Area.
    Data is displayed in non ALV layout.
    If we use the "Export to Excel" button the result in MHTML format is showing incorrect subtotals and totals.
    These are multiplied with a factor 10.000.000.
    We use 2 digitals behind the comma in SAP and 2 digitals are displayed in excel.
    The single line item values do show correct.
    Even if we are only using 1 item for subtotal or non at all, this issue still comes up.
    I have also removed one to all items from the sort order list, still the same problem.
    Also tried other vendor and customer line item reports starting with S_ALR, but they all have this issue.
    Checked the solution in OSS 423335, but didn't work out (or maybe I am misunderstanding the term sort level).
    So anyone who could help, it would be much appreciated.
    Best regards,
    Geert

    Hi,
    We have the same problem, here is the answer we received from SAP:
    Dear customer,
    Firstly the component BC-CST is not proper, I would like to change
    to BC-FES-OFFI for checking, also it's more like BC-SRV-ALV.
    There is same issue reported from other customers and was solved by
    note 1356898 which provided by our develoer .
    #1356898 WD ABAP ALV export with aggregations is incorrect
    But for tchnical reasons this note needs at lease SAPKB70020 as
    prerequisite.
    If you can't apply this note right now, then you can use below
    workaround to avoid the issue :
    Before you export your list to Excel:
    1. push the "Change layout" button (Ctrl+F8)
    2. choose the tab "Sort order" an check for which column the subtotals
    are created
    3. switch back to the tab "Displayed Columns" and search for this column in the right list and add it to the left one.
    4. Confirm the changes
    If you now export the data, the texts should be there.
    Hope the information helpful.
    Janno

Maybe you are looking for

  • Add Multiple records to G/L account group.

    Dear ABAP Experts, i have requirement that is using  BDC recording file  the Functional People wants to add records to the G/L Account group. The FI consultant gave the recording file, based on the recording file i developed a BDC program. This BDC p

  • Adapter "not initialized" !?

    Hello everyone! I tried to use the mail-Adapter in an receiver-channel... Now i have the problem that in communication channel monitoring the mail adapter has a red LED with the comment "not initialized" ... How can I activate the adapter? Whats wron

  • What authorizations for Information Broadcasting are required?

    Hello experts, this is a scenario which has recently arisen. We have the BEx Broadcaster properly configured for e-mail broadcasting at least. Users need to be able to use the Broadcaster, in particular the e-mail function for WAD reports. However, w

  • SOAP Fault: unexpected encoding style

    Hello, I added a service control in my project from the wsdl file of a web service. If try to invoke this external web service, I get a soap response with the following fault message: Internal Server Error (unexpected encoding style: expected=http://

  • Cannot find the "cn=monitor" entry

    Hi all. I am learning the monitoring the oud server using cn=monitor entry. But, when used the following command: ./ldapsearch -p 1389 -D "cn=Directory Manager" -w abcd1234 -b cn=monitor objectclass=* SEARCH operation failed Result Code:  32 (No Such