Displaying Distinct Count as Grand Total

Hi -
I have a requirement where i have to show the distinct count of Transaction Numbers at the bottom of the report as Grand Total. I created a dummy column with Fx as MAX(RCOUNT(1)) and used it in Narrative view and it is showing me the total rowcount whereas i want the distinct rowcount based on Transaction number column in my report.
Any help is appreciated!
Thanks
R

Instead of using a RCOUNT you can use the COUNT(DISTINCT <Transaction Number Column>) in your column formula
This is an inbuilt function.
Mark if it helps..

Similar Messages

  • MDX - TOP COUNT AND GRAND TOTALS

    I need to get ONLY the TOP 25 suppliers based on the NET Revenue, but I need also the GRAND TOTAL for all the suppliers.
    Is that possible to accomplish using an MDX query?

    thanks, but it is not what i want.
    here an example (with top 4 instead of 25)
    suppliers              Net Amt
    1054                    $500          visible
    1053                    $100        visible
    1058                    $50           visible
    1044                    $40           visible
    1022                    $20         NOT visible
    1045                    $20            NOT visible
    TOT                    $730  ------> this is the total I want
    I hope it is more clear
    mcrisf

  • Grand Total not displaying correctly on Column level security.

    Hi All,
    I have implemented the Column level security for three columns. But in dashboard report. The grand total is not displaying correctly. The grand total values are still displayed for the hidden columns.
    Is there any work around for this.
    The sample how my report looks like after column level security is.
    ColumnA Metric1 Metric2 Metrics3(to be hidden)
    A 100 200
    B 150 100
    GrandTotal 250 300 400( this includes the value of A = 300, B = 100).
    Regards,
    Bhavik

    Any pointers please.

  • Distinct count of GRN's in Query PLD

    hi all,
    We have developed a daily grn report and designed report
    using  Query PLD.
    Report contains
    (grn no,date,vendor name,vendor ref no,item code,item
    description,quanity & line total)
    We want to display no of grn's(distinct count)
    @ repetitive area footer.
    Is there any function available in formula field to display
    distinct count of no. of grn's ? / It should done thru query.
    Thanks,
    with regards,
    A.Jeyakanthan

    it will be hard from PLD, instead u can have ur query like,
    SELECT 'Details', '   ',T0.Docnum, T0.CardName, .... FROM OPDN T0 WHERE Month( T0.DocDate ) = Month ('{%0]')
    Union
    SELECT 'Counts', count(T0.DocNum) as 'Doc(s) No', ' ', ' ', ... FROM OPDN T0 WHERE Month( T0.DocDate ) = Month ('{%0]')
    (Replace { with [ )
    Note ' ' is a gap in order to fill the other fields. in first query have given tht '  ' gap purposely so tht the display will not affect ur designing part
    union is used b'coz Count() fn is like aggregate, so wont allow further individual fields coming along with it.
    the 2nd query will occupy only one row, which by grouping u can separate and can hide from repetitive and take the value via formula field by writing that field's id to it into Footer Area.
    Regards,
    Dhana.
    Edited by: Dhanalakshmi C on Mar 5, 2008 1:31 PM

  • Specific aggregation for Grand total

    Hi all,
    Is it possible to specify a function instead of the provided list of aggregation rules in answers or in the rpd.
    I'd like to calculate SUM(Xi)/SUM(count(Xi)) and display it as a grand total
    __________Column X
    ___________10
    ___________20
    ___________30
    Grand total 20 (60/3=20)
    Regards

    what is the grand total formula you are expecting?
    if you post it here we can sort it out.
    You can find the 'Combine with similar Request' option in the criteria.
    click on that and select your subject area and select the exact columns you used in your report. Now in this report change the formula to the one you want.
    in your first column delete the formula and simply type 'Grand Total' and in the second column type
    sum(column_name)/count(column_name)
    you can ref to this link. just take how they are using 'UNION' request in the example. Though the link is not totally relevant to you it will help you.
    http://oraclebizint.wordpress.com/2008/01/25/oracle-bi-ee-101332-dynamic-column-headers-using-presentation-variables-sets-and-conditional-formatting/

  • How to add one column value with grand total

    hi,
    this is my perform.i am just here multipling  menge and gpres value and stores into G_total variable and displing into output.
    this is my output in main window.
    ex:mat. 1           77.00(g_total value)
        mat  2             55.00(g_total value)
    now the requirement is to add the column and display the output as grand total ex: 77.00 +55.00 = 132.00
    how to do the syntax please help me......???
    FORM get_total  TABLES   in_tab STRUCTURE itcsy
                              out_tab STRUCTURE itcsy.
      DATA: lv_menge(20),
            lv_gpreis(20),
            g_total(20),
            g_total1(20).
      DATA:lc1 TYPE string,
           lc2 TYPE string,
          ls_tab      TYPE itcsy,
         l_tabix        TYPE sy-tabix.
      READ TABLE in_tab WITH KEY name = 'RESBD-MENGE'.
      IF sy-subrc EQ 0.
        lv_menge = in_tab-value.
      ENDIF.
      READ TABLE in_tab WITH KEY name = 'RESBD-GPREIS'.
      IF sy-subrc EQ 0.
        lv_gpreis = in_tab-value.
      ENDIF.
      REPLACE  ',' INTO  lv_gpreis WITH ''.
      CONDENSE lv_gpreis NO-GAPS.
      READ TABLE out_tab WITH KEY name = 'G_TOTAL'.
      IF sy-subrc EQ 0.
        g_total = lv_menge * lv_gpreis.
        out_tab-value = g_total.
        CONDENSE g_total.
        lc1 = g_total+0(2).
        lc2 = g_total+2(3).
        CONCATENATE lc1  lc2  INTO g_total SEPARATED BY ','.
        out_tab-value = g_total.
    CLEAR ls_tab.
        LOOP AT out_tab INTO ls_tab.
          l_tabix = sy-tabix.
          CASE ls_tab-name.
            WHEN 'G_TOTAL'.
              ls_tab-value = G_TOTAL.
          MODIFY out_tab FROM ls_tab INDEX l_tabix.
    ENDCASE.
        ENDLOOP.

    >
    asissahu wrote:
    > hi.
    >
    > nobody is replying my question???
    >
    > please help me
    Hi, Asissahu
    Because may be some one have problem to read your code
    Please have a look at the following link and past code this way.
    [How to post code in SCN|How to post code in SCN, and some things NOT to do...;
    @Naga Please you too
    Regards,
    Faisal

  • Grand Total color

    Hi
    I am using 10g.I have pivot table re[port. In this report 3 rows dimension and 4 measure values.
    Now i set grand total based on row values.Grand total backround color dark blue display upto dimension row.After dimension sum(measures) shows normal color.
    My requirment is i should display full row for grand total is dark blue.How can i set pls let me know?
    Thanks
    Gram                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

    Try this
    Rows at Sigma sign->Format Lables
    Use Custom CSS Style->
    background-color: #ECEFF3; color: black;
    If works pls mark as correct :)
    Just in case you want to use same color of above values use
    color: #3C3C3C; instead of color: black;
    Edited by: Srini VEERAVALLI on Jan 9, 2013 9:52 PM
    BTW: For your other post "Pivot Col Heading " can you send me screenshot to my email
    Edited by: Srini VEERAVALLI on Jan 9, 2013 9:55 PM

  • Currency wise grand totals IN ALV

    Hi friends,
    I  have problem  in alv report, my requirement is want to display the
    currency wise grand totals in ALV Report.if any having this idea please
    address the solution.
    yours
    ramakrishna.Y

    if i am not wrong then ithink you are talking about subtotal as per currency .
    then you have to use sort fnality..
    you have to write your fieldcat for currency value field
    wfieldcat-do_sum = 'X'.
    data : isort type slis_t_sortinfo_alv,
             wsort type slis_sortinfo_alv.
    wsort-spos = 1.
    wsort-up = 'X'.
    wsort-fieldname = ' YOUR CURRency key field in caps'.
    wsort-group = 'UL'.
    append wsort to isort.
    you have to pass that to reuse alv fm it_sort = isort.
    regards
    shiba dutta

  • ALV Report - Average and Grand total.

    Hi,
    Could you tell me in ALV, how i can calculate the average of a particular field and display it in the grand total row?
    What is the property to display the grand total alone, without the subtotal?

    To force a grand total line, first you need to have a field in your internal table that can be totaled, when defining that field in your field catalog, you must set the flag for DO_SUM = 'X',  you may also need to set the DATATYPE = 'QUAN'.  Then the grand total line will show automatically.
    Regards,
    RIch Heilman

  • SALV Class Grand Total With Text

    Hi,
    I am working on SALV Class. My requirement was to display ALV OUTPUT with Grand Total.
    I am able to display the totals by using AGGREGATIONS, Now i want to display the Grand Total Text (i.e : Work Activity Total).
    Can anyone know the valuble inputs and possibilites.
    Thanks & Regards,
    Srinivas Bhavanam.

    Hi Martin,
    Try to change *" minDigits="1" maxDigits="1"* values from 1 to 2.
    It may help you.
    Thanks,
    Suresh.

  • Grand Total on Count Distinct - Crosstab

    Hello
    I use Discoverer 9.0.2.39.01.
    On a crosstab layout: the data point is a count distinct item ,
    I use Grand total at bottom and also Grand total at right.
    Both totals are displayed correct but the cell combining between them is blank.
    The join between the two tables is one to one and I use NVL on the count distinct item. how can I overcome the problem and cuase th blank cell to display the result of both totals?

    I'd just reiterate a couple of things to try.
    1. reverse the join - I realize you mentioned it seems to work for simple total, but this has to be one of the most popular errors
    2. check for NULLs in the data (ie: to_number(NVL(item, '0')), etc.
    If still not working, then logically, what would be causing a count of distinct items not to display (ie: NULL would explain it as I would think the COUNT would screw up with not knowing how to handle a NULL).
    By why count(item) would work and count_distinct(item) wouldn't is an interesting problem.
    Russ

  • 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

  • Grand Total with Count Distinct

    Hi,
    I want to use grand total to count distinct my data,
    I had physical map ActivityId into my fact and set count distinct to its aggregation rules.
    then when i create my report the anwser is OK.(count distinct ActivityID). But in grandtotal is sum.
    The aggregation Rules in BI Awnser is set it Default.
    [Pic >> http://image.ohozaa.com/i/866/tablecountdisctinct.jpg ]
    i don't know why , i try to set many thing but it isn't work
    Thank ,Regard.
    And sorry about my English Language.

    couple of things required here..
    how did you build this measure in rpd?
    Is that physical mapped or logical mapped column(derived column)?
    Map it as physically and apply aggregation rule on top of it to: CountDistinct
    Now, pull the column in front-end it has to give you proper sub-total/total..
    Or, Try putting the formula in front-end in fx of the column and try..

  • Running Total & Distinct Count Query

    Crystal 10.0.0.533 CR Professional
    Hope you can assist.
    I have a report listing deals signed, each deal has a corresponding category i.e. industry type, Accountant, Chiropractor, Financial Services, etc.
    I am undertaking a Distinct Count on these categories so that in the group footer it is showing number of different categories signed in a period (the report is grouped into different date periods). This is working OK.
    However, I need to EXCLUDE the category from this distinct count if the deal value is zero.
    I have tried using a formula to show a blank field if the value is zero, however it appears to be distinctly counting the blank as a category?
    Any assistance would be much appreciated.
    Tracy

    Deffinetly it will be less than what you expect for grand total. It is because when you are calculating distinct count for each group suppose
    Group A has categories A,B,C,D-->distinct count (4)
    Group B has C,D,E,F-->distinct count (4)
    but while calculating grand total then the distinct count will be
    A,B,C,D,E,F --> grand total (6) but not (8).
    In this case you need to use mannual running total like this
    whileprintingrecords;
    numbervar i;
    i:=i+{running total};
    place this in group footer and create another fomula like this
    whileprintingrecords;
    numbervar i;
    place this in report footer to get the correct grand total.
    Regards,
    Raghavendra

  • Distinct Count Running Total

    <p>I have a report that gets a distinct count of items per day.</p><p>DistinctCount(, , "daily")</p><p> I would like to create a running total of the daily count for a weekly grand total.</p><p>Thanks!</p>

    <p>I&#39;ll take a stab at this - So I understand that the report is grouped by Day and looks like this:</p><p>GF1:    1/1/07   9</p> <p>GF1:    1/2/07   10</p> <p>GF1:    1/3/07   12</p> <p>GF1:    1/4/07   15</p> <p>GF1:    1/5/07   20</p><p> </p><p>The first thing I&#39;d try is to create a another group on your Date field, this time selecting the grouping option to be "For Each Week".  Take that group and move it so that it is Group1 and your current group is Group 2.... your structure will now look like this. </p><p>GH1:    1/1/07        < new &#39;week&#39; grouping&#39; > </p><p>    GF2:    1/1/07   9</p>  <p>    GF2:    1/2/07   10</p>  <p>    GF2:    1/3/07   12</p>  <p>    GF2:    1/4/07   15</p>  <p>    GF2:    1/5/07   20</p><p> Then I would copy the Sum field (distinct count) that you are using in Group 2 and put it in the Group 1 footer.  We could also create a formula to sum up all distinct counts per day, but a Distinct Count by week should accomplish what you are after.   Then in a seperate formula, you could divide the DistinctCount of orders (by week) by the DistinctCount of dates (by week) to get your daily average....</p><p>formula:</p><p>DistinctCount ({Orders.Order ID}, {Orders.Order Date}, "weekly") <br />/ <br />DistinctCount ({Orders.Order Date}, {Orders.Order Date}, "weekly") </p><p> </p><p>Hope that helps. </p>

Maybe you are looking for

  • How do I get my iPod shuffle to be recognized ?

    It was recognized the first time I connected it to my pc, it synced, which may have 'over-filled' it with music (there were some error messages). Now pc does not recognize it.  It does not show battery level, either I've tried the online troubleshoot

  • Reuse a form format and modify in the same solution?

    I would like to reuse the same form in the current solution but slightly modified. Can you tell me the best way how to do it? Thanks.

  • Application 4.5 with oracle 10.2.0.4

    Hi All, recently we have migrated our test database from 10.2.0.1 to 10.2.0.4,but now we are facing problem while loading form in to d2k & compiling (forms 4.5). same forms were working fine with oracle 10.2.0.1 Oure database is on 32 bit windows pla

  • Is it possible to create an OSX Tiger bootable CD?

    Is it possible to create an OSX Tiger bootable startup disk that will fit onto a CD (not DVD). I have my original install DVD disk, but need a bootable CD for emergency situations. Can anybody please give me a few pointers. Thanks 6400 (7.5), G4 PB (

  • Regular expression - Replace not like

    Hi All, Is there a regexp pattern to replace anything other than 'oracle' from the below string. "oracle sdsd oracle xyd fgh oracle idmdh asasas trtrt" The result will be "oracleoracleoracle" If I want to write like regexp_replace('oracle sdsd oracle