Calculation in Webi Report

Hi Experts ,
I want to show the result calculation of a Webi Report (derived from Bex query which uses %YT in CKF) . Since BO doesn't support %YT so I am creating the dynamic calculation in Webi :
Scenario :
Data in Report is like this : If in selection 03.2015 calmonth is given -
Calmonth -> 03.2015
Region
Order Value
Adjusted Value in %
APAC
86790.84
24.34
EMEA
119436.86
33.5
AMER
150280.64
42.15
Total
356508.34
100
Here Adjusted Value in % is the percentage with compared to the total . for example for the first row its is 86790.84/356508.34 . So the Sum of this is coming as 100 which is correct .
Formula used is = [Order Value]/SUM(Order Value]) In Report
Both are giving the desired output .
But when the selection is given as 03.2015 – 04.2015 , that time the percentage is calculated based on the total value of [Order Value] for these two months.
For example in 03.2015 , for the first row it is getting calculated as
86790.84/(356508.34+150634.84) which is equal to 17.11 as displayed in the report (Which I don't want)
Calmonth -> 03.2015
Calmonth -> 04.2015
Region
Order Value
Adjusted Value in %
Order Value
Adjusted Value in %
APAC
86790.84
17.11
61135.4
12.05
EMEA
119436.86
23.55
66419.34
13.1
AMER
150280.64
29.63
23080.1
4.55
Total
356508.34
70.3
150634.84
29.7
For 03.2015 , I want it to be calculated as 86790.84/356508.34 and for 04.2015 it should be 61135.4/150634.84 .
So that in every month (Based on the user Input) , the Adjusted Value in % should be 100% .
How to achieve it .
Thanks in Advance ...
Points will definitely be Awarded ..

Hi Samir,
Use = [Order Value] / ([Order Value] In ([Calmonth]))
Thanks,
Tanveer

Similar Messages

  • Mathematics calculation in Webi Report using "For Each"

    Hi All,
    I am using BOXI R3.0, I am stuck in webi calculation for one report report tab. I have 2 tab in one report, one is summary and other is Detail in same report. In Detail tab the data looks like as below:
    DataSet 1:
    DNo.-Date-Hours-Vol-Pri---Tot(Vol*Pri)
    10 -1/12- 01:00---10 ---10 ---100
    10 -1/12- 02:00---20 ---50 ---1000
    10 -1/12- 03:00---30 ---30 ---900
    Sum: 2000
    Now the above is my detail reprot which gave me data by hour, now in summary i removed the hour column then data looks like below:
    Dataset 2:
    DNo.-Date-Vol----Tot(Vol*Pri)
    10 -1/12- 60 -
    1800
    This is because "Vol" measure is sum in universe and Pri is Average.
    This gave me wrong data so How i calculate Tot for Sumarry tab such that it will give me below result.
    Dataset:
    DNo.-Date-Vol---Tot(Vol*Pri)
    10 -1/12- 60 ---2000
    Thanks for the help in advance.
    Thanks,
    Nimesh.

    Hi Nimesh,
    I think you need to wrap a sum around the function and use an input context.
    =(Sum([Pri] In ([DNo]; [Date]; [Year])))*[Vol]
    This will sum the average values down at the year level and multiply it by vol, even though year is not on the table.
    Let me know how you get on
    Regards
    Alan

  • Calculations with Web Report results

    Hello, I'm just getting started with SAP BW and Web Reporting and that’s why I need some help. I have created a Web Report that shows the query results in a table. Now I want to make further calculations within the report. Therefore I have to access the results of the web report and I just don’t know how to do this. Maybe there are some javascript functions for that problem?

    A basic form of web report is to show the Bex report in Web table form, for that we assign the query to the table in the web table item.
    if further calculations need to be done using the already present keyfigures, then you can use the Calculated Key figure.
    Depending on the scenario you can also define the cell calculations, if you have structures both in the rows and columns.
    Refer to Web Table API to manipulate the cells of  the web table. This article using Web Table API could be helpful for you.
    Table interface doubt ?

  • Create calculation in webi report

    Hi
    I need calculate in a report like below.
    For example report as below.
    Region          revenue
    North             200
    South            390
    Total
    east               100
    west                 50
    Total
    Grand Total
    Reg above i have two questions
    1)How can i do the calculation for this report?
    2)I need to add any free hand cells for TOTAL rows in report?
    Please advide.
    Best Regards,
    Abhii

    Hi Abhi,
    Simple Way : Break the table by Region and apply Sum Aggregation on qty. you will have a display like this
    Region    revenue
    North      200
    Sum        200
    South     390
    Sum       390
    east    100
    Sum     100
    west     50
    Sum     50
    Sum   740 ( Grand Total)
    Other Way: Create a new report variable ,apply break on Region_num & use Sum Aggregation on Qty.
    Output will be like this
    Region_num    Region     Revenue
    Region 1         North        200
    ..............South       390
    Sum............... 590
    Region 2          East         100
    ..............West          50
    Sum...............150
    Sum................740 (Grand Total) 
    Regards
    Sunil
    Edited by: sunilkumar.k on Mar 5, 2012 4:21 AM

  • Sorting a variance column in Webi report

    I have the need to sort a report by a variance that I have calculated in the report.
    For example, a report has inventory for end of prior month and current day. I am calculating the variance between the two columns. (how much inventory has changed by product)
    I need to be able to sort this table descending so that I can see the big inventory movers first.
    When I select the variance column, the sort options are disabled.
    I have also tried to save my function as a variable and that does not seem to help.
    I am using WEBI XI 3.1.
    Any ideas?
    Thanks in advance.

    Rodney,
    The "column" parameter is used as such:  ;col which is added to the end of your formula like this:
    ([Stock Quantity] Where([Calendar Day]=Max([Calendar Day]) In Report) - [Stock Quantity] Where([Calendar Day]=Min([Calendar Day]) In Report);col )
    When you add the ";col" portion it tells WebI to calculate by column (the alternative keyword to this parameter is "row").
    You mention that you'll lose your calculated column, however, instead of building a formula with a cell, you can also construct a local variable to the report executing the same formula.  This method is handy when you'll have the same computation to do in perhaps several tabs, and you just want to code once and reuse in multiple places within your report.  So, if you can somehow work on establishing a local variable with the same formula, then demote the table to a horizontal or vertical table, put your objects in that grid configuration, apply sorts, then reposition as crosstab, you might be able to achieve your desired results.
    Thanks,
    John

  • Webi Report on BW Universe works in DEV but not properly in TEST

    Hi,
    We have created a Webi-Report on a BW Universe on our DEV server. Everything works like a charm and we are prompted as the first thing for keydate and the report is refreshed successfully. We then export the Universe (no connection overwrite) and Report to our TEST server with the Export Wizard and the problems start.
    When we refresh the report on the TEST server we are prompted for keydate. If we select a value for the date we receive an error:
    A database error occured  The database error text is: The MDX (and then some MDX) failed to execute with the error Specify a value for variable Financial Statement Version. (WIS 10901)
    If we select Use default value the report refreshes but no currency conversion is done. We can then refresh the report again and this time if we select a value for the keydate the report refreshes without the above error.
    We have tried to overwrite the connection during export from DEV to TEST so the connection points to our DEV BW Server with the same result. If we create the universe on the TEST server from scratch everything works as intended.
    If we transport the Universe and report from DEV to PROD directly the report works as intended.
    The BO user (SSO WinAd) testing this have admin rights on BO. The connection in the univers to BW is done using a fixed username and password (no SSO to BW)
    I am now out of options and would appreciate any input you might have to solve this problem.
    Best Regards,
    Lars

    Hi Wavery,
    Thanks for your reply. I have checked the connections and they are named exactly the same on DEV/TEST/PROD. I have also tried deleting the universe, connection and report on TEST and then do a new transport of all of them from DEV to TEST. Same result.
    What I don't understand is why the refresh works if I do it in two steps:
    <OL>
    <LI>
    I set keydate to "use default value" when prompted and the report will refresh without the keydate dependent calculations. None keydate dependent measures are showing correct values from BW.
    </LI>
    <LI>
    Then I refresh again and set the keydate to a date and the report refreshes with the dependent calculations.
    </LI></OL>
    This tells me the connection is working and the problem is somewhere else. At the moment I'm clueless
    Any input is highly appreciated.
    Thanks,
    Lars

  • BO Webi report giving WIJ 20003 exception

    Hi,
    I have a webi report which consists of some calculated fields based on Dataprovider SQL. A Report variable has been created to compare two columns and if they are equal then value is set to 1s otherwise, 0s. Based on the 1s I get, I want to display these rows only i.e. I have placed a filter where variable vaule is 1s. When I try to run the report, it gives me the following exception/error:
    'Unable to get the first page of the current report WIJ 20003 and details :
    Stack trace:
    java.lang.RuntimeException: Empty result
    at com.businessobjects.wp.tc.result.ResultXmlReport.displayPages(Unknown Source) at com.businessobjects.wp.tc.TCMain.updateXmlDocument(Unknown Source) at com.businessobjects.wp.tc.TCMain.updateXmlDocument(Unknown Source) at com.businessobjects.wp.tc.TCMain.errorOnResultPage(Unknown Source) at com.businessobjects.wp.tc.thread.SubmitRSRunner.run(Unknown Source) at java.lang.Thread.run(Unknown Source)
    Variable is Var Display=If([Var Col1]=[Var Col2];1;0)
    and then using Filter Pane add this variable equal to 1.
    Please advise.
    Thanks
    Sam.

    Not sure really if is it because of blank cells. I made a copy of the original report to identify what's the issue. what i observed was i refreshed the report successfully then it didn't give me any errors & i didn't see any #Syntax error in any column after i refreshed the report. But once i refreshed the report and saved it, then next time when you open the report in modify mode or schedule the report you will see this error.
    Later i have opened the query in Modify mode & edited the query then i saw a pop up saying unresolvable objects error. Then i ran the query again and saved the report, closed it & reopened the webi report. Then i didn't see this error again. Also verified by scheduling the report, i was able to open the instance without any errors.
    So the conclusion is, because you have some unresolvable objects in the query when you refresh the report and save it, the report gets corrupted and then when you reopen the webi report next time you will see this "ERR: WIJ 20003" error.
    Hope this helps others saving their time..
    Mark it as helpful/correct answer if this help anyone.
    Regards,
    Naveen

  • Not able to un-merge a dimension in webi report

    Hello,
    I'm facing an issue in webi reports. That is I'm not able to un-merge a dimension. I'm using BO 4.0 sp 6
    I have 6 data providers in my webi report all of those 6 have sales order number in common. The report refreshes fine but a new requirement came in where I had to add another query (data provider) which also has the sales order number.
    Now in the report I need to merge the new query's sales order number with the existing merged sales order number. When I un-merge the existing sales order number; webi just does not respond.
    Any ideas? thanks in advance.
    Regards,
    samique

    The way I resolved this is:
    1- Removed Sales Order Object from all the existing queries. (the variables that were using the sales orders broke)
    2- Added a new data provider query in webi; then added sales order objects in all the data providers.
    3- Merged the Sales Order objects in the webi report.
    4- fixed all the variables with calculations requiring sales order object.
    5- Dragged the Sales Order object to the report body.
    I hope to see an option in future where we don't have to do all this just to add a new data provider query to an existing report that uses merged dimensions. Because its just a waste of time re-doing things.
    There should be an option to merge new dimensions to the existing merged dimensions in the webi report.
    Regards,
    samique

  • #MULTIVALUE error in SAP BI 4.1 SP3 WebI report after upgrade

    Facing issues after upgrading from BO 3.1 SP3 to SAP BI 4.1 SP3.Below are the details:
    1.The WebI report is created with 2 data providers. The report tab has a vertical  table with 2 dimensions and 3 measures.
    2.In the report layout the objects displayed is coming from base dimension and not merged dimension.
    3.The data in some of the rows displays as #MULTIVALUE and some of them display the value.
    4.The report also have Sub totals and no breaks.
    Based on point no 3, not able to verify whether the subtotals are been calculated correctly. Please share your inputs,suggestions or solutions to resolve this issue.
    Thanks in advance.

    Hi,
    Do you have the Associated object on layout?. Drag and drop in a column and if you dont want to display hide it.
    Also , did you check the Extended Merged dimension option in properties?.
    Thanks,
    Jothi

  • With filter values iam not able to see out put of a  web report

    Hi,
    I had a web report. for the webreport,data provider is Query. My requirement is to change the description of calculated KF. I have changed the description of Calculated KF in Query and transported it to Quality system. But when i execute the Web Report directly in web browser the changes in the description of calculated KF are shown. But when i execute through some URL with some filter values in the web template iam unable to find the changes.
    Please help me on this.
    Thanks & Regards
    Bharathi

    Hi Ajay,
    i had a web template. For this web template query is the data provider. In my requirement i need to change the description of calculated key figure.
    Calculated key fig: OED Disconnect
    Change description of Calculated key figure from OED to IEG(IEG disconnect).
    I have changed the calculated KF desc from OED to IEG in development and transported to quality system. i can even find the changes in query also.When i execute the web template built on query directly through browser iam able to see the change in the description of calculated KF.
    But when i execute through some URL(http:// bwqa/sap/bw/pub?sap-language=EN&bsplanguage=EN&CMD=LDOC&TEMPLATE_ID=T_ECA_DTL_REPORT_BYUNIT&FILTER_IOBJNM_1=ZMREQCC&FILTER_VALUE_1=000001522&DATA_MODE=HYBRID) with some filters like  filter_iobjnm_1= ZMREQCC and data mode = hybrid iam unable to find the changes in the calculated kf description.
    But when i execute the url (http:// bwqa/sap/bw/pub?sap-language=EN&bsplanguage=EN&CMD=LDOC&TEMPLATE_ID=T_ECA_DTL_REPORT_BYUNIT) without filter values i can find the changes in the description of calculated KF.
    Kindly update me why the changes are not reflecting when i use filters.
    Thanks & Regards
    Bharathi

  • How to Get SUMCT SUMGT functionality in WEBI reports.

    Hello All,
    How to get the SUMCT SUMGT functionality in WebI reports using variables/formulates, as these fictions cant be used in Bex if we are developing a BO report on top of that.
    We are developing BO WebI reports on top of BeX query. nd we are on BO 4.0
    I tried to search in SDN but didnt got any relevant link.
    Thanks  & Regards
    Neeraj.

    Hello,
    Srry for disturbance.
    Got the soln for the same. Can be achieved easily using report context.
    For more details refer below link.. :
    http://www.dagira.com/2010/01/04/calculation-context-part-i-overview/
    Neeraj.

  • WEBi reporting requirement

    Hello All,
    I am stuck with one WEBi requirement. The requirement is as follows. I will try to make it simple.
    I have one BEx query from which i am getting data Cost Center (0COSTCENTER) & Actuals which i am displaying in WEBi report.
    For example BEx 1:
    CC1   100
    CC2   200
    CC3   300
    CC4   400
    I have another BEx Query which shows data as Sales Organization and actuals .
    For example BEx 2
    SO  1000
    Now in WEBi i want to do a calculation as follows using above BEx queries as follows :
    CC1   100   (100/1000)*100
    CC2   200   (200/1000)*100
    CC3   300   (300/1000)*100
    CC4   400   (400/1000)*100
    I hope the above example is clear enough. The problem i am facing is how to use the amount from the second BEx query to use against each cost center amount from the first BEx query in WEBi .
    Regards,
    Ashutosh Singh

    Hello Govind,
    As i said in my previous replies it doesn't work for me because i use hierarchies.
    Here i am putting a screenshot to give you detail that it does't work for me.
    Actuals YTD is coming from Query 1 in which i have hierarchy for cost elements.
    Actuals is coming from Query 3.
    Hope this makes it clear.
    Regards,
    Ashutosh Singh

  • WebI Report using BW Query

    Hi,
    I am using WebI Report using BW Query. I don't see some Formulas in Universe which is there in BEx Query.
    Did anybody face the same problem before?

    Hi,
    I meant that you should post in the forum the calculation contained in the formula that you cannot see in your universe.
    But let's start from the begining since you are new to SAP: Did you generated the universe yourself? If the formula was added in the query after the universe was created then you must refresh your universe (In the Universe designer  please select the option "Refresh structure" under the "view" menu) in order to get the newly created formula (I assume we are takling about a calculate figure here) in your universe also.
    Regards,
    Stratos

  • Webi reports - Problem exporting to excel

    HI,
    I have exported a webi report as an excel file. The report contains a column with numeric values preceded by a dollar sign. After exporting to excel, i want to calculate the sum of the values in that column. However some cells show a numeric value, while some others show string value (i.e. text) because of which I am not being able to calculate the sum. Please help.

    Hi there, 
    Is the object that you are exporting with the dollar sign a string?  If so then this is normal because it is not numeric.  I tried the workflow in Excel and wen I try to apply a sum, it seems to change one of the values from string to numeric but this is within excel.  Maybe this is happening to you too.  In order to be able to add a calculation correctly, you need to change the object to a numeric.  You can do this by creating a new variable in webi, removing the $ and converting it to a numeric. For Ex:  "=ToNumber(Substr([dollar string object];2;10))".  Note, if you still want the $ to appear, you can use the format number feature.
    Hope this helps!

  • Median function in BEx query based webi report

    Hi Experts,
              I have a requirement to have a median function in a chart in my webi report. I'm using BO 4.0 SP2 Fix pack 2.9 and using IDT connection to connect BEx queries. I have 3 dimension objects in X axis and Median as y axis. When i'm calculating median, it need to have the child dimension aslo be part of the chart. but my requirement the child dimension should not be in the chart.
    Example: i have Region, Country and state dimensions as X axis, and Median of sales revenue by city as y axis.
    In my chart, i should not include city. So i have written the formula like "Median(Sales revenue) Forall(City) in (Region;Country; state)" and i tried all the combinations of this.
    When i'm including the city object its working fine, but when removint it, its not. Please help me in this.
    Thanks.

    Hi Suman,
    thanks aigain for your reply!
    I have tried your proposal before you have posted it.
    In my special case the following if/else statement works successfully:
    CKF = calculated key figure
    Formula1 = (CKF1 == 0) * 0 + (CKF1 <> 0) * CKF2
    In my case the CKF2 is the result value from "Incoming Order value" - "Turnover"
    So I had to define a separate Formula (1:1 equals to CKF2) and then I was able to set "*CKF2" in the statement.
    The statement CKF2 = (CKF1 == 0) * 0 + CKF2 is not possible (because it´s not possible to calculate from CKF2 itself).
    Now it works
    Best regards,
    Michael

Maybe you are looking for

  • How do I get games and music on my phone from iTunes

    How do I get games and music on my phone from iTunes

  • Any ideas on this plan for a process chain?

    Hi, I have 6 ODSes. I load these on a daily basis with 6 different flat files. ODS1, ODS2 and ODS3 needs to be loaded first before ODS4, ODS5, ODS6. Once all six ODSes are loaded, they are then aggregated based on some two key fields to and loaded in

  • JMS limiting number of messages

    Is there a way to limit the number of messages or the amount of memory a jms queue uses? Currently having a problem with a queue bringing down the entire system when it gets flooded with messages.

  • Regarding PO in XI

    Dear All , I have a scenario where I am sending PO IDOC from SAP to third party system using SAP XI . Here the requirement is like this : From one PO idoc multiple XML files should be sent to Third Party system from XI .Multiple files are required as

  • Receiving a message encoded in SOAP

    Hi all. I have an application that sends objects encoded with SOAP to various clients. This is not done via a web service, but a standalone application. Now I want to receive these SOAP messages with a java client and use the methods of the Classes d