Query Builder - Report variables

Hi All,
I have to document a report with all the variable names and the variable formulae.
Is it possible to run a query in the query builder which can fetch these details from the report.
I would like to know where i can find a guide for query builder.
TIA
Thank you
Vaibhav

Hi eknv
Its not possible ,what ever you use in query level(higher level) can be used in report level(lower level) But converse is not possible  And there are no such guides to ur requirement.
Go for universe designer and create a objects and use formulae and you can use it in query builder .
Hope this helps
Sunil

Similar Messages

  • Report query with bind variable

    Trying to create a report query for xsl-fo print. For output format I pick "derive from item" then pick the item name from the list, on the next screen, I paste the query with the bind variable. on the next step test query, I always get "data not found" regardless what value I type in. This is the same query that I ran under sql commands without any issues.
    Does anyone run into the same issue as I have when attempted to create a query with bind var ? There is no problem creating a query without bind varibles. . thanks.
    Munshar

    Hi, please did you get any solution to this issue? I am having similar challenge right now.
    select     EMP.DEPTNO as DEPTNO,
         DEPT.DNAME as DNAME,
         EMP.EMPNO as EMPNO,
         EMP.ENAME as ENAME,
         EMP.JOB as JOB,
         EMP.MGR as MGR,
         EMP.HIREDATE as HIREDATE,
         EMP.SAL as SAL
    from     SCOTT.DEPT DEPT,
         SCOTT.EMP EMP
    where EMP.DEPTNO=DEPT.DEPTNO
    and      DEPT.DNAME =upper(:dname)
    This run perfectly in sql developer, toad, and even inside publisher if I login directly to publisher to create report.
    Generating this same query in shared component query builder and testing it returns no data found. If I remove the last line, it works. but with the last line, it return no data found. It seems no one has been able to provide solution to this issue

  • Using presentation variables selected in dashboard prompt in query builder

    In dashboard prompt I have made four dropdowns(have four presentation variables) and based on these values selected,can the Query Builder generate dynamic reports based on the presentation variables selected?
    I will provide the link(i.e Link of BI publisher where I stored the report) displayed to the user based on Four presentation variables.
    If we click on that link can we use the presentation variables in where clause of Query Builder in BI Publisher?
    Please help me out
    Thanks in Advance

    - OK. In the second prompt, instead of setting Default to SQL Results, set it to Specific Value.
    - Then insert '{pres_var}' in the window. I got it to work this way.
    - It supplied the PV as the default in the second prompt after hitting "Go" on the first prompt.
    Hi, thanks for your suggestion but I don't need to have the value of the presentation variable itself as the prompt default. The variable is a filter for a specific SQL clause and the default is the result of this SQL.
    Cheers
    DrPlexi

  • How to add a new field in Query Builder or Report

    Hi,
    I am writing a report using Oracle 6i query builder and report.
    example:
    QTY_1 QTY_2 QTY_3
    QTY_1 and QTY_2 are table fields and QTY_3 Is not. I need to show the value of (QTY_2-QTY_1) in QTY_3.
    I need to create a field QTY_3 which is not in the database table. How do I do that?
    Jun

    Hi,
    Try using formula to return the qty_1 - qty2.
    or
    select qty_1, qty_2, (qty_1 - qty_2) qty_3
    from table;
    regards,
    CB

  • Add subquery to main query in Report Builder 6i

    Usually, when you add a subquery to an existing query in a report, you'll see the query in data model marked by a paper clip icon with a forward slash across it (means "Subquery Inside"). All current field names in current query (except CF and CS) will have a '1' appended after it (CF and CS fields are not affected), but in your sql, the column names stay the same. So there is an out-of-sync situation with the column names.
    To fix this:
    1) before change anything, back up old report somewhere else
    2) copy the original query somewhere else as backup
    3) open the query in Report Builder
    4) wipe out the query, replace it by "select 1 from dual" to reset it and press ok.
    5) replace "select 1 from dual" with your new query with an embedded subquery.
    6) All field names will be without the '1' appendix.
    7) check all the CS fields, the source should be reset to null. Redefine the CS fields using backed up report as reference. CF fields are not affected.
    8) move the fields and restore the break orders according to backed up report.
    9) Recompile whole report.
    10) save report again and you're done.
    Maybe you don't need this in the latest version of Report Builder, but in 6i, this is what I do.

    If you use aliases for your item names in your original query you avoid this problem....
    eg
    Select field1 item1, field2 item2 from table.....
    item 1 and item2 will stay in your layout between query changes.
    D

  • BW Query variable default value put in Crystal report variable question

    Why BW Query variable default value put in Crystal report variable for BO InfoView to open crystal report.
    I using Analyzer to open bw query,variables had default value ,but crystal report can't had variable default value ,and can't search variable  value.
    pho:
    [http://file.itpub.net/f/e38876ad4f6efb7e73980488e7d71f8d/4ae940e9/day_091029/20091029_2b04da1232144feba180OrB23SNvXtoT.gif/p/1.gif]
    [http://file.itpub.net/f/d93ddfe61e0eaf80429726c61f1a02ff/4ae940e9/day_091029/20091029_3211ffe04bf0302fbab5FRKnbwmH80p7.gif/p/BW_QUERY_Crystal.gif]
    Edited by: flying on Oct 29, 2009 8:20 AM

    I Know what to do .
    but Crystal report date variable value are Garbage characters "###".
    PHO:
    [http://file.itpub.net/f/39a8510104476707ae21c945db93ecba/4ae97949/day_091029/20091029_32dcbb7e7d99141483aesJ9KBJHXN0Kj.gif/p/2.gif]

  • How to change the font in query builder window in Reports 6i?

    Hi
    I am facing the old problem again and again, which is I can not find any way to change the font in query builder window in Reports 6i. The current font is so bad for alignment and ordering each part of SELECT statement. Is there any way to change this to COURIER NEW for example?

    No, but I suggest using a different editor which does allow a different text option and just pasting it in.

  • Function in report query builder

    Hi,
    It is possible to call a function in the select statement of a report query builder as followed :
    select my_func()
    from my_table
    The function is defined as :
    create or replace my_func() return vachar2 is
    v_temp vachar2(100);
    begin
    v_temp := 'column_1, column_2, column_3';
    return(v_temp);
    end;
    Therefore, the query should be interpreted as:
    select column_1, column_2, column_3
    from my_table
    and the fields "column_1", "column_2" and "column_3" with the same alias name would be created for the report.
    Thank you,
    DS

    Ok. Here is the way!
    Create user parameter p_query. Datatype Character. Width 10000. Set initial value as
    select RPAD('n',10) c1, RPAD('n',10) c2, RPAD('n',10) c3 from dual
    ** Suppose type of column 1, 2 and 3 is character and maximum length can be 10. So using this in above select statement.
    Get value in After Parameter Form trigger
    begin
    :p_query := yourfuntion;
    return(true);
    end;
    data model will have only this:
    &p_query
    Now you will see three columns in data model
    c1
    c2
    c3
    NOW error ORA-24333 can appear, when function/procedure doesn't return back anything for data model, I mean lexical parameter p_query is empty.
    ** You can replace whole select statement with lexical parameter.

  • Results in Query Builder Differ From Report Results

    I've got a report I built in SSRS using an SSAS dataset. The problem is that the results differ between the query builder result set and the actual report. For some reason, when running the actual report, certain rows are being filtered out, but yet those
    same rows appear in the result set when validating the query in the query builder.
    Here's the result set as it appears in query builder:
    ...and here are the results of the actual report:
    As you can see, 3M and Angie's popcorn are not returned in the report. I have no filters defined on the report at all.
    This appears to be happening with other result sets for the same report.
    No idea why the results are accurate in query builder and then off in the actual report.
    Any help would be appreciated!
    A. M. Robinson

    Hi A. M. Robinson,
    The issue may be caused by the data cache. When we preview a report, the report processor runs all the queries for datasets in the report using the current parameter defaults, and saves the results as a local data cache (.rdl.data) file. We can continue
    to design our report without incurring the overhead of retrieving this data again if we make no changes to either the report dataset queries or the report parameters. Please to delete the cache (.rdl.data) file try to solve the issue.
    Reference: http://technet.microsoft.com/en-us/library/ms157366.aspx
    Alternative, you can create a similar report to check if the issue is persist.
    If the issue is persist, could you please post more detail information about your report design?  It is benefit for us to do further analysis.
    Regards,
    Alisa Tang
    If you have any feedback on our support, please click
    here.
    Alisa Tang
    TechNet Community Support

  • Query builder in Reports

    In the reports when I use query builder available in the reports for the same user/owner it works fine. If I will select/use any table from other schema it creates query for it but when I again try to go to query builder it shows me blank. This behaviour is same in reports 3 and 6i. Is this a bug or there is some configuration issue?
    e.g.
    Currently I am working in the scott login and opened the query builder to build the query. I have select table EMP and the its fields I have to select. Now the DEPT table is in another schema and scott has select privs of this table. I have select the DEPT table from that schema and pressed OK and the query is now in the query window but now if I want to modify the query and want to open query builder again and it is not possible at my machine. So I have to modify the query in the query window manually.
    I hope the above detail will help u in understanding the exact situation so if still not cleared then let me know.

    Hi Sikandar,
    Make sure you are on the latest patch (patch 10), and if it still reproduces you should contact Oracle Support.
    regards,
    Stewart

  • Query for recurring reports using Query Builder in Business objects

    1. How to count webi Recurring reports using query builder in business objects? (Need Query for this)
    2. How to count Crystal Recurring reports using query builder in business objects? (Need Query for this)
    I am able to get summerized recurring reports using Query Builder.
    For Example we have 343 reports which are under recurring (This includes both Webi Reports and Crystal Reports).
    we need to get individually how many webi reports are under Recurring and Crystal reports are under Recurring.

    1. How to count webi Recurring reports using query builder in business objects? (Need Query for this)
    2. How to count Crystal Recurring reports using query builder in business objects? (Need Query for this)
    I am able to get summerized recurring reports using Query Builder.
    For Example we have 343 reports which are under recurring (This includes both Webi Reports and Crystal Reports).
    we need to get individually how many webi reports are under Recurring and Crystal reports are under Recurring.

  • How to identify recurring instance of a report using Query Builder

    Hi,
    I am having a report scheduled for four different set of  parameters.  I want to identify the instances pertaining to each schedule.  I tried the last successful instance but it gives only the last instance detail.
    Kindly help me
    Thanks and Regards,
    Subbu S

    Hi,
    Use the following query in the query builder
    SELECT
    SI_NAME, SI_SCHEDULEINFO.SI_STARTTIME
    FROM
    CI_INFOOBJECTS
    WHERE
    SI_RECURRING = 1
    SI_NAME: The recurring report name.
    SI_SCHEDULEINFO.SI_STARTTIME:  The date and time the report is scheduled to run next.
    The query above will return all the recurring reports .
    Regards,
    Prithvi
    Edited by: Raj_10 on Sep 14, 2011 1:54 PM

  • Can Execute Report But Fails in Query Builder

    I'm running into an odd issue...
    I've inherited a report that was built using Visual Studio. It's going against an Analysis Services cube and the query is in MDX.
    For some reason, when I view the query in Query Builder and attempt to execute the query, it throws an error. I then cancel out of Query Builder and cancel any changes. Now if I actually run the report, it runs just fine. Users have verified that the results
    are correct.
    I've never seen this before! I've attached the query and the error message:
    WITH
    SET [Selected Discipline] AS STRTOSET(@Disciplines, CONSTRAINED)
    SET [Selected Department] AS STRTOSET(@Departments, CONSTRAINED)
    SET [Selected Departments] AS IIF(@Disciplines = @Departments, 
      FILTER(
        DESCENDANTS([Selected Discipline], [Employee].[DISC - DEPT - EMP].[Department], AFTER), 
        NOT INSTR([Employee].[DISC - DEPT - EMP].CurrentMember.UNIQUE_NAME, "Freelance")),
      DESCENDANTS([Selected Department], [Employee].[DISC - DEPT - EMP].[Department], AFTER))
    SET [TTM] AS { LastPeriods(12, StrToMember(@SelectedMonth, CONSTRAINED)) }
    SELECT 
      [Measures].[Employee Hours], 
      [Measures].[Employee Hours %] 
    } ON COLUMNS, 
    NON EMPTY CROSSJOIN(
    [Selected Departments],
    [Employee].[Employee Bill Rate].[Employee Bill Rate].ALLMEMBERS,
    [Employee].[Employee Level].[Employee Level].ALLMEMBERS,
    [TTM]) 
    DIMENSION PROPERTIES MEMBER_CAPTION, MEMBER_UNIQUE_NAME ON ROWS 
    FROM [OLSON BI]
    WHERE (
    [Employee Hours Time Category].[Time Category].&[Client Facing],
    [Employee Hours Time Category].[Utilization Category].&[PRODUCTION])
    CELL PROPERTIES VALUE, BACK_COLOR, FORE_COLOR, FORMATTED_VALUE, FORMAT_STRING, FONT_NAME, FONT_SIZE, FONT_FLAGS
    The error is:
    A. M. Robinson

    Hello,
    Glad to heard that the issue had been solved and thanks for your sharing. It will be very beneficial for other community members who have similar questions.
    Regards,
    Katherine Xiong
    Katherine Xiong
    TechNet Community Support

  • Clarifications about Query Builder and Additional Default Layout in Reports 6i

    1) Is Query Builder re-entrant in Reports 6i? If yes, what is the method. As when I tried to re-eter, it gave me message '..... Syntax Error'.
    2) IN 'ADDITIONAL Default Layout', Reports 6i does not allow group field to be
    included in 'the fields to be printed' list. It allows but in next tab it omits that group field.
    As a result no repeating frame for the Group is generated in the 'ADDITIONAL Default Layout'.
    What is wrong?
    Pl. guide.
    Tariq

    2) IN 'ADDITIONAL Default Layout', Reports 6i does not allow group
    field to be included in 'the fields to be printed' list. It allows
    but in next tab it omits that group field.
    As a result no repeating frame for the Group is generated in >the 'ADDITIONAL Default Layout'. Not sure I fully understand the question but you seem to be saying that if you select a field in the ADL tool, it doesn't show up in the layout. This can only happen if you select a field in the "Fields" tab from a group you haven't selected in the "Groups" tab.
    Ideally Reports shouldn't show these fields since you haven't selected the groups. Unfortunately it does and you need to ensure all the appropriate groups have been selected in the "Groups" tab.
    At least it will tell you if you have selected a group but haven't selected any fields for the group or if you haven't selected enough groups for the type of layout you're trying to create.

  • Query Builder - Find WEBI reports that are using a table

    I am trying to find list of WEBI reports using a specific table. This specific table is used in only 1 universe.
    Though I could successfully find list of reports that use this universe, I am unable to find drill down further and find the subset of reports using this table/object.
    SELECT si_name, SI_KIND, si_id, SI_PARENTID,SI_AUTHOR,SI_OWNER FROM CI_INFOOBJECTS, CI_APPOBJECTS
    WHERE PARENTS("SI_NAME='WEBI-UNIVERSE'","SI_NAME ='MyUniverse'")
    Is it possible to find the information I am looking for using query builder.
    Also, for a given WEBI report I am trying to find the list of report names and the folder they reside in:
    Select SI_NAME, SI_ID, SI_PATH, SI_KIND, SI_OWNER From CI_INFOOBJECTS, CI_APPOBJECTS WHERE
    PARENTS("SI_NAME='Folder Hierarchy'",
    "PARENTS('SI_NAME=''WEBI-UNIVERSE'' ', 'SI_NAME=''MyUniverse'' ')" )
    The above query just gives me the folder names. I am looking to find the report names as well the the folder (and preferably the path) in a single query. Is that possible.

    Sri,
    With respect to your 1st requirement:
    In BusinessObjects 6.5 it was possible. However, post BOXIR2 this information could not be retrieved from CMS via query builder.  I agree with Jorge Sosua's comment above.
    With respect to your 2nd requirement:
    The field 'SI_PATH' will retrieve Filestore path(physical path). If you were referring logical path(Public folder path or psuedo-reference path) will you please refer my respone to Kelly Stone at BusinessObjects Query builder queries - Part II , If this may assist you.
    Regards,
    Sandeep

