Select 0 as 'Alias Name' in webi report modify screen

in SQL you can do this:
select sum(chequeamount) as ROInc_amt, 0 as Inc_amt
how can you do this in a webi report though when I try it doesnt parse what is the syntax to use?
BO Edge XI 3.0
App server: MS Win2003 Server Standard SP2
DB server: MS Win2003 Server Standard SP2
DB on DB server: SQL 2005

Try this:
At Universe Level, create an object:
Defination Tab:
    Name: 0 as Inc_amt
    Datatype: Number
    Select= 0
    Tables= point to any table
Properties Tab: Make it a measure
At report level, when you pull this object in Query Panel, code will appear as:
SELECT
  0,   /you can alias it. SQL will validate/
  sum(product_promotion_facts.promotion_cost), 
Calendar_year_lookup.Yr
FROM
  product_promotion_facts,
  Calendar_year_lookup
WHERE
  ( product_promotion_facts.Week_id=Calendar_year_lookup.Week_id  )
GROUP BY
  0,  
Calendar_year_lookup.Yr

Similar Messages

  • Displaying Alias names in a report

    Hi All,
    We are facing an issue with a report script, where we need to display both the member name & alias for only the Customer & Product fields in the report.
    Where as the report is displaying the alias names for other fields as well after some 9k rows. and it only happens for some rows.. not all.
    Any idea why this is happening.. Also we are passing the substitution variable using a .scr script to the report.
    Please find below the report script that we are using...
    {NOINDENTGEN}
    {ROWREPEAT}
    {COMMAS}
    {SUPFEED}
    { COLHEADING }
    <SETUP {TABDELIMIT} { decimal 7 } <Accon <Sym <Quote <End
    // Header record to mention product category
    { STARTHEADING
    TEXT 1 &CatName
    ENDHEADING }
    // include variables in the column
    <Column("Variable")
    // Variables
    "variable1"
    "variable2"
    "variable3"
    "variable4"
    //includes remaining dimensions in Rows
    <ROW ("Planning Group", "Version", "Period", "product", "Customer")
    //Product group
    "prod.group"
    //Select Prior Year
    <Link (<DESCENDANTS ("Version") AND <UDA("Version","Period-UDA"))
    "FULLYEAR"
    {OUTALTNAMES}
    // Includes member description
    <OUTMBRALT
    <LINK( (<DESCENDANTS(&CatCode)) AND (<Gen(Product,11) ) )
    <SORTMBRNAMES
    <LINK ( (<DESCENDANTS("Customer")) AND (<UDA(Customer,"UDA-Name"))) //AND (<GEN(customer,7) OR <GEN(customer,8) OR <GEN(customer,9)))
    !

    Firstly, I'd usually do {OUTMBRALT at the beginning of the script instead of the middle. But of course you want to switch...so
    You could consider first in breaking up the reportscript into parts. Like you said you tried to have some part showing alias and some part don't. Let's assume for example you break this into 3 reportscripts. Now do you see the difference?
    OK and another trick, let's assume it works is that you can use the '!' sign to run multiple reportscripts.
    Script Text 1
    Script Text 2
    Script Text 3
    And then you can run it all like one script.
    Regards,
    Daniel Poon                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • Selecting multiple rows in BW Web reports

    Hello Everyone,
    I am working on the BW web report where we want to give user interaction screen through BSP.
    We achived this for a single row in BW report where when user clicks on some link or button it opens up the BSP screen with the selected row value in BW report.
    Now we want to give multiple rows option where user can select multiple rows in BW report and the corresponding values should be available in BSP by clicking of some button in BW.
    has anyone done this before. thanks in advance.
    regards
    rajeev

    HI
    Int leadSelection = wdcontext.nodemodelnode.getLeadSelection();
      for(int i=0;i<wdcontext.nodeModelNode.size;i++)
        if(wdcontext.nodeModelNode.isMultiselected(i) || leadSelection ==i)
               String name = wdcontext.nodemodelnode.getnameelementatindex(i).getName();
               String  address = wdcontext.nodemodelnode.getaddresselementatindex(i).getAddress();
               String age = wdcontext.nodemodelnode.getAgeelementatindex(i).getAge();
            Create a method for the Table Property onLeadSelect() where you can open a popup window
             Create a value node and with attributes same as Table attributes and then set the values of the table
             to the value node attributes.
    Thanks

  • Getting the MDX query select error when running a webi report on BI query

    Getting the following error when running a webi report on BI query :
    A database error occured. The database error text is: The MDX query SELECT  { [Measures].[D8JBFK099LLUVNLO7JY49FJKU] }  ON COLUMNS , NON EMPTY [ZCOMPCODE].[LEVEL01].MEMBERS ON ROWS FROM [ZTEST_CUB/REP_20100723200521]  failed to execute with the error Unknown error. (WIS 10901).
    I have gone through many threads related to this error. But not able find the steps to follow for resoultion.
    Please help in this regard.
    Thanks,
    Jeethender

    The Fix Pack is also for Client Tools--it is a separate download.  Please see the text below for ADAPT01255422
    ADAPT01255422
    Description:
    Web Intelligence generates an incorrect MDX statement when a characteristic and a prompt are used.
    The following database error happens: "The MDX query ... failed to execute with the error
    Unknown error (WIS 10901)."
    New Behavior:
    This problem is resolved.
    This information is also available in the Fixed Issues document for any Fix Pack greater than 2.2.

  • Need to clear last selected prompt values while refreshing webi report

    While using ALL within cascading prompts its  still showing the last prompt values selected  in infoview and not while editing and trying to run webi reports.
    Is there any way to clear this?
    I have implemented following options to resolve but did not work
    1) Delete the .lov files of universe.                                                                               
    2) Delete the contents in data folder by going into storage directory
    3) Implemented the non_persistent concept in prompts
    Code is as follows for the filter with in universe
    @Select(Customised LOV\State) = @Prompt('Select State','A','Customised LOV\State',mono,free,Not_Persistent,,)
    or
    'ALL' = @Prompt('Select State','A','Customised LOV\State',mono,free,Not_Persistent,,)

    Hi,
    In Web Intelligence, the Query Filter Condition consists of 3 parts:
    - Object on which condition is applied
    - Operator (=,<,>,matches pattern, etc)
    - Operands (constant, LIst of Values, etc)
    You will find a button with a "?" sign which is also called as Prompt properties. When you click on this button, a new window will open and in this you have an option for "Keep last values selected" which is checked by default.
    Uncheck this check box --> Click OK. Run the report and save --> Relaunch InfoView to avoid any caching problems.
    Hope this works for you
    Sheeba

  • How to get Query Names in webi Report ??

    Hello All,
    I'm trying to pull data from different data sources like accdb,Oracle,DB2,MDB,xls files . I pulled the data successfully by merging all queries.But I was stuck with getting the query names in report ...can some one guide me in this ?? I used data provider () but getting 1 query name along with my universe name.
    thanks in advance,
    Lavanya.

    Hi Lavanya,
    Are you interested to know the data sources of the queries or just the query names?
    To know the Query Name, you can use DataProvider( ) function; however, in case you wish to know the data source, you can use Connection( ) function.
    Regards,
    Yuvraj

  • InfoObject Help taking more time in BI web report Input screen

    Hi all,
    i am having a report consist of 3 variables .So, when ever i will execute it, variable screen will pop up.
    Now, There is an object name as "Master Location" , and it is having variable .
    Now, the problem is when i click on the help of Master Location , it will take 15-20 minutes to open the help window.
    "Master Location" is the navigational attribute of the Object "Location".
    Also, If i will not select the help button on the initial screen and directly executes the query and if i will open the Filter value screen for Master Location , it will open the same help window within the 3 sec.
    Please suggest .
    Regards,
    Macwan James.

    Hi,
      This is usually due to some backend select statement failure ie due to inconsistencies in master data. Sometimes if you run RSRV you can fix the issue. At the worst case if you can clean up the master data and load them newly you will get this issue fixed. We have faced this where the selection screen never returned a value and clean up of master data helped us in fixing the issue.
    Hope this helps.
    Thanks,
    Arun

  • Can we generate one report tab for each of the prompt values selected in the bobj 4.0 webi report.

    can we generate one report tab which filters
    with each prompt value selected in bobj 4.0 webi report.

    Hi Shrinidhi ,
    It can be achievable with static tabs created for each LOV .But this is not recommended because , object values can change dynamically .
    It is good idea to use section on prompt object in the report .With sections great feature available is in larger report it’s easy to navigate using map. It displays the section tree.You can select the particular LOV to navigate.

  • How to pass parameter from xcelsius report to WebI report

    Hi,
    I have a pie chart in xcelsius. When user clicks on one of the slices of the chart I want to pass the selected slice value to a WebI report.
    For this I am doing following steps
    1. When user clicks on a chart slice the selected slice value will be written into a cell say B1
    2. Create a URL button which will get triggered on change of the value of cell B1.
    3. Set the URL value in the cell say C2. Here I am using Opendoc function to open Webi report.
    If I enter following value in C2 and run the report it works fine and opens the desired webi report.
    ="http://myServer.xyz.com:9001/businessobjects/enterprise115/desktoplaunch/opendoc/openDocument.jsp?sType=wid&sDocName=MyDoc&sReportName=MyReport&sWindow=Same&sRefresh=Y&lsSCompany=MyCompany&lsSDecision="  &$B$1
    here I am Passing two parameters Company and Decision.
    Now I want to make this report run in all the environment so I changed the actual path of server( myServer.xyz.com:9001) to following
    ="../../opendoc/openDocument.jsp?sType=wid&sDocName=MyDoc&sReportName=MyReport&sWindow=Same&sRefresh=Y&lsSCompany=MyCompany&lsSDecision="  &$B$1
    but if I do this it gives me following error in Webi:
    "Error 404--Not Found
    From RFC 2068 Hypertext Transfer Protocol -- HTTP/1.1:
    10.4.5 404 Not Found
    The server has not found anything matching the Request-URI. No indication is given of whether the condition is temporary or permanent.
    If the server does not wish to make this information available to the client, the status code 403 (Forbidden) can be used instead. The 410 (Gone) status code SHOULD be used if the server knows, through some internally configurable mechanism, that an old resource is permanently unavailable and has no forwarding address."
    Is there any other way to open the WebI report from xcelsius?

    Hi Peter,
    the link provided refers to Xcelsius V4.5.
    In Xcelsius 2008 you have to control Flash Vars in the Data Manager.
    Go to the Data Manager, Add the Flash-Var Connection Type, Select CSV-FlashVar and define a name and a range.
    But i am not sure if Xcelsius Engage can handle FlashVars, because i am only working with Enterprise.
    Please take a look at your manual.
    For sure there are other ways to import data during runtime. Take a Look at the Connections provided by Data Manager. (e.g. QaaWS, SSRS, LiveOffice, Webservices, ...)
    Also take a look at the link below. It might be another nice option for "pseudo" data connectivity
    http://labs.businessobjects.com/xcelsiuspublishing/default.asp
    Best Regards
    Ulrich

  • How to Get List of Webi Reports in CMS which are scheduled?

    Dear Experts,
    I want to generate list of Web Intelligence Report which are scheduled.
    In addition to above, if I get destinations and in case BO Inbox of mail recipients, list of recipients we be an added advantage for me.
    is there any way, I can achieve this using SDK or sum of that matter?
    Any Clue / Suggestions will be a great help for me.
    Thanks you,
    Regards,
    Sachin Dalal

    You can use the following query:
    Select * from ci_infoobjects where si_name='<webi report name>' and si_instance=1
    This will return all scheduled instances in their default location for specified webi report.
    For each object you can retrieve:
    ((IProperties)((IProperties)oInfoObject.getSchedulingInfo().properties().getProperty("SI_DESTINATIONS").getValue()).getProperty("1").getValue()).getProperty("SI_PROGID).getValue().toString : returns managed for instances scheduled to enterprise user's inbox.
    ((IProperties)((IProperties)((IProperties)((IProperties)oInfoObject.getSchedulingInfo().properties().getProperty("SI_DESTINATIONS").getValue()).getProperty("1").getValue()).getProperty("SI_DESTSCHEDULEOPTIONS").getValue()).getProperty("SI_OUTPUT_FILES").getValue()).getProperty("1").getValue() -> returns the integer value of the SI_ID of the user where the report is scheduled in the user's inbox.
    Query for the instance in the query builder and you can see the structure for SI_DESTINATIONS property bag.
    Hope this help.
    Aasavari

  • How to import a Webi report from XI 3.0 to XI 2.0

    Hi All
    I have a requirement to open a webi report (*.wid) from XI 3.0 in XI 2.0, any ideas how i get this file in the XI2.0 CMS?
    thanks

    XI 3.0 is only backward compatible with XI R2 to the extent that XI R2 client tools can connect to an XI 3.0 repository (this is available only to not require multiple versions of client tools during a migration).
    This said, a Webi report modified/migrated to/created in XI 3.0 cannot be imported into XI R2.
    Edited by: Srinivas Ganapathi on Sep 30, 2008 5:46 PM

  • How to Sort prompt date in BO Webi report

    Hi Gurus,
    I am facing a critical issue in selecting date prompt in my webi report.
    Please find the below image as the dates are not getting sorted as per year.
    Please suggest solution for this.
    Regards
    Bikash

    Hi Bikash,
          Create a predefined filter in the Universe. The edit the date object by changing the LOV SQL, ordering it on the date field. Now click on the option 'Export with Universe" in the propereties tab and the export the universe.
      Hope it should wok.
    Thanks and Regards
    Ram
    09038887788.

  • Column name changed in reports

    I have to do some changes on my existing report, its really a complex report with more number of columns and tables. now its really hard to fix the alias name changed by report builder automatically. any one could help me to fix this problem, means what i have alias name in query that i want to use in report.

    Hi,
    Could you pl clarify the Q? Do you mean that Reports Buider has automatically added an alias to a column name? This is not expected.
    Or do you mean that you need to change the alias of the column without disturbing the report definition? You can alter the data model of the report using the feature "Customization at runtime using XML". For more information, refer to Chapter 16 in Publishing Reports Manual for 10g:
    http://www.oracle.com/technology/documentation/reports.html
    Navneet.

  • How to include text lable in Variable selection screen (Web Reporting)

    Hi Experts,
    I have created one query and in Web Report-->variable selection screen I have one Date field for that field I have to display a label stating that user to input date in the format YYYY.MM(like a text label).Actually I have created 10 to 12 report . I need u r suggestion such that a single change will reflect my requirement in all the reports and I have created all the reports for same multiprovider.
    Thanks in Advance
    Yours,
    Bala

    Bala,
    Prompts can originate from one of two places:  either via Designer and using the @prompt functionality or while creating the report building a prompt in the Query Filters panel.  If the prompt was built using the @prompt method, and all 10-12 reports are using that particular @prompt, then one change via Designer will cause all reports to reflect the new verbiage.  If you built the 10-12 reports using the prompt in the second scenario, then each individual report needs to be opened, modified and then saved.  If you must use the latter method, then you can open the first report, modify the prompt verbiage, then highlight the new verbiage with your mouse and hit Control-C (which copies that text to the Clipboard of your Windows system).  Then go to the second report, locate the verbiage that needs to be changed, delete it, then Control-V (which pastes), and voila, some keyboarding strokes are saved....
    Thanks,
    John

  • Retrieving WEBI Report Column Name

    Hi,
    Can anyone please help me to retrieve the column names from an WEBI report body?
    ReportDictionary reportDictionary = boDocumentInstance.getDictionary();
    for(int x=0;x<reportDictionary.getChildCount();x++){
                                                         System.out.println("Report Fields ["x"] :"+reportDictionary.getChildAt(x));
    From the above code snippet I'm getting the column names equivalent to the original object one. But if that is getting changed in the report body then I'm unable to find the changed one.
    Also please help me to retrieve the Formula definition of an object. like
    For column name Country , Formula Definition will be =Name of([Country]).
    Thanks,
    Nirabhra

    Hi Subham,
    If you are looking for the size of the WID file, you can get this through the InfoObject.
    Please note that this WID file only changes if the WebI document was actually saved.
    Below is a sample code snippet that will retrieve the file size from an InfoObject:
    IInfoStore boInfoStore = (IInfoStore) boEnterpriseSession.getService("InfoStore");
    String query = "SELECT SI_FILES FROM CI_INFOOBJECTS WHERE SI_INSTANCE='false' AND SI_NAME='" + webiDoc + "'";
    IInfoObjects boInfoObjects = boInfoStore.query(query);
    if (boInfoObjects.size() > 0) {
         IInfoObject boInfoObject = (IInfoObject) boInfoObjects.get(0);
         IFiles boFiles = boInfoObject.getFiles();
         IFile boFile = null;
         for (int i=0; i<boFiles.size(); i++) {
             boFile = (IFile) boFiles.get(i);
             out.print(boFile.getName() + ": " + boFile.getSize() + "<BR>");
    } else {
          out.print("No WebI document found!");
    Hope this helps.
    Regards,
    Dan

Maybe you are looking for