Formula in WebI report
Hello Experts,
I have report in in the following format
Number Code Amount
parent1 xyz 100
baby1 abc 50
baby2 abc 50 Group1
baby3 abc 50
parent2 xyz 100
baby1 abc 55 Group2
baby2 abc 55
Parent3 xyz 100 Group3 (If there is no baby in the Group)
I want to display coupon and Amount for the first line item in Group1 and for the second line item in group2 and if there are no baby's in the Group i want to display amount and Code for the Parent.
Thanks,
Shiva Kumar G.C
Hi,
Thanks for your reply.
I want to display report in the below format.
Number Code Amount
parent1 xyz
baby1 abc 50
baby2 abc (Group1)
baby3 abc
parent2 xyz
baby1 abc 55 (Group2)
baby2 abc
Parent3 xyz 100 Group3 (If there is no baby in the Group)
1.If there is an Parent1 with 3 baby's i want to display amount only for the first baby.
2.1.If there is an Parent1 with 2 baby's i want to display amount only for the first baby.
3.If there no baby's for the Parent i want to display amount only for the parent.
Regards,
Shiva Kumar G.C
Similar Messages
-
How to use formula in WebI report
hi guys
i have done a webI report in which i have company code yearly sales and i want to see it quaterly.Please guide how to do this with formula.
ThanksA lot of this depends on how your universe is set up. The easiest way would be to have the universe updated to include "Automatic Date Hierarchy" for the sales date. This would give you Year, Quarter, and Month breakdowns of the dates that you could then use to split up the data for your report.
To do this in WebI, you would create a formula using the Quarter() function to get the quarter of the sales date field.
-Dell -
Hi,
Given below should be the webi output:
Emp No, Emp Location, Emp Name, Seniority Date,Curr_Year_Rating,Prev_Year_Annual_Sal_at_April_1st,current Annual_Sal_at_Jan_01
I am using the formulas for these columns: Curr_Year_Rating,Prev_Year_Annual_Sal_at_April_1st,curr_ Annual_Sal_at_Jan_01
Curr_Year_Rating
([Rating] Where(Valid From Date - PK <= January 1st, 2014 AND Valid To Date >= January 1st 2014))
(ii) Prev_Year_Annual_Sal_at_April_1st
([EMPL ADMIN - Salary Yr] Where(Valid From Date - PK <= April 1st, 2013
AND Valid To Date >= April 1st 2013))
(iii)curr_Annual_Sal_at_Jan_01:
([EMPL ADMIN - Salary Yr] Where(Valid From Date - PK <= January 1st, 2014
AND Valid To Date >= January 1st 2014))
Is it ok to use current and previous year formulas for an employee record?
Can I use if then formula instead of Where clause formulas in the above 3 formulas?Have you validated all the formulas. As I could see in formulas you have and condition in where clause which is syntax error.Where clause at report level only take one condition. Try to use If condition for "Valid From Date - PK <= January 1st, 2014 AND Valid To Date >= January 1st 2014" with 1 and 0 flag.And use new variable and put value equal to 1 in where clause.
-
How to Use Backslah() in webi report formula
Hi
My client is using web intelligence XI 3.1 SP2. I have a formula in a report as:
=Sum(If([Level 08 Node] InList ("Correlation & Index";"EM\FX Option JV";"Short Dated Exotic Options";"Long Dated Options";"Short Dated Vanilla Options";"Options");[SR MTD];0))
Everyime I save the the formula I am loosing the "\" in the "EM\FX Option JV", so the formula becomes:
=Sum(If([Level 08 Node] InList ("Correlation & Index";"EMFX Option JV";"Short Dated Exotic Options";"Long Dated Options";"Short Dated Vanilla Options";"Options");[SR MTD];0))
how can I use the backslash in the above formula , I appreciate that it is a special character.
Many ThanksThanks Amit,
that solved the problem. I also did the following that worked but for simplicity and ease of reading I will use the double backslah approach.
=Sum(If([Level 08 Node] InList ("Correlation & Index";"Short Dated Exotic Options";"Long Dated Options";"Short Dated Vanilla Options";"Options") Or ([Level 08 Node]="EM"Char(92)"FX Options JV") ;[CY SR YTD];0))
thanks
Edited by: Bal on Jan 19, 2012 2:31 PM -
How to extract list of object and formula used in variables as Excel for a particular Webi Report
Hi,
Is it possible to get the list of variables and objects, and variable formula used in a webi report extracted in excel or PDF in BO XI R3.1?
Thanks In Advance,
ShenbuHi Shenbaga,
You can try to get this information using the report engine sdks of BusinessObjects which is specific to webi reports.
Please refer to the link to download the dev guide and api referrence for XI 3.1
SAP BusinessObjects BI 3.x and Lower - Developer SDK Library
Refer to the Report Engine Java SDK dev guide and api referrence.
Go through the dev guide in detail and you would be able to use the report engine sdks as per your needs.
Additional Note: There have been changes in report engine sdks from XI 3.1 to BI 4.0 and you would not be able to get all the features available in XI 3.1 report engine sdks in BI 4.0.
Hope this helps.
Regards,
Chandrahas -
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 -
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 -
Jump in a WebI report from report A to report B (BI4)
Hi all,
Within my WebI document I want to jump from the first report to a specific report in de total WebI report. Is this possible with the OpenDocument function?
An example:
Column A | Column B
Value 1 | KeyFigure 1
Value 2 | KeyFigure 1
My customer wants to click on "Value 1" and then jump to a report (same WebI document) with details of Value 1.
When clicking on "Value 2", he needs to jump to a report with details of Value 2.
Hope this scenario is possible in BI4 WebI or do I need to wait on the RRI functionality?
Can anyone help me?
Regards,
PieterThe problem with the value "#UNAVAILABLE" is solved. In this case I created a variable with the in-operator:
=[Spend 2011] In ([Segment type])
Now I want to jump to another report in my WebI document. For this scenario I created a new variable (with name test) with the formula:
=If [Segment type] = "FACILITIES" Then "Facilities_detail"
ElseIf [Segment type] = "HR" Then "HR_detail"
ElseIf [Segment type] = "ICT" Then "ICT_detail"
ElseIf [Segment type] = "MARCOM" Then "Marcom_detail"
ElseIf [Segment type] = "NOG TE SEGM." Then "Nog_te_segm_detail"
The dynamic Element sReportname I defined as: ="[test]".
After these steps, the hyperlink will not work with my dynamic Segment Type. Did anyone have this experience and how can i solve this?
Regards,
Pieter -
How to create @prompt filter at universe level for my Webi reports
Dear all,
I am using BO XI 3.1 SP3 with SAP BW 7.0.
I have created an open[big] query based on a multiprovider for my OLAP universe.
OBJECTIVE: to create LOV prompts for Calender year, for my webi reports, which takes 2010 as input then offsets the input year and then shows Gross sales for the prompt year [2010], 2009 & 2008.
ISSUE: if 2010 is selected in webi prompt filter, then it doesn't display any data for any other year, lets say gross sales for 2009.
ALTERNATIVE: i tried to create a prompt filter in the universe with this syntax,
<FILTER KEY="@Select(Calendar year\Calendar year).[TECH_NAME]"><CONDITION OPERATORCONDITION="InList"><CONSTANT TECH_NAME="@Prompt('Enter year','N',,Mono,Free,Not_Persistent)"/></CONDITION></FILTER>
it worked fine. but i also want to create a measure or dimension which subtracts 1 from the above filter and return a result with a previous year.
e.g
PROMPT: 2010
PROMPT-1: 2009
Universe structure
[TIME] class
[Calender year] class
[Calender year] dimension ( type:string)
Please guide me with correct procedure and syntax.masood44 ,
I think you should just prompt for year and capture and use the selection at the webi report level.
say you have calendar year(convert it into numeric) prompt at webi level. say user selects 2010 capture it in a variable var1:userresponse('enter year'). then create a variABLE (var2) with formula :
if(isPromptAnswered('enter year')='yes';([year] where year inlist(var1;var1-1;var1-2);null)
build your report with var2 and gross income
Thanks,
Karthik
Edited by: kbharadwaj79 on Jun 2, 2011 5:34 PM -
Webi Reports Hyperlinks on top of OLAP Universe
Hi Webi Gurus,
my BoBJ version 3.1 sp3
BW-OLAP universe.
I checked below Link for the solution, but couldn't
get answer, as these are based on relational universes.
/people/erika.atencio2/blog/2011/04/14/creating-hyperlinks-between-webi-reports-in-infoview
I have a OLAP universe. On top of it, there are two reports
One parent report and one child report.
Question: I have a column called Auction Id on parent report.
Now, when I click on any of the Auction Id values, child report
should only bring data for that Auction Id alone and not other Auction Ids.
In the child report, I have Auction Id as query filter.
Now while in Webi's Interactive Mode, I chose the option
Select Column--> Create Hyperlink --> Link to a document -->
Document prompts: Prompt User in runtime.
This option works fine.
However, when I change the Document Prompt to:
Select Object (or) Build Formula
report throws MDX error, during run-time,
Please suggest.
MDX error:
========================================================================
The query failed to execute with the error Value for the Characteristic.....WIS 10901
==================================================================================
Regards,
AKStill getting error...I tried this
>> 1. In the detail webi report, create a query filter for AuctionID and use Equal operator. Give the prompt text as ActionID.
AK: Done
>> 3. In the column properties, in the display section select display cell content as HTML.
AK: Done
When I provide the URL and Parse it throws following error.
"Invalid identifier a at position 15. (WIS 10022) "
I gave following URL and parsed it.
="<a href="http://sapbojdev:8080/OpenDocument/opendoc/openDocument.jsp?
iDocID=18774&lsSAuction ID="URLEncode([Auction ID])"&sRefresh=Y
Q: Is there any problem with syntax?
Q: Secondly, for OLAP universe based webi report , can't we use the hyperlink option:
Link to Document
Thanks,
AK -
#SYNTAX error while using Merge Dimension in webi report
Hi All,
# Syntax error when using merge dimension in webi report
screen shot has been attached.
iam using BO 4.0 SP6
checked the datatypes in BW
they are same in BW in both the queries
i followed the given links but no result.
https://websmp230.sap-ag.de/sap%28bD1lbiZjPTAwMQ==%29/bc/bsp/sno/ui_entry/entry.htm?param=69765F6D6F64653D3030312669765F7361706E6F7465735F6E756D6265723D3138343530303526
https://websmp230.sap-ag.de/sap%28bD1lbiZjPTAwMQ==%29/bc/bsp/sno/ui_entry/entry.htm?param=69765F6D6F64653D3030312669765F7361706E6F7465735F6E756D6265723D3136323339323126
https://websmp230.sap-ag.de/sap%28bD1lbiZjPTAwMQ==%29/bc/bsp/sno/ui_entry/entry.htm?param=69765F6D6F64653D3030312669765F7361706E6F7465735F6E756D6265723D3137353438313026
http://scn.sap.com/thread/3592588#15241008
Need Help!!!!!
Regards
SushmaHi Mark,
Thanks for the reply,
I did not use any formula,
I used merge dimension
Anyways i tried in other system,it s working fine.
Regards
sushma -
Include a Glossary Page in a Webi report for report documentation
Hi experts,
My client would like to include a Glossary Page at the start/end of each Webi report. This page should include documentation/explanation of each dimension detail, measure, formula, etc shown on the report.
I cannot find any designated location in the Webi report for documentation purpose. Assuming I have created this documentation in a word/html document, what is the easiest way of including this info in the Webi report?
So far I can think of 2 options:
1) Include a new report with one or more blank cells, and paste the text from the word/html document into the blank cell.
Pros: Can be printed out together with the report contents (print both reports together).
Cons: Considerable effort with creating this page
2) Include a blank cell in the original/separate report, and insert a hyperlink for this word/html document into the blank cell.
Pros: Less effort involved
Cons: Cannot be printed out together with the report contents
Besides these 2 options, are there better ways of creating the Glossary page?
Thanks in advance for any suggestion.
LindaWe do something similiar in that users cannot create a new document. Users can only copy and edit the existing template for new reports. The template has standard headers, footers and confidentiality statements that are required on all reports.
Here are some of the standard formulas we include in the header/documentation report tab:
="Report Title: "+DocumentName()
="Run User: "+CurrentUser()
="Run Date: "+LastExecutionDate()
=If (DocumentPartiallyRefreshed();"Your document contains partial data only")
=DocumentName()
=DataProviderSQL([Query 1])
These formulas automatically fill in some of the basic data using option 1 from your list. -
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 -
Current User & Key Date in Web Reports
Hi,
I want to default the current user name & current date (could be different from the varaible key date) in the header or footer of the web report. I tried text elements in the web template where we can default only the variable values entered by the user, or general text which include above two texts along with many other details which are not required by me. I have also tried text variable in the query properties in vein. Could someone give some tips, please.
I have a formula variable "Current Calender Day". How I can create a text variable from this ?
Thanks & regards,
Sheeja.
PS: I'm a functional guy, so kindly explain in detail if any EXit coding is involved.Hi Sheeja,
If ur looking this option for a web template then please follow below steps for current user name & current date :
1. Create a Text web item present under the Miscelaneous Tab of web items.
2. In its properties tab Tick 'Display Text only'.
3. Select General Text elements For text binding option (Present in Data binding)
In general text Elements option:
Make a binding with a data provider.
For user name select - Current user
For Current date - Select Last Refresh options.
Try this, hope this will help to u.
Thanks ! -
Images as Hyperlinks in webi reports
Hi,
I’m trying to link two webi reports (summary through Details) through Open doc syntax using Images in a cell.
We have a requirement to link two webi reports (summary through Detail) using buttons (like Back & email) as images which will be embedded in to the cell and made hyperlink.
I found many articles on "Hyper linking on the images" between 2 webi reports (summary to detail) using open doc syntax which did not help much. So I am starting a new thread.
I’ve 2 scenarios happening, after the images being placed on the server - (…/usr/bobj/<installation Directory>/enterprise/images) –
1st Scenario – Right click on the cell contents, make it read as “hyperlink” and set appearance to “boimg://image-name.png”
Result: Image appears and there is no link. Cursor does not changes or no place to click.
2nd Scenario – Read the image directly into Ahref tag as - <img src=\” boimg://image-name.png\”>
Result: The link works perfectly fine. But, in the image place holder, a big “RED X” appears.
The steps -
- Placed a blank cell
- Right click -> Appearance -> Image from Address: boimg://image-name.png
- Read contents as "Hyperlink" (at this point, tested the cell, image appears fine, but no link appears!)
- Right Click on the same cell -> Document Link -> pass the values of the related objects -> Parse
- Also Include the <img src=\” boimg://image-name.png\”> in the AHref tag generated by the system after open doc call
- In the cell, both the image and the big RED X appears - image does not have a link and the big red X has link but no image. So basically nothing works!
We are on BO 4.1 SP1.
Experts please help!Hi Fahid,
You can try the below steps which are pretty simple. It worked fine for me. For this I used an image object placed in ROOT directory of a web application server.
1.
Add a blank cell
2.
Right-click on the blank cell and select “Format cell”
3.
Under “General” specify Read content as “Hyperlink”
4.
Apply >> OK
5.
Right click on the cell >> "Edit Formula" >> Use the following formula
="<html><a href='http://localhost:8080' target='_blank'><img src = 'http://localhost:8080/sample.png' /></a></html>"
Hope this helps.
Regards,
Niraj
Maybe you are looking for
-
Closing the Report Viewer causes the application to hang
Hi, Since a few days we are experiencing some problems with the Crystal Reports viewer. When closing a report viewer in our application, the application hangs for a few minutes. The strange thing is, that it only seems to happen on Windows 7 and Wind
-
My external hard drive is not recognized by my computer.
My external hard drive is not recognized by my computer. I used it earlier and it was fine however my computer froze and I unplugged my hard drive without properly ejecting it. Now when I plug it in nothing pops up. I've tried on three different comp
-
Browser prob or applet prob???
hi I have developed a Swing applet (called from a jsp page). The problem is that it is displaying fine in my local browser, but if viewed the same from another pc over the network, it is not visible, The pc is running ie6. Do i have to install someth
-
Can't copy and paste using mouse
Hello all. It seems that after the installation of patch # 19 for Unix AIX the feature of copy and paste by using the middle button of the mouse doesn't work anymore. Does anyone confirm this behavior? If so, is there any work around to solve this is
-
How to create a custom dialogbox from menuitem
Hi everyone, I'm new to java swings and i'm creating a Menu application with a menu. I'm trying to open a dialog box with the menuitem. I tried JOptionPane and i got it and now i'm trying to create a customized dialog with JPanel. I tried a lot ...bu