Calculation in reports

Hi
Table structure
pointdescription  Pointvalue  evaluationfrom      evalutionto
a                           4              01/01/2007          10/01/2007
b                           3              01/01/2008           12/01/2008
a                           2               01/01/2008           12/01/2008
b                           2               01/01/2007           12/01/2008
i want to dispaly report  like
pointdescription       Total css where description were rated less than 4         difference
                                                                                previous year    current year
a                                 0%                    2%                                                2%
b                                 3%                    2%                                                -1%
Means i want to dispay records only rating less than 4 . user will enter previous year and current year.
How to calculate value?
Thanks

Pointvalue is string, not integer. how to sum pointvalue, if it is string?
Ok use the same Total Count method you are using, however like this
Name: PointValue
Summary Field: Pointvalue field
Summary Type: Count
Evalution: Each Record
Reset: Group by, Group name
Then place it into the report.
How to use data parameters in report record selection formula?
Ok create two date parameters, static.
One Start Date, Field type (your database field). Value=Date or Datetime (you choose depending on database field type).
Second End Date, Field type (your database field). Value = Date or Datetime (you choose)
Then Click on Report ->Selection Formula-->Record
Type
{database field} >= {?StartDate} and
{database field}<= {?EndDate}
Place both of them into the report header.
Run the report and you will be asked for the dates, once inserted your report will be filtered by date range you entered.
Hope this helps
Regards
Jehanzeb

