Web report - apply specific formula on result rows
dear all,
I would like to apply a specific formula for a result row in a web report.
formula like this (a1b1 + a2b2 + ...)/(a1+a2)
With excel report I know that a vba excel can do this job.
I suppose that with web report a javascript should be helpful to solve this issue.
Is there anybody who could propose me a solution to solve this issue, or a source code example of javascript to do this ?!
Thanks !
Hi Guru Prasad,
One possibility is that you are doing some calculation with the user parameter that occurs in the before parameter form trigger.
When running in the normal client-server Reports runtime environment, the report triggers are executed in this order:
1. before parameter form trigger executes
2. parameter form is displayed)
3. after parameter form trigger executes
4. data model is validated and queries prepared)
5. before report trigger executes
6. report is formatted)
7. after report trigger executes
When running on the web, the display of the parameter form and the execution of the report occur in two separate sessions as Reports is "stateless". So, it goes like this when you request the report via a URL:
1. before parameter form trigger executes
2. before parameter form is displayed)
At this point, the user enters in parameters into the web page, and submits the request. As far as Reports is concerned, this is a new report request with parameters fully specified and no parameter form. So, it now does this as a new report request:
1. after parameter form trigger executes
2. data model is validated and queries prepared)
3. before report trigger executes
4. report is formatted)
5. after report trigger executes
So, if you have logic that sets up default values in the before parameter form trigger, it won't get executed on the web. If so, you should move this logic to the after parameter form trigger.
regards,
Stewart
Similar Messages
-
Macbook pro numbers applying a formula to all rows
macbook pro, numbers: applying a formula to all rows...
I am trying to apply the same formula to successive row in a spreadsheet that I am using...how do I go about this?Apologies for not replying immediately! I have now managed to organise my entire stock list for my business; I just had a major brain blockage as to how to copy and paste formulae in columns, added to which I've never had any formal training in IT. I'm not too old to try and have a can do attitude and so far I managed ok. Now I've started my own business I'm putting what I've taught myself in to practice and I'm pleasantly surprising myself with the results.
Thank you again for your help,
Regards....charlie. -
Query Designer - Formulas in Results Row
Hi,
Is it possible to have a formula based purely on values in the results row? e.g.
Col A Col B Col C ColDl
Results Row 4 5 1 40%
Where Col D is Col A as a percentage of the total. I can create a formula for individual rows but not for the results row where it just seems to sum individual percentages.
ThanksHi Gaurav,
i have done what you have suggested:
In query designer > Properties for a Key Figure > Calculations > Calculate Result As > Nothing Defined,
I have set that, despite the rows are calculated as per formula defined in the key figure but the result field is not. The formula is only applied for the rows but not for the result. The result is olthough i have the setting you suggested a summation of that whole column and thats wrong.
Can you or anybody else help.
Thanks and regards,
Murat -
Hello All,
Need solution for my issue in reporting,
This is my Report format
Date A/c number Kf1 Kf2 Kf3
01.06.07 123 10 20 0
234 20 30 30
456 50 0 25
789 0 25 0
Result 80 75 55
01.07.07 124 10 0 10
134 30 30 30
457 40 0 0
788 0 25 10
Result 80 55 50
Now my requirement is to display Count in the result row as
Date A/c number Kf1 Kf2 Kf3
01.06.07 123 10 20 0
234 20 30 30
456 50 0 25
789 0 25 0
Result 3 3 2
01.07.07 124 10 0 10
134 30 30 30
457 40 0 0
788 0 25 10
Result 3 2 3
and to be more precise this is my requirement
Date Kf1 Kf2 Kf3
01.06.07 3 3 2
01.07.07 3 2 3
I made key figure Calculate Result as Count <> 0 and Calculate single value as Supress Result for each key Figure and A/c Number No display I got result like this showing all data as blank, however the rows will exist.
Date Kf1 Kf2 Kf3
01.06.07
3 3 2
01.07.07
3 2 3
But I need my result should be like this
Date Kf1 Kf2 Kf3
01.06.07 3 3 2
01.07.07 3 2 3
How can I Acheive this either by work Book Or by Query ,
Please help me
Thanks for all ur support in advance
Sai.Hello Boujema,
I Created formula variable replacement path in the same way you mentioned but this is irrespective to KF giving the Characteristic Account Number count...
Hello All,
please go through my requirement
this is my report
Date AC no Kf1 Kf2
01.06.07 XXX 10 12
yyy 15 10
zzz 5 0
result 30 22
If I remove Ac no from this it gives me a result as summation
Date Kf1 Kf2
01.06.07 30 22
In the same way the KF should give me count of the accounts
Date Kf1 Kf2
01.06.07 3 2
But I am getting now as If I mention Count<> 0 in KF properties
Date Kf1 Kf2
01.06.07 1 1
If I place Account Number in report which I dont want to Then i will get count
Date AC no Kf1 Kf2
01.06.07 XXX 10 12
yyy 15 10
zzz 5 0
Result 3 2
Hope you understand my requirement and come up with any solution.
Thanks for your help,
Sai. -
Web Template with document icon in result row
Hi All,
I have a web template created in WAD 7.0.
It has Analysis item with a Query as dataprovider.I have checked the "Document Icons for Data" to On in the cell content section of Analysis Item.
In query property also,Document link for infoprovider option is checked.
It is displaying the document icon in data cells correctly wherever comment is entered.But it also displays document icon in the result row cells.
I do not want to display the document icon in the result row cells.
Please help in this regard.
Thanks.Have you considered creating and using query views?
-
Hi result rows calculation is not happening properly in result rows as per the formula .
Formual for Absolute Error = Final forecast - Actuals
Follwing is the report out put
Material Period01
10324401 Final Forecast 733,490.000 LB
Actuals 555,583.67 LB
Absolute Error 177,906.33
10326795 Final Forecast 1,306,894.935 LB
Actuals 1,406,158.27 LB
Absolute Error 99,263.33
10329435 Final Forecast 188,000.000 LB
Actuals 192,000.00 LB
Absolute Error 4,000.00
10580325 Final Forecast 76,105.938 LB
Actuals 215,999.82 LB
Absolute Error 139,893.89
10580427 Final Forecast 158,733.076 LB
Actuals 0.00 LB
Absolute Error 158,733.08
Overall Result Final Forecast 2,463,223.949 LB
Actuals 2,369,741.76 LB
Absolute Error 579,796.62
In the above report , Material wise calculation for Absolute error is correctly calculating , BUT when it comes to Over all Result its just summing up all materials Absolute error and showing .
What i want in over all result is Absolute error should be calculated as overall Final Forecast - Over all actual ( I.e formula should be applied to over all result also ).
I tried with exception aggragation and other stuff but nothing is working .
Can any one Help me to apply the formula for result rows also ...
Helpfull inputs will be appriciated with points .
thanks in advanceHi All thanks for ur replies .
I solved my issue as following .
Formual for Absolute Error = Final forecast - Actuals
For Absolute error formula there are some ' exceptional aggregation ' and 'calculate result value as ' .
I removed these ' exceptional aggregation ' and 'calculate result value as ' and refreshed the report now in result rows
' Absolute Error' is calculating as desired i.e by using result rows ' final forecast' value & ' actuals' values in the formulae .
Regards
Navenas -
Calculations with Web Report results
Hello, I'm just getting started with SAP BW and Web Reporting and thats 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 dont 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 ? -
Isolating WebIntelligence ad hoc reports to specific Webi Report Processing Server
Post Author: Lucia Chan
CA Forum: WebIntelligence Reporting
Has anyone successfully isolated WebIntelligence ad hoc reports to be processed by specific Webi Report Processing Server? We need to enforce governance on the database side. We can restrict scheduling for Webi reports to specific Webi Report Processing Server, but not for ad hoc reports. Otherwise is there a way to do connection override for scheduled Webi reports?New version that's comming up SBO Bi4.0 will have bouilt in monitoring that will allow what you requesting.
In the current product line - this is not possible, unless you just monitor WIReportServer.exe at OS level and alert when it's memory or CPU usage goest too high... (if memory reaches close to and above 1.7gb - you're going into troubles.)
There are various fixes and improvements to Webi processing stability in recent fix and service packs, so if you're having webi instability - you should review latest FP fix issues list (in SMP to right of FP download there is an Info link - it leads to fixed issues docs).
If you do not see your issue listed - open incident with support - let them investigate.
Webi crashing when merging/unmerging dimentions sounds like a bug... -
Hi,
I created a variable in my webi report using below formula. It is validated but when I use this variable in my report giving #ERROR. Not dispalying the value.
=Count([Loan Number]) Where ([Interest Amt]+[Principal Amt] > 0)
Loan Number datatype is varchar2 and other two are number fields.
We are in BOXI R2 version.
Please suggest where I am going wrong.
Thanks,
Ven MenVen Men,
The preferred function in WebI is "if", so here is a stab at re-addressing your test on principle amount + loan amount:
=count(if( [Interest Amt] + [Principal Amt] > 0;[Loan Number]);0)
thanks,
John -
Simple but strange behaviour of "suppress result rows"
Hi,
In one of the Query, for all the characteristics, the result rows are suppressed but strangely when i execute it on web i see the result row is getting dispalyed for one char.
But when i go back and check my query designer,for every char i see suppress result row is set to Always...but i don't know why it is not reflecting on the web
Now can any one please suggest how to suppress this on web permanently..
Note:on the Web we can select the char and right click and change this feature in properties but it is a one time actitivity,Becuase when we try to execute the report once gain the result row again appreaing!!!
when we execute the same report in BEx analyzert eh result rows is NOT shown up but only in web it is apprearing
Is there any permanent way????????Hi Swapna,
If you get the same behaviour after reopening the Web Template, you can use command "SET_RESULT_VISIBILITY" to suppress the result rows of that characteristic at Web Template level.
Check this link for more details.
http://help.sap.com/saphelp_nw70/helpdata/en/43/d828d988ef05f6e10000000a11466f/frameset.htm
Regards,
Rk. -
Populating webi reports with images downloaded live from external sites
I'm writing applications to create different visualizations of my data, and would like the resulting images to show up in webi reports. Specifically, the application that draws the visualization will be deployed to the same java application server as webi. Users will open a normal webi report which will contain something like an HTML <img href="#myhref" /> tag, where #myhref will be a link to a page in my web application that draws a visualization.; Is such a thing possible, and if so, how? Many thanks, in advance.
Nevermind... I think I got it. I created a SQL query that would return the URL I wanted (something like SELECT 'http://server/context?param1=' || field1 || '¶m2=' || field2 FROM table", and then modified the resulting cell to be read as an Image URL.
-
Analysis Office vs Webi report ---Bex query Data mismatch
I have one Bex query.
I insterted the query in Analysis office for Microsoft edition, and its pulling 985 records, but when i inserted the bex query in Webi report its pulling only 27 records. Any body faced similar problem, explain the solution..?
Using BICS connction for webi report development.
Environment: BI 4.1 SP5
Anlaysis office version : 1.4 SP10Hi Ingo,
If we make it database delegated then the Webi query returns no results. (Blank results). Moreover there is no exception aggregation
We have tried the following and getting the result correctly,
In the Bex Query We had a Time variable which was based on SAP exit. We removed the SAP exit variable from Bex Query and restricted the period for atime range.
Then created a Prompt in Webi report for the time
The result is matching.
But still failed to undrstand this because other queries which have SAP exit variables works fine.
Still working around for a convincing solution for this.. Will let you know
Thanks and Regards
Rajesh -
Exception aggregation in one CKF causing problem in Result row of other CKF
Here is my scenario in 3.5x BW:
I have a CKF A which has exception aggregation (to select maximum value) based on a reference characteristic..
Now this CKF A is used in another CKF B and a third CKF C is being calculated based on CKF B. SInce I am using exception aggregation in CKF A, CKF B and C had to be set to be calculated 'after aggregation'.
Formula for CKF C = 100*B/ D (D is another constant CKF, with value 1 for each row).
Now my requirement is that the result row of CKF C should be calculated using the same formula on result row of B and D. This was working when I was calculating A without exception aggregation. But now I need to use exception aggregation aswell as I want the result of C = 100 * Sum(B)/ Sum(D).
I have tried the alternative of using a Formula selection (with formula collision - Result from this Formula)instead of CKF for calculating 'C', but didnot find any success in getting result row of C as per my requirement.
Any suggestions in resolving the issue will be higly appreciated..
Thanks
Shikhayou have created a calculated key figure A in your query, and in the properties of this calculated key figure you have defined the exception aggregation right?
so you can create a second calculated key figure (say A') with the same definition as ckf A, but you don't put any exception aggregation in it. then you need to create a second calculated key figure (say B') to replace the calculated key figure B, and use ckf B' in this new ckf.
when you use now the calculated key figure B' in the formula of ckf C, it should be correct as you use ckf A' as basis, which has no aggregation...
quite straight forward, no?
M. -
Using sum on webi report when breaks applied
Hello All,
I have a situation here and would like to get your help. I am using BO R2. I am working on a webi report where I have to apply breaks at different levels (to be precise, I applied at 4 columns on this report). I applied breaks and the results are looking good so far as the main table is sliced to many small tables based on the breaks. But, here comes the issue..
My report contains text as well as numerical columns. I have to do two types of calculations on these numerical columns.
1) When certain condition meets, like here I am working on when the data is from few particular projects, only their numrical columns should sum up and give the results. For example, after applying breaks, say my 200 rows table is sliced to many small tables and I am looking at one particular table that has 10 rows. As per my requirement, I have to pick the values of only 5 rows from this table (as the 5 projects I want are in this table), sum them up and display the results at the end of that table(Only for this table). The problem I am seeing here is, when I add a new row under the table, it is being added to all other sliced tables (which is because of break applied). But, I have to work on data only from one of the tables and that too on limited columns from that table. I do not want to touch other tables. Is this acheivable? Please let me know.
2) This issue is almost similar to the above one. I have three conditions like above to be applied on three different tables which pick only few rows of data and should sum them up. At the end, I need a brand new column all the way at the end of the report that totals up the numbers from only the above conditions' results(results from the 3 condition on 3 different tables).
Not sure if this can be done in webi R2 version. But, if it could be, then please let me know the way to do it. Also, let me know if my question is not clear.
Appreciate your help in advance.
Thanks,
Sandeep.There seem to be several issues, one being more complex meaning "conditions" applied in the Block within breaks may be difficult to build in a Grand Total Row.
You can create an empty row to use with your Block at the bottom (in fact, once that is created you can create as many as you wish).
1) Remove all Breaks
2) Inset a Sum of one of the Metrics in the Block (doesn't have to make sense)
The inserted sum will create a row at the bottom of the Block. Make sure the new row with the sum does not have any Dimensions you want to Break on in it (it should not).
You can now create your formulas or variables for your Grand totals in that row and it will remain affixed to the table at the bottom. Apply your Breaks as you wish.
You can insert rows above or below that Brand Total row any time now. It is outside the breaks but is a part of the table and very flexible as to use. -
How to display Average, not Sum, in the "Overall Result" row of a report?
Every report I look at or execute that has an Overall Result row always shows a total(sum) of all the cells in the column. I recently came across one that shows the average of all the cells in the column and after looking at the query in BEx Query Designer 7.0 and BEx Analyzer 7.0 I cannot seem to find out where to set this. All of the Key Figures are listed as "Nothing Defined" in the Calculations tab which is exactly what they should be, but where can I set that yellow-highlighted Overall Result row to calculate an average, not a sum?
Example can be found in this picture:
http://img87.imageshack.us/img87/6757/pic1yp.jpg
Thanks for the help!My issue was that I was setting my KF's to 'Calculate Result As: Average' within the Query View that I was editing but the change was not showing on my screen when I have that View opened within the Analyzer. Infact, it still is showing totals. But when I execute my Web Template that references this Query View, the graph does display the result row using Averages. Seems to just be a visibility bug, but it is now working.
Thanks for the reminder about that property KP,
Scott
Maybe you are looking for
-
Linked jpg background color?
Is it possible to specify the background color of a linked jpg? I am linking directly to a jpg on my site and I think would like to keep it that way for sake of simplicity. The link looks something like this: http://my-domain.com/jpg-name.jpg I am ge
-
Problem using character encoding....
Hi, I have written an app which constructs an email and sends it to subscribers. The data is read from the database (oracle 9) and its running on UNIX. The subject title (read from the email) however does not appear correctly in the email. I think th
-
Apple TV apps can't connect to the internet
So my Apple TV is connected to the internet (Movies, TV shows, Airplay, etc. all work), but 3rd party apps like netflix, hulu plus, and WSJ can't connect. They get to various stages of logging in, but then go to a black screen saying something like "
-
INVALID SERIAL NUMBER- it used to work
I am a beta tester for CS-6 S- suddenly it asked for a serial numer and now it says it is invalid
-
Hi, I am trying to pull together video footage taken at my brother-in-laws wedding. The tape footage is .avi which is supported by premier pro but the footage taken on a Sony HDD digital camera is saved as .mpg and comes up as an unsupported format,