Maybe you are looking for

  • Windows Vista User upgraded to iTunes 7.7 and now MPEG-4 videos won't play

    I'm a windows vista user, and I just updated to iTunes 7.7 with Quicktime. Prior to the update all my videos & related codecs files worked just fine(e.g., MPEG-4 and H.264 codecs). However, since the Quicktime & iTunes 7.7 update, now only videos cod

  • Can I keep working on my mac while Time Machine does its first back up?

    Just wanting to double check before I do anything I am sorry about. I am getting ready to do my first Time Machine back-up. I have my documents all backed up with an on line service, but feel like I need to back up the whole system (better safe than

  • 2LIS_02_SCL - How to Enhace it?

    Hi All, I have a request to add 2 field in 2lis_02_scl: 1) Invoice Price, i checked in the extract estructured and i can add this field from Tx (LBWE), so its ok. 2) Invoice Number, i couldnt find in the extract estructured, so i have to enhace the e

  • How to relove this problem in forms 10g(10.1.2.0.2)

    m trying to use run_report_object so many time but error is coming out like "Cannot find report :invalid ID" please help me what should i do Rgds Manoj

  • How to identify the Process chain for infopackage in 3.5?

    Hi all, I am currently working on bw 3.5? I can see couple of info packages created in the production scheduled through process chain. How to identify which process chain is scheduling those infopackages? for instance : customer master is loaded thro