Similar Messages

  • Percentage Calculation in report

    Hi,
    My scenario for a report is:
    The material is in the rows. MTD % has to be calculated in the columns as below:
    There is a key figure Quantity. MTD = Quantity/SUMCT Quant.
    The report output is good for this.
         QTY(date range) SUMCT(QTY) MTD%=QTY/SUMCT(QTY)
    mat1
    mat2
    mat3
    QTY(date range) is user entry.
    This view is good.
    When date characteristic is used to drill across, to display Daily%, X is being returned in the report.
    Where the requirement for Daily% is to be calculated by dividing the Quantity for that Day with the SUMCT of Quantity.
    But when date is across,
    date1----
    date2
    QTY---sumctDaily%--QTY-----date3     
    mat1-q1XX--
    q
    mat2
    mat3
    BI 7.0
    Can this be resolved without building a structure in the column.
    Please suggest.
    Raj.

    Just a suggestion, not sure if it works...
    Build Total quantity as a restricted key figure(instead of SUMCT formula) and use constant selection by material.

  • Difference in actual figure and figure calculated by report

    I am using Report 6i.
    I have created tabular report of provident fund through salary annualy as follows
    empno, op_bal, apr, may, jun, jul, aug, sep, oct, nov, dec, jan, feb, mar, cl_bal
    column total apr_tot,may_tot,jun_tot,xxx,xxx,xxx,xxx,xxx,xxx,xxx,xxx,xxx,xxx
    I have created summary column for calculating column total for each month.
    Their property is set as follows
    Function - 'Sum'
    Source = 'cp_apr'
    Reset at 'Report'
    This value is store in apr_tot.
    Now there is difference in apr_tot and month wise total calculated in database editor.
    If i check apr_tot in database editor through sql, it shows little higher amount.
    What should I do?
    Regards,
    Vikas

    Hi Vikas,
    Their property is set as follows
    Function - 'Sum'
    Source = 'cp_apr'
    Reset at 'Report'
    his value is store in apr_tot.You have sum the total from cp_apr, and cp_apr hold value of apr_tot??
    Now there is difference in apr_tot and month wise
    total calculated in database editor.
    If i check apr_tot in database editor through sql, it
    shows little higher amount.little higher mean?? what is the actual different?? is it a rounding issue?? or may be the format msak issue?
    Regards

  • Automatically perform calculations in report for editable items

    Hello,
    I have a report which consists of some editable text items. These editable items correspond to different columns in the table. Now in the report I want to make one column item to be automated so that it can perform some calculations based on other columns data entered by the user in the report. Like, for example if the user changes text item data for col3, col4 then it should automatically perform the calculations for col10 ; similar to onchage event. Consider a situation where in a user comes and enters data in the report throught the text item for col3, so whenever user changes the data for col3 it should perform the calculations for col10 automatically.
    Can anyone please help me with this issue.
    Thanks,
    Orton

    Shijesh,
    Sorry for the delay in getting back to you.
    In my case its a normal report but the thing is I need to calculate based on the data entered by the users in different text items which are present in different regions.
    I have five fields to calculate on the fly like based on the data entered by the users. Below are the five columns. I have the item Ids specified for each of these editable items present across different regions.
    PITIA's (f20) = First P And I Amount(25) + County Tax amount(f26) + Hazard Ins Amount(f27) + Over or Short Amount(f28)
    F/E Ratio(f21) = PITIA's(f20) / (Borrower 1 Income(f29) + Borrower 2 Income(f30)) (This should be %)
    B/E Ratio(f22) = ( PITIA's(f20) + MI Payment(f31) + 2nd Mort Payment(f32) + Revolving Liabilities(f33) + Installment Liabilities(f34) ) /( Borrower 1 Income(f29) + Borrower 2 Income(f30) ) (should be %)
    LTV(f23) = First Principal Balance(f35) /Current Value(f36)
    Net Disposable(f24) = ( Borrower 1 Income(f29) + Borrower 2 Income(f30) ) - ( PITIA's(f20) + MI Payment(f31) + 2nd Mort Payment(f32) + Revolving Liabilities(f33) + Installment Liabilities(f34) )
    shijesh can you please help me out with these calculations.
    Thanks,
    Orton

  • Calculations from report data

    Hi,
    I have been using the below SQL in one of my reports to show Sales data. It has recently come to my attention that calculating the likes of Fin Year and Fin Period are best done at the presentation section of the report rather than in the SQL. Is this correct?
    If so how would I script the function to calculate these?
    Cheers
    Paul

    Sorry, I forgot to add it. Here you go:
    --DECLARE @FINANCIALYEAR VARCHAR(4)
    --DECLARE @FINPERIOD VARCHAR(4)
    --SET @FINANCIALYEAR = '2013'
    --SET @FINPERIOD = '10'
    SELECT
    CASE
    WHEN MONTH(dbo.SALESTABLE.CREATEDDATE) <= 2
    THEN YEAR(dbo.SALESTABLE.CREATEDDATE) - 1
    WHEN MONTH(dbo.SALESTABLE.CREATEDDATE) >= 4
    THEN YEAR(dbo.SALESTABLE.CREATEDDATE)
    WHEN MONTH(dbo.SALESTABLE.CREATEDDATE) = 3 AND YEAR(dbo.SALESTABLE.CREATEDDATE) <= 2011
    THEN YEAR(dbo.SALESTABLE.CREATEDDATE)
    ELSE YEAR(dbo.SALESTABLE.CREATEDDATE) - 1
    END AS [Fin Year],
    CASE
    WHEN YEAR(dbo.SALESTABLE.CREATEDDATE) <= 2012 AND MONTH(dbo.SALESTABLE.CREATEDDATE) <= 2
    THEN MONTH(dbo.SALESTABLE.CREATEDDATE) + 10
    WHEN YEAR(dbo.SALESTABLE.CREATEDDATE) <= 2011 AND MONTH(dbo.SALESTABLE.CREATEDDATE) >= 3
    THEN MONTH(dbo.SALESTABLE.CREATEDDATE) - 2
    WHEN YEAR(dbo.SALESTABLE.CREATEDDATE) = 2012 AND MONTH(dbo.SALESTABLE.CREATEDDATE) = 3
    THEN 13
    WHEN YEAR(dbo.SALESTABLE.CREATEDDATE) >= 2013 AND MONTH(dbo.SALESTABLE.CREATEDDATE) <= 3
    THEN MONTH(dbo.SALESTABLE.CREATEDDATE) + 9
    WHEN YEAR(dbo.SALESTABLE.CREATEDDATE) >= 2012 AND MONTH(dbo.SALESTABLE.CREATEDDATE) >= 4
    THEN MONTH(dbo.SALESTABLE.CREATEDDATE) - 3
    END AS [Period],
    dbo.SALESTABLE.SALESID AS [Sales ID],
    CONVERT(DECIMAL(12, 2), SUM(dbo.SALESLINE.LINEAMOUNT)) AS [Value],
    dbo.SALESTABLE.SALESNAME AS [Name]
    FROM dbo.SALESTABLE
    INNER JOIN dbo.SALESLINE ON dbo.SALESTABLE.SALESID = dbo.SALESLINE.SALESID
    WHERE (
    CASE
    WHEN MONTH(dbo.SALESTABLE.CREATEDDATE) <= 2
    THEN YEAR(dbo.SALESTABLE.CREATEDDATE) - 1
    WHEN MONTH(dbo.SALESTABLE.CREATEDDATE) >= 4
    THEN YEAR(dbo.SALESTABLE.CREATEDDATE)
    WHEN MONTH(dbo.SALESTABLE.CREATEDDATE) = 3 AND YEAR(dbo.SALESTABLE.CREATEDDATE) <= 2011
    THEN YEAR(dbo.SALESTABLE.CREATEDDATE)
    ELSE YEAR(dbo.SALESTABLE.CREATEDDATE) - 1 END) IN (@FINANCIALYEAR)
    AND
    (CASE
    WHEN YEAR(dbo.SALESTABLE.CREATEDDATE) <= 2012 AND MONTH(dbo.SALESTABLE.CREATEDDATE) <= 2
    THEN MONTH(dbo.SALESTABLE.CREATEDDATE) + 10
    WHEN YEAR(dbo.SALESTABLE.CREATEDDATE) <= 2011 AND MONTH(dbo.SALESTABLE.CREATEDDATE) >= 3
    THEN MONTH(dbo.SALESTABLE.CREATEDDATE) - 2
    WHEN YEAR(dbo.SALESTABLE.CREATEDDATE) = 2012 AND MONTH(dbo.SALESTABLE.CREATEDDATE) = 3
    THEN 13
    WHEN YEAR(dbo.SALESTABLE.CREATEDDATE) >= 2013 AND MONTH(dbo.SALESTABLE.CREATEDDATE) <= 3
    THEN MONTH(dbo.SALESTABLE.CREATEDDATE) + 9
    WHEN YEAR(dbo.SALESTABLE.CREATEDDATE) >= 2012 AND MONTH(dbo.SALESTABLE.CREATEDDATE) >= 4
    THEN MONTH(dbo.SALESTABLE.CREATEDDATE) - 3
    END) IN (@FINPERIOD)
    AND GBORDER = '1'
    AND SALESTABLE.SALESTYPE = '3'
    GROUP BY MONTH(dbo.SALESTABLE.CREATEDDATE), YEAR(dbo.SALESTABLE.CREATEDDATE), dbo.SALESTABLE.SALESID, dbo.SALESTABLE.SALESNAME
    ORDER BY 1, 2 ASC
    So I'd be better working it out this way anyway?

  • Percentage calculation in report painter

    Friends,
    How do we calculate percentage in report painter. I know we can do it using a formula. But when i give the formula as ex: A/B it is giving it as Zero. Do i need to do anything else? A is a subtotal of some accounts and B is a subtotal is some accounts.
    Thanks in Advance

    Hi,
    For decimal places
    select the column
    go to formatting--> columns
    in decimal places put 0.00
    This will give u decimals
    Points if useful
    Regards,
    Kiran

  • Variance calculation at reporting level

    Dear All,
    There are two key figures in my report - Plan and Actual amount. Now user wants to see the variance between these two in % terms.
    Formula is ( Acutal - plan )/plan *100 . Now this formula works when plan value is not zero when ever the plan value is zero the display will be X . Now user wants to put a check say whenever the plan is zero then display 100 % variance. How can we achieve this at reporting level.
    Thanks and Regards,
    Anup.

    Hi Anup,
    Try something like this:
    (Plan = 0)*100 + (Plan <.> 0)*((Acutal - Plan) / Plan * 100)
    I'm not sure but you might have to use the NOERR function in case of division by zero:
    (Plan = 0)*100 + (Plan <.> 0)*NOERR((Acutal - Plan) / Plan * 100)
    In both samples remove the "."
    Hope it helps.
    BR
    Stefan
    Edited by: Stefan Stefansson on Jul 21, 2009 1:49 PM

  • Due this period calculation at report

    hi
    for FI aged debit report i want use this column due this period.
    suppose due date is 10/01/2009  if i enter date 12/01/2009 need to show due date is 2 days ?
    like how can get this at report

    HI Suneel..
    Check this...it can give u some idea...
    no of days caluculation in report
    Regards,
    Debjani...

  • Problem with calculation in report.

    please let me know about below code . What can be possible errors .Because I didn't get true calculations . My purpose is to get ztab-pvprs for every material.
    CLEAR atab . REFRESH atab .
      SELECT smblnr sbudat z~matnr
             zwerks zbwart z~menge
        INTO (atab-mblnr, atab-budat, atab-matnr,
              atab-werks, atab-bwart, atab-menge)
       FROM mkpf AS s INNER JOIN mseg AS z
         ON smblnr EQ zmblnr
        AND smjahr EQ zmjahr
       WHERE s~budat IN lv_budat
         AND z~matnr = son_tab-matnr
         AND z~werks = son_tab-bwkey
         AND z~bwart IN ('101', '102')
         AND z~aufnr NE ' ' .
        IF atab-bwart = '102'.
          atab-menge = atab-menge * -1.
        ENDIF.
        APPEND atab.
        CLEAR atab .
      ENDSELECT.
      CLEAR malz_itab2 .
      REFRESH malz_itab2 .
      LOOP AT atab.
        malz_itab2-matnr = son_tab-matnr.
        malz_itab2-menge = atab-menge.
        malz_itab2-poper = atab-budat+4(2).
      uretim_miktari = uretim_miktari + atab-menge .
      append malz_itab2.
      clear malz_itab2 .
      ENDLOOP.
    loop at malz_itab2 .
          SELECT SINGLE * FROM mbew WHERE matnr = malz_itab2-matnr.
          SELECT  SINGLE *  FROM ckmlcr  WHERE kalnr = son_tab-kalnr
                                                 AND curtp = s_curtp
                                                 AND bdatj = s_bdatj
                                                AND poper = malz_itab2-poper
          x =  x + ( ckmlcr-pvprs * malz_itab2-menge ).
      if malz_itab2-menge > 0 .
            ztab-pvprs = x /  uretim_miktari.
          else .
           ztab-pvprs = 0 .
          ENDIF.
    endloop.

    Yusuf - Apologise for digressing but i looked at the select and it is not the best one. Couple of things:
    1. Should use "Into table" in the select and avoid select-endselect
    2. Loop and then select single shud be replaced by selecting mbew separately by "for all entries..." and then doind "read table...binary"
    Else you will have lot of performance issues in Production server.
    Regards,
    Shireesh

  • Age calculation in report builder query

    I am using SQL reporting services 2008 and report builder I have setup a report where I want to calculate the age of each student. 
    I have table called Students with a DOB field. 
    I want to display the age of each student and also use the age field in a parameter. 
    Any one have any ideas on best way of doing this.

    Hi,
    Below is my query and at the end I am trying to work out the age of student but when I run this I get an error "ORA-00933: SQL command not properly ended". Any one got any ideas.
    SELECT  s.forename, s.surname, to_char(s.DOB,'dd-Mon-yyyy') DOB, s.gender,s.ethnic_or, s.post_code,p.prov_name,e.term_desc,e.fin_yr,e.age_calculation_date,lc.paid_amt,       lc.paid_hrs_term,lc.paid_status,lc.paid_hrs_wk,lc.yearlyentitlement,lc.act_hrs_term,lc.act_hrs_wk,lc.act_wks_term,lc.oth_settings,lc.unpaid_hrs
    FROM     student s, provider p, ey_term e, la_service_provider lp, la_service_provider_detail ld, la_service_provider_service ls, la_serv_prov_child_hours lc, corresp_address c
    WHERE   lc.term_id = e.term_id
    AND             lc.stud_id=s.stud_id
    AND             lc. LA_SERVICE_PROVIDER_DETAIL_ID =ld.LA_SERVICE_PROVIDER_DETAIL_ID
    AND              LD.LA_SERVICE_PROVIDER_SERVICE_ID = LS.LA_SERVICE_PROVIDER_SERVICE_ID
    AND      ls.LA_SERVICE_PROVIDER_ID = lp.LA_SERVICE_PROVIDER_ID
    AND      lp.EARLY_YEARS_PROVIDER_ID = P.PROVIDER_ID
    AND S.STUD_ID =C.entity_id (+)
    select DATEDIFF(YEAR, '20121231', CURRENT_TIMESTAMP) as Age

  • Date calculation in report

    Hi,
    in rpt i need to show the diff b/w 2 dates.
    i.e., (END_DATE- START_DATE).
    so i have created 2 formula variables on END_DATE- START_DATE.
    i just wanna confirm whether i created it properly or not.
    Procedure:
    Under Formula Variable-->New Variable.
    Type of Variable: Formula
    Processing by : Replacement Path
    Ref Char: END_DATE.
    in replacement tab
    Replace Variable with: InfoObject
    Replace with: Key
    Use Interval: To Value
    Offset Start: 0 & Offset Lenght: 0
    Currency/Unit:
    Dim : Date
    same procedure for START_DATE(Use Interval: From Value)
    then fomula: END_DATE - START_DATE.
    any thing to change ??
    regards,
    kv

    HI SHANTI,
    i have used same method, but it was done in 3.0 so there are few extra options in 7.0
    iam more concerned about them... like...offset start & offset lenght.
    in rpt output numbers are not displayed...its displaying "X".
    regards,
    kv

  • Aging calculation in report

    Hi Friends,
    I have a field 'CREATION_DATE' in the data provider.
    I have to populate the 'Aging' field as follows...
    AGING = Days between Current Date and Creation date.
    can anyone please help me on this.
    Thanks in Advance.
    Regards,
    Ravish

    Hi Ravish,
    Refer following document for the process along with detailed screenshots of creating customer exit variables:
    [http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/f002c608-2533-2c10-25a1-d0e7f7b5b662?QuickLink=index&overridelayout=true|http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/f002c608-2533-2c10-25a1-d0e7f7b5b662?QuickLink=index&overridelayout=true]
    You can also refer following SAP help document for further details regarding Customer Exits:
    [http://help.sap.com/saphelp_nw04/helpdata/en/f1/0a56f5e09411d2acb90000e829fbfe/frameset.htm|http://help.sap.com/saphelp_nw04/helpdata/en/f1/0a56f5e09411d2acb90000e829fbfe/frameset.htm]
    Note:
    In the code you can use the code given in my earlier posts.
    Regards,
    Geetanjali

  • Calculation of Percentage in Report CN41

    Hi Sir,
    How is Processing % of work & Processing % of duration  is Calculated in Report CN41
    Regards,
    Gagan

    Processing%  of Duration
    For the network activity:
    Activity is finally confirmed-> Degree of processing duration  = 100
    Activity is partially confirmed-> Degree of proc. duration = 100 x actual duration divided by (actual duration + remaining duration)
    Activity is not yet confirmed-> Degree of processing for duration = 0
    For the WBS element:
    If no actual finish date is entered-> Degree of processing for the duration = 0
    If no actual finish date is entered-> Degree of processing for the duration = 100
    Processing% of Work
    Activity is finally confirmed-> Degree of processing = 100
    Activity is partially confirmed-> Degree of processing = 100 x actual work/forecasted work
    Activity is not yet confirmed-> Degree of processing = 0

  • Report S_ALR_87013533 COLUMN REMORDPLA -  HOW IS IT CALCULATED?

    hI,
    Does anyone know how the column remordpla is calculated into report S_alr_87013533?
    What are its exact calculation steps? I mean , those data how it is extracted?
    Thanks a lot ,Carlo

    Doesn't work hitting f1 won't give me any info , had already tried...

  • [Inf. Broadcasting]: Pre-Calculated Report.

    Dear Expert,
    Can you all kindly suggest me what i've to do ?
    I have information broadcasting with the setting like this :
    Distribution type : Broadcast E-Mail
    Output format : Online link to current Data.
    With the kind of that setting, the recipient will get the email whose the content is the link to access report.
    For my case :
    1. User Get email whose content is the link.
    2. User click that link.
    3. User goes to the BW Website.
    4. User key-in the parameter.
    5. User run the report.
    6. Report is displayed.
    With the same case, could i make the proccedure like this :
    1. User Get email whose content is the link.
    2. User click that link.
    3. User goes to the BW Website.
    6. Report is displayed.
    It means that BW has pre-calculated the report before user access the report. How can i make it ?
    Could somebody help me to solve the kind of this problem please .. :).
    Or
    Is that any other ways to do the same like my requirement above ?
    Many tks for the attention.
    Best regards,,
    Niel
    Message was edited by:
            Niel

    Hi,
    Check this link.
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/fcf3ac90-0201-0010-cd8c-a591d58621c3
    http://help.sap.com/saphelp_nw04/helpdata/en/3a/0e044017355c0ce10000000a1550b0/frameset.htm

Maybe you are looking for

  • Web Interaction widget not working.

    I am having an issue with the "Web Interaction" widget. When I enter a link, the link shows a 404 error and does not display. however I have tested this link in multiple browsers and operating systems and have verified it to work in all of them. Any

  • Quite complext problem - INSERT into PAYMENTS

    I am trying to use the following code to insert data into the payments table. The code does work, the user is prompted for the order number (3 times - but this is ok). The fnext time this code is used the order number previously entered is used again

  • File and Printer Sharing

    Running XpHomeSp2. Just purchased a WRT150N to replace a failing SMC wireless router. Was able to share files and printers before replacement, now cannot. Microsoft Windows Network recognizes Local network by name after long, slow delay, but does not

  • Why can't I watch news video on ipad2? Says I need adobe and that is not supported on this device

    I subscribe to several news feeds and cannot watch the videos they post (fb). On the site I am tol I need adobe but my device does not support it. Why doesn't it and what can I do?

  • What is sort_area_retained_size?

    Hi, what is sort_area_retained_size? I have gone through some documents, but its not very clear in any case. Thanks,