Formula Issue in Deski Report

I need to create a formula in deski reports to sum up the column specific records Excluding Negative values.
i.e., If there are negative values in the column , then they should show in the column but when sum is calculated , negative value should not be included in that....!!
e.g.,,
Column1   Column2   Column3
a                23              13                
b               -16               3
c                10               -7
Total        33               16
        (excludes -16)    (excludes -7)
I have tried these combinations but in vain.....
1) = If Sign(column value name) <> -1 Then Sum(column value name)
2) =If (column value name >= 0) Then Sum(column value name)
Else Sum(column value name) = Sum(column value name) - (column value name)
Please help asap.... Thanks in advance

Hi
Try below.
Create two variables\formulas as per requirement
1. For totals without negative values
=Sum(if (Column2) >= 0 Then Column2 Else 0)
2. For totals only with negative values
=Sum(if (column2) <= 0 Then column2 Else 0)
Cheers,
Suresh A

Similar Messages

  • Page Size issues with Deski Reports while saving to PDF

    Hi All,
    While saving the Deski report as PDF, the page size changes randomly.
    The workflow is:
    Created a report in Deski.
    -- Chekced in File | Page setup the zoom size(Fit to Print | Adjust to) is 100% and the paper size is A4.
    -- Saved it as PDF.
    -- In Acrobat Reader 7.0, opened the save report, the size of paper is 8.5*11, the normal paper size.
    -- In the report in theFile | Page setup, changed the zoom size to anything less than 100% (e.g changed to 90%) whereas the paper size is A4.
    -- Saved it as PDF.
    -- In the Acrobar Reader noticed that the page size increases to some random size(e.g 9.18*12.99).
    When priting the Document the printer changes the same to A4  resulting in truncating of the content.
    The page size should be same but the content size should reduce.
    The issue can be reproduced in 6.5 and XIR2 as well.
    Is there any workaround for this that the size of the content decrease rather than increasing the page size??

    Hello,
    as you refer to Deski I recommend to post this query to the [BusinessObjects Desktop Intelligence|SAP BusinessObjects Desktop Intelligence; forum.
    This forum is dedicated to topics related to the creation and design of Desktop Intelligence documents such as universe connectivity, prompts, charting, formatting, filter, and formulas.It is monitored by qualified technicians and you will get a faster response there.
    Also, all Desktop Intelligence queries remain in one place and thus can be easily searched in one place.
    Best regards,
    Falk

  • Running Total Issue or Possibly Formula Issue in Crystal Reports 9

    Post Author: Jeffs23
    CA Forum: Formula
    My issue involves two formula's - @TotalTime and @Converted Time and a Running Total (RTotal0).
    @TotalTime{Data.ApptTime}/60@Converted Timenumbervar x := {#RTotal0};totext(truncate(x),0,"")" Hrs "totext(remainder(x,truncate(x))*60,0,"") + " Mins"Running Total (RTotal0)
    Field to Summarize - @TotalTime
    Type of Summary - sum
    Under Evaluate Section:
    "Use a Formula":
    onfirstrecord or
    {Data.ResourceStart} <> previous({Data.ResourceStart}) or
    {Data.Resource} <> previous({Data.Resource})
    ) and
    minimum({Data.ApptKind},{Data.ResourceStart}) = 1 AND
    maximum({Data.Column},{Data.ResourceStart}) >= '1'
    Reset on change of field {Data.Resource}
    A little background:My report deals with a Doctors schedule. In the doctors schedule, a appointment is booked and is by default placed into Column 1. It always defaults to Column 1. If the provider elects to double book their time and schedule another patient at the exact same time, the second appointment hits column 2. It expands in essence. It is possible to have up to 4 appointments in one time slot. This is why we wait forever at the Doctors office - appointments get overbooked because patients cancel or no show frequently and the provider would rather have the patients wait then risk no appointment at all. My Client wants the "TOTAL TIME" a provider was "scheduled" to see patients, not the time they actually saw the patients. So if the Provider was scheduled to see patients from 8 am to noon and had patients doublebooked for every time slot, I only want to report the overall time he saw patients regardless of the doublebooking, triplebooking or quadruplebooking. So the total time for my example should be 4 hours not 8 hours. The good news is this is painfully close to being correct! What is currently happening, is if the schedule contains more than 1 facility the time calculates wrong.  I think my issue may be in the running Total but not 100% sure. I need it to calculate time on each facility - {Data.Facility}.

    Post Author: Jeffs23
    CA Forum: Formula
    I had some minor issues with my formulas and Running Total so I modified them alittle:
    @TotalTime
    If {Data.ApptTime} = 0 then    0else    {Data.ApptTime}
    @Converted Time
    If {#RTotal0} = 0 then    "--"else    ToText(Truncate({#RTotal0}/60),0,"") + " Hour(s), " + ToText(Remainder({#RTotal0},60),0,"") + " Min(s)"
    My running total stayed the same.......
    Field to Summarize - @TotalTime Type of Summary - sum Under Evaluate Section: "Use a Formula":(onfirstrecord or{Data.ResourceStart} <> previous({Data.ResourceStart}) or{Data.Resource} <> previous({Data.Resource}) ) andminimum({Data.ApptKind},{Data.ResourceStart}) = 1 AND maximum({Data.Column},{Data.ResourceStart}) >= '1' Reset on change of field {Data.Resource}
    Some fake sample data:
    Resource = Francis, William MD
    Facility 1: River Oaks Main Clinic
    Facility 2: Western Medical Hospital
    Date of Service = 10/25/2007
    From 7:15 am to 11:45 am, Patients were treated at Facility 1: River Oaks Main Clinic *** (total time = 4 hours 30 min)
    From 12:15 pm to 1:00 pm, Patients were treated at Facility 2: Western Medical Hospital *** (total time = 45 min)
    From 1:00 pm to 3:15 pm, Patients were treated at Facility 1: River Oaks Main Clinic *** (total time = 2 Hours 15 min)
    The report should tell me Total time at River Oaks Main Clinic = 6 Hours 45 min and 45 min for Western Medical Hospital. What it currently is doing, is reporting the 6 Hours 45 min on the River Oaks Main Clinic and 7 Hours 30 min on the Western Medical Hospital. The time for this facility should be 45 minutes, yet its taking the full provider time and throwing it into this second facility. I am assuming its because the Running total tells it "Reset on change of field {Data.Resource}". Somehow, I need it to evaluate on both the Resource and the Facility. Any suggestions?

  • Formula Issue in Crystal Reports 8.5

    Hello, I am having an problem figuring out an issue I am having with a formula in Crystal Reports 8.5. What is happening is if there are 2 or more records on a specific table, the formula does some weird things. Basically what is happening, is the formula works, but if there are more then 1 record on the table, it double, or add numbers twice. Here is an example:1st record has two value, value 1A = 63.36, value 1B = 197.132nd record has one value, value 2A = 23.10So on the first pass, it takes 1A plus 1B plus 2B and sums them and loads that to a variable. Then because there is a second record, it takes the variable which now has a value of 284.19, adds the variable value back into itself for a total of 522.18 and then adds value 2A for a total of 545.78.
    What I need it to do is only run through the formula once to get the value of...
    This topic first appeared in the Spiceworks Community

    What product are you using to schedule the reports?
    Ludek

  • Red Blue issue with published DeskI Report in InfoView

    Hi everyone,
    i'm expieriencing a strange behaviour with my published DeskI Reports.
    I'm using logos in my report and they work just fine... in my full client. As soon as I publish them to InfoView and open them up in the browser, then somehow the color red and blue interchange. Red becomes blue and vice versa...
    My System consists of:
    BOE R 3.1 SP2
    Win Server 2008
    DeskI and WebI
    Has anyone expirienced the same issues?
    Thanks and kr,
    Nils

    Hi Stratos,
    so far everything is just fine. Hope you are doing great too.
    my IE version is: 7.0.5730.13
    Tomcat version: 5.5.20
    If I click on the logos in InfoView, nothing happens.
    I tested 3 different ways to implement them:
    1) via link; pictures shows up, but again with the red blue issue
    2) as an object; pictures shows up; also w/ the red blue issue
    3) inserted a cell, and pasted the picture in it, pictures shows up; also w/ the red blue issue
    The strange thing is, that this issue only appears in the browser.
    Thanks,
    Nils

  • Crystal Report 2008 / JavaScript hyperlink formula/ Issue

    Hi,
    We've developed the Crystal Report using the Crystal Reports 2008 software & integrated it in asp.net web page and also deployed in IIS web server. We have a requirement like opening the sub report in a new window. We have integrated the sub report also in a asp.net web page & passing the parameters in URL & acheived it..
    For the above, we have used JavaScript code like "javascript:window.open('SubReport.aspx','...','..' ...)" in the hyperlink formula field of main report. It works fine while running using VS 2005 in the development box.
    But in production serer (Windows 2003 server), the JS URL in the formula field is not working properly. Instead , it is rendered as a drill down JS url. Like javascript:bobj.event.publish('drilldown',........)
    Can you please help us to resolve this issue?
    (OR) Do we have any other approach to open the web page in new window from CR (same like a popup window)
    Thanks
    Jeyakumar
    Edited by: Jeyakumar Seenivasagam on Nov 21, 2008 12:02 PM

    I understand that the point of this is to allow the URL link to open the Subreport.aspx page in a new window. This can be problematic due to cross-site scripting restrictions. A few years ago we found that it was possible for report writers to add JavaScript to reports. This isn't a problem if the report writers are honest and nice. However, it is possible for JavaScript to be malicious so that ability to include JavaScript was turned off when the app uses our webform viewers. There may be a way to turn it off in the registry though. This is documented for CR XI r2 [here|https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/oss_notes/sdn_oss_boj_erq/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/scn_bosap/notes.do].
    I am not sure if this reg key works for the .NET viewer, though the note specifies DHTML and .NET InfoView, so CR should work also. As you are using CR 2008, I suspect the key would be:
    HKLMSoftwareBusiness ObjectsSuite 12.0Crystal Reports
    You will most likely have to add the Export folder, then add the HTML folder, then add the EncodeHTMLForSingleLineFieldObjects and set it to "no".
    Please note that this is a hack / workaround found for CR XI r2. The functionality you are looking to exploit was removed for a reason. As such if the above does not work for CR 2008, it will not be considered to be a "bug" and we will not be able to send this to R&D for a resolution.
    Ludek

  • Page size issues while saving Deski report to PDF

    Hi All,
    While saving the Deski report as PDF, the page size changes randomly.
    The workflow is:
    Created a report in Deski.
    -- Chekced in File | Page setup the zoom size(Fit to Print | Adjust to) is 100% and the paper size is A4.
    -- Saved it as PDF.
    -- In Acrobat Reader 7.0, opened the save report, the size of paper is 8.5*11, the normal paper size.
    -- In the report in theFile | Page setup, changed the zoom size to anything less than 100% (e.g changed to 90%) whereas the paper size is A4.
    -- Saved it as PDF.
    -- In the Acrobar Reader noticed that the page size increases to some random size(e.g 9.18*12.99).
    When priting the Document the printer changes the same to A4 resulting in truncating of the content.
    The page size should be same but the content size should reduce.
    The issue can be reproduced in 6.5 and XIR2 as well.
    Is there any workaround for this that the size of the content decrease rather than increasing the page size??

    Hi Sarbhjeet,
    Thank you for all your help.
    Further to our investigation we found that this is known issue and it is a limitation of the Product, it wont be fixed.
    The ADAPT for the same is ADAPT00743734
    It is reproducible with XI 3.1 as well.
    FYI...........
    1. PDF Engine will get the rendering information from the busobj. If there is a character size differences between PDF and busobj, there are chances that you may see bigger cells or reduced data in PDF.
    2. In the report when Fit to 1 page by 1 wide in Pagesetup->FitToPrint, the page size will be set to the fit the complete report in busobj.
    3. When save as PDF, this information (increased page size, due to settings in 2) will be sent to PDF Engine. The Engine will try to fit the size into the available standard PDF size (based on Print settings and other combinations).If it tries to fit the report (enhanced page size) to the available size, then we loose lot of information depending on the number of columns and rows.
    4. Shrinking the report in busobj may not feasible.
    When we change the page size in Fit to Print (either Adjust to % or Fit to ) , in reporter it changes the page size instead of changing the rendering to fit to the page.
    When save the report to PDF, it gets the information with extended page size. So we see the enhanced page in PDF.
    Also in order to implement the shrink (instead of changing the Page size), each cell has to be shrieked to the percentage of the reduced page (compared to the original page size). It becomes more complicated when charts come to picture.
    I hope the above information helps.
    Thanks & Regards,
    Anisa

  • Deski reports performance issue

    After an upgrade from BOXI Release2-SP3 to BOXI Release3.1-SP3 all the deski reports are very slow when we try to refresh them using Infoview.
    For example, a specific deski report needs two minutes from Desktop Intelligence and twenty!!! minutes from Infoview. The same behavior have all the migrated deski reports. Do you have any idea/workaround??

    hi,
    - Set the array fetch size as 500 and array bind size as 32767 in Universe Parameters
    Following links will be helpful.
    http://www.forumtopics.com/busobj/viewtopic.php?t=142973&sid=0a48878553739783e77ca43ae06c5cdb
    Performance issue with Deski in three tier mode
    Regards,
    Vamsee

  • Issue in Infoview while refreshing DeskI report with prompts

    Hi all,
    When I tried to refresh a WebI report whose Data Source is Universe, which is having some prompts, the prompt window was displaying the prompt values that were used to run the report earlier. Similarly when I tried to refresh a few DeskI reports whose Data Sources are free hand sql/ Universe -> Customized SQL which were also having prompts, the prompt window is not showing me prompt values (especially prompts with texts) that were used to run the report earlier.
    Now my issue is how to display the prompt values that were used  in the prompts earlier while refreshing for DeskI (Data Source: Free hand SQl/Universe -> Customized SQL) Reports
    Any help is highly aprreciated.
    Thanks & Regards,
    Suresh.

    Hi Suresh,
    Noticed you still have no answer.
    For Deski prompts, only the last value selected is 'remembered', same for freehand as for a universe query.
    It does get 'erased' however when you purge the data or when you select a 'wrong' value resulting in no data.
    This is the basic difference, webi will remember even though you purged
    (you can specifically purge those to if you want to), so not the freehand sql.
    It is possible however to use the @prompt() syntax and pre-build the possible list of values if the list is not too big.
    Hope this helps,
    Marianne

  • Deski Report Issue

    1. I have a requirement in which I need to show a column values with (lets say A), checkboxes as below
    CB a1                              CB a2                   CB a3                      CBa4
    CB a5                              CB a6                   Cb a7                      CB a8
    where CB  is a checkbox. Is this possible in DeskI report if so please let me know your views/suggestions.  Note: No of column A values are not known in advance.
    Thanks in Advance,
    Suresh Aluri.

    Created a condtion in Query panel as COl is not null so that the required col doesn't have any null values

  • Not able to save deski report as PDF through infoview

    Hi,
    when I try to save a deski report as PDF through infoview error appears as:
    Your request could not be completed because a failure occurred while the report was being processed. Please contact business administrator.[RCIRAS0546] (Error: INF)
    we are using BOXI 3.1/ SP2.
    Please let me know the possible solution for this.
    Thanks
    DLN

    Are you migrated from earlier version to 3.1.
    YES,
    here you go,
    Have a back door way to fix the problem...
    We were having the same issue with DeskI documents while upgrading from XIR2 to XIR3.
    It's tied to documents that are set to Refresh on open
    If you import the report, set it to "not" refresh then publish it, test it and it should run fine. Once you get it working correctly you can republish the report again and turn the "Refresh on Open" back on.
    It should work fine from that point on.
    Thank You!!
    Sent from iPhone
    Edited by: BOCP-BOE on Oct 19, 2010 12:01 AM

  • BO XI 3.1 DeskI report Calculation mismatch in record values

    Hi ,
    I have an Calculation issue in one report after migrated from BO 5.1.6 to BO XI 3.1.
    After refreshing two reports parallelly, BO XI 3.1 report 1st 3 records of two columns are not at all there in BO 5.1.6 report.
    in XI 3.1 i am getting 3 more records compare 5.1.6.
    And out of that one column recod values is not matching with 5.1.6, but these record values Sum of total is matching.
    (Ex: Here is the report output im getting with mismatches
    BO XI 3.1         BO 5.1.6
    Age Value
    0        5             
    3        5
    4        5
    5        5
    6        5
    temp   5
    Total   5
    BO 5.1.6
    Age Value
    6         1
    temp   4
    Total   5
    I have checked for the filters,hided columns, formulas. Both are looking same.
    Cany anyone suggest me for a solution.
    Thanks in advance,
    Krishna

    Im trying to copy the output im getting again, format is getting changed after i submit
    BO XI 3.1               BO 5.1.6     
    Age     Value          Age      Value
    0     5          6     1
    3     5          temp     4
    4     5               
    5     5               
    6     5               
    temp      5               
    Total   5          Total   5

  • BO XI 3.1 DeskI report Calculation mismatch

    Hi ,
    I have an Calculation issue in one report after migrated from BO 5.1.6 to BO XI 3.1.
    After refreshing two reports parallelly, BO XI 3.1 report 1st 3 records of two columns are not at all there in BO 5.1.6 report.
    in XI 3.1 i am getting 3 more records compare 5.1.6.
    And out of that one column recod values is not matching with 5.1.6, but these record values Sum of total is matching.
    (Ex:  Here is the report output im getting with mismatches
    BO XI 3.1                                BO 5.1.6
    Age    Value                        Age       Value
    0           5                                6            1
    1           5                                0            4
    3           5
    4           5
    5           5
    6           5
       Total   5                                Total        5   
    I have checked for the filters,hided columns, formulas. Both are looking same.
    Cany anyone suggest me for a solution.
    Thanks in advance,
    Krishna

    Im trying to copy the output im getting again, format is getting changed after i submit
    BO XI 3.1               BO 5.1.6     
    Age     Value          Age      Value
    0     5          6     1
    3     5          temp     4
    4     5               
    5     5               
    6     5               
    temp      5               
    Total   5          Total   5

  • Unable to run Store Procedure based deski report in Infoview

    Hi All,
    I have a Deski report which is created using Store Procedure. I am able to run report in Full Client Deski. But I am unable to run / schedule same report thorough infoview.
    More details about report
    - Report uses 3 store procedures. When I ran report in infovew I get error message as "SP2 Dataprovider did not refresh properly".  -- SP2 is Dataprovider name.
    - Same report I am able to run in Dev environment. After migration to Model, report fails to run in model infoview.
    - I am able to Run report only for 1st. When I refresh and run with same parameter report shows error.
    Any input will be great help.
    Thanks,
    NV

    Hi,
    Could you please test the following solutions to resolve the issue.
    Solution1:
    Test the issue by inserting the following parameter in .SBO file.
    <Parameter Name="Force SQLExecute">Always</Parameter> .
    Solution2
    Just put SET NOCOUNT OFF in the end of the stored procedure SQL.
    If the above doesnu2019t works then please try the following solution.
    Solution3
    Make the new connection from the scratch using ODBC connection and test the issue.
    I hope this will help you.
    Regards,
    Sarbhjeet Kaur

  • Large DeskI report in Infoview

    Hi,
    I am getting error u2018No server was available to process the request. Please try again later. (Error RFC 00101) (Error: INF)" while opening a DeskI report in Infoview (BOXIR2 SP4).
    Same error appears while viewing scheduled instances of this report. There are more than 1 million rows in the report. WebI report with same data runs properly. No issue in DeskI full client.
    I applied the workarounds mentioned in the SAP notes 1199258, 1199491, etc. Also tried using dedicated servers for the report; no impact.
    Please advice.
    Regards,
    Hitesh

    Hi Hitesh,
    Following information might help you to resolve the issue.
    Issue might be related to timeouts on the connection server.
                                                                                    Please login into CMC and go Home>servers , locate Input and Output File servers and modify timeout of each to be 60 minutes. Default is 10 mins                                                                               
    This 10min default value can be modified in the registry as well:                                                                  
    HKEY_LOCAL_MACHINE\SOFTWARE\Business Objects\Suit 11.5\File Server\Instances\input.<machine name>                                  
    There is a registry key called u201CServerMaxIdleTimeu201D. Modify it and change the decimal value to 90 (default is 10, max is 90).                                                                               
    After this change is made, please restart CMS and FRS servers and test same again. Please let me know the results.                                                                               
    Regards,                                                                               
    Sarbhjeet Kaur

Maybe you are looking for