Query Variable - Bottom N Reports

Hello Experts,
I'm creating a Statistics query and would like to execute the query for 'Bottom N Reports' which would be an input variable. Could you please let me know how this could be accomplished. I know I can create a Condition for 'Total time' key figure (As 'Bottom N' and have a default value set against it). But, I would like to do it at runtime instead of having a default value set.
Please suggest.
Thanks.

Hi Mann,
In the same place, click the button to choose a variable instead of setting a default value for the N. This would be of type Formula variable, and you can create one right here if nothing is available.
Hope this helps...

Similar Messages

  • Query Stripping not working properly when using variable in the report

    We have issue with WEBI document that have query stripping enable.
    Once the query stripping enabled there is no data return in the report.
    We have investigate on the problem, the query stripping function are notable to retrieve objects that indirectly used in the report
    as we have
    many variable in the reports.
    Ex.
    Var1 = object1 + object2
    Var2 = Object3 + Object4
    Var3 = Var1 + Var2
    Var4 = Object1 + Object2 + Object3 + Object4
    If we use only Var3 in the report, the object1,2,3,and 4 will not be
    retrieve.
    But if we are using Var4 in the report, the object1,2,3,and 4 will be
    retrieve properly.
    Please let me know is it a by-design behavior, if yes please share points on it

    Hi Amit,
    Thank you for response, however i already had alook on that VIdeo and it tells us about the basic enabling of query stripping.
    But my question is when we have a Variable in a report which is dependent on the other two variables it gives me #error so is it by design or not.
    Regards,
    Abhinav

  • 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 use customer exit variable in the report

    Dear All,
    i want to use a standard customer exit variable in the report properties.
    In the Bex Query Designer right hand bottom you will find two buttons "Properties" and "Task". Click on task you will get different option. Choose properties from there and then select "variable sequence tab".
    I need to add a standard variable there. How can i achieve it?
    Appreciate your early help.

    You need to add variable to corresponding charctertic then you can get that varaible for sorting the sequence....
    If 0CUST is the varaible then you need to assign it 0CUSTOMER then 0CUST will be available for the sequence.
    Edited by: shanthi bhaskar on Apr 2, 2009 5:41 PM

  • Can I access Infoset variable from Crystal Reports

    Hi,
    In order to connect Crystal Reports 2008 to the SAP environment I have the Integration kit.
    I have learnt that Crystal also offers InfoSet driver to connect to SAP.
    If I need to access SAP BI- Infoset variables inside Crystal Reports is it possible to do that. If no, then do I need to have the filter using the variable value instead of the fixed filter value?
    Please suggest.
    Thanks,
    Amogh.

    Hi Amogh,
    the InfoSet connectivity that Crystal Reports offers as a direct Infoset connectivity is towards the classic InfoSets from ERP.
    see here:
    /people/ingo.hilgefort/blog/2008/02/07/businessobjects-and-sap-part-i
    /people/ingo.hilgefort/blog/2008/03/23/businessobjects-and-sap-part-4
    In case you want to connect to an InfoSet in a BW system you would put a BW query on top of the InfoSet and then use the BW Query in Crystal Reports.
    see here:
    /people/ingo.hilgefort/blog/2008/02/19/businessobjects-and-sap-part-2
    Ingo

  • How to print sap bex query varaibles in webi report

    Dear Friends,
    I created a webi Report on universe ( Based on SAP BW Bex Query with variables).
    its working fine. Now i want to show the selected variable values on the top of my webi report.
    How can i access and print my bex query variables on header of my webi report.
    We are using BOE 3.1 SP2, SAP BI 7.02.
    Regards
    Malik

    Malik
    That is default behavior of BO. The integration mapping from BI to BO will populates like that, COZ you made BI variable on top of Date dimension, which needs From and TO fields.
    To display that info, what user has selected on the fly:
    As suggested, use UserResponse() function.
    keep in mind, prompt text and userresponse text must be identical. Otherwise, it wont't work.
    Eg: prompt Text: Enetr From Date:
    Var: =UserResponse(Enter From Date:) -->> Results: (Blank)
    Why?? Prompt text Enetr not Enter
    Hope it clears you.
    I'm Back

  • How can i display the presentation variable in my reports

    Was facing a problem to display the Presentation variable on my report, however i managed to display it on answers, but when i try to display it on my Publisher report it doesnt shows any data.
    I use to Select the Values From my prompt, and it shows the Reflection of Presentation Variable on my Answers Report. but i cannot see the Reflection of data on my Publisher Report Please any One Can help me with this.

    Removing '' does not work it given the following error
    "State: HY000. Code: 10058. [NQODBC] [SQL_STATE: HY000] [nQSError: 10058] A general error has occurred. [nQSError: 27002] Near <@>: Syntax error [nQSError: 26012] . (HY000)"
    and by adding space you mean that I use it as '@{ BbranchCode}'?
    What I am doing at the moment is
    1. Write the given query in oracle BI Answers.
    2. Made a dashboard prompt in Answers.
    3. Made a report in dashboard using the Answers report and the dashboard prompt.
    Up till this step it works perfectly fine and the data displayed in manipulated on the basis of the values selected in the prompt.
    4. Now what I want is to display this report in Dashboards using oracle BI publisher. For that I use the template builder provided for microsoft word.
    5. I login to that add-on, open the answers report where I can see the field in the rowset. I select that field and save the template.
    6. I open the oracle BI publisher and make a new reprt with data model of the answer's report and Layout of the one I just created.
    7. I open the dashboard and put in the BI publisher report in the same page in which the asnwers report and the prompt was.
    8. Upon changing the values of the prompt the report in the answers is still getting manipulated but I am not able to see its reflection of the BI publisher report.
    The thing is that I am currently using this presentation variable to manipulate my reports in dashbords using dashboard prompts. The report is built in oracle BI Answers and it is working perfectly fine with it. Now when I use the template builder for Microsoft Word and open the template with the answers's report of this query I see the field in the row set but when I display the template in the dason the bases of this presentation variable the report in the oracle BI Answers is getting updated when I change values but when I use the template builder for microsoft word the the field is being shown in the row set.

  • Not able to access the Date variable in Bex report after SP upgrade

    Hell Experts,
    We have upgraded the support pack to 27 and after that we are not able to access date variable in Bex report.
    We are not able to restrict the Posting date on variable, we are getting the message "Operation failed! No detailed error information from backend available".
    Thanks
    Chetan

    Hi,
    carry out basic checks like RSRV for the field,query ,Infoprovider on which this query is based..
    Check whether there is any in consistent value in the posting date..
    check whether objects are active correctly..
    else serach for SAP note or raise OSS to SAP..
    Thanks and regards
    Kiran

  • Strange display of query components in the report

    hey,
    when I create a query and execute the report, there are always these empty lines (sometimes 4 or so) between characteristics, key figures and free characteristics.
    Maybe it's important to tell you that I am using external hierarchies and variables in the querry definition.
    How get ride of those empty lines?
    Cheers
    Sabine

    Hi Sabine,
    It is normal to have one free line / empty row between the free chars and filter cells and the result area. Now when you execute the query for the first time, there is one row. If you go to edit the query (without closing the workbook) and then re-execute the query, you will see the extra lines coming in, and it corresponds to as many times you go to change the query and reexecute it. To avoid this, just close the workbook and then reexecute the query.
    Hope this helps...

  • BEx: How to change a Query Variable that is not visible in Filters List?

    Hello Experts,
    Good day, I'm currently editing an old query, I am changing the Query Variables with new ones, but I found one variable that I cannot replace.
    Please see the screenshot below, in the Query Properties Window [Variable Sequence Tab (right side of picture)] the Variable that I am trying to replace (Unit) is visible. But when I look for the variable in the "Filter Tab" (left side of picture) under Characteristic Restrictions, it doesn't exist in the list.
    How can I find this Variable and replace it with a new one?
    Other reports are still using this variable so it will impact the other reports if I simply edit the variable. So I need to replace it with a new variable instead.
    Thank you for your time.

    Hi,
            SInce you are searching for a variable for Unit, look into below screenshot and navigate to the variables.
    First click on drop down and select 'Entry for variable' then you will get lisl (after you click on drop down in 'Target Unit' drop down option.
    Normally these type of variable called 'Formula Variable' try editing any of the formula and locate the option as shown below,
    Hope it helps! don't forget to update the final solution and mark the correct/helpful answers.
    Remember it will help others to find the solution and motivate the members to answer your question.
    Thanks,
    Umashankar

  • Variable in the report agent.

    Hai All,
       I have used a variable in the report agent to run a query in the background. The variable I used already incrementing dates automatically when the report is executed on the web.  Do I need to make anymore other setting in the report agent for this variable or Is it going to be fine.
    Thanks, Vijay.

    Anil, Ravi,
      Thanks for your advise. When I created the variant in the webtemplate the date range is feb1 to feb28. But the Date range for the query changed to march1 to march1.
      After I scheduled the package, when run rsrt with statistics for FEB I see all 0's in the statistics and for march I see some count in the statistics. Will this be okay? When run using the process chain this will take right dates?.
      In the Agent settings, under filtering I am using 'No Filtering'. If I click on 'explicit thru query rslt then there is variant. Do I need to take this route?
    Thanks for your help in this regard, Vijay.
    null

  • Query variables for 0CALDAY

    Hello gurus,
       I´m trying to create a query variable that shows the last calendar day(infoobject 0CALDAY) in the previous year, current year, next year. I´m not finding these variables in Business Content. Does anybody know any variable for this? If I gonna need to create a user exit for this, where should I put the result of the ABAP program?
    Thanks,
    David.

    Hello David!
    Yes, you must create user-exit variable for this.
    Go to transaction CMOD and find or create project with RSR00001 enhancement ("BI: Enhancements for Global Variables in Reporting"). After that edit ZXRSRU01 include in function EXIT_SAPLRRS0_001.
    Add to ZXRSRU01 code for you user-exit variable. For example:
        WHEN 'ZB_DATE_LASTMINUS1'.
          LOOP AT i_t_var_range INTO wa_range WHERE vnam = 'ZB_FISCYEAR_M1S'.
          ENDLOOP.
          n4 = wa_range-low.
          n4 = n4 - 1.
          CONCATENATE n4 '1231' into l_s_range-low.
          APPEND l_s_range TO e_t_range.
    in example ZB_FISCYEAR_M1S - variable for manual input on 0fiscyear characteristic.
    ZB_DATE_LASTMINUS1 - user-exit variable. calculate last day for input year - 1.
    Anton.

  • WebI Prompts using BEx Query Variables

    Hello,
    I have the following issues with WebI report selection input paramaters (prompts) that use BW BEx Query variables. Could anyone please assist?
    Issue 1:
    The WebI report has one mandatory and two optional input paramaters (all paramaters from BW BEx Query). When I execute the report via WebI rich client directly, enter the value for mandatory input parameter and leave blanks for both optional input parameters, the report ran OK and has no issue. However, when I ran it through CMC a strange thing happen: I could not select the value for mandatory input paramater as it requires to have values for both optional input paramaters first (which I wish to have them blank and optional). When I refersh values for the mandatory paramater, it says "List of Values for current prompt requires values for following prompts:...(ie. the two optional parameters).
    Anyone has any idea - it seems like it is a CMC issue for the WebI...
    Issue 2:
    Take the same WebI report above, the issue here is the order sequence of the prompts (ie. the selection input parameters). How can we change/control the sequence of the prompts? Whatever sequence of the varaiables (input paramters) in BW BEx Query, the WebI ignores it. Please advise.
    Thanks & Regards,
    Andy

    I did not see separate thread for issue #1, therefore I'll us this thread.
    I am running into similar issue when I get an error message ''List of Values for current prompt requires values for following prompts: <Name of the prompt>".
    We are using BO V4, SP2, Patch 10 with SAP BW as DB via BEx queries.
    I opened support ticket for this issue since obviousely it's still an issue after applying patch 10.
    It's not an issue when 'Rich Internet Application' option is selected to view report in 'Reading' mode (via Launchpad Preferences then Web Inteligence; defautl value for viewing is 'Web').
    I have not tried to use Client tools but even if it works with Client tools - it is not a solution for us. Our company does not plan to install client tools on end user computers.
    Bigger issue us is that report scheduling invokes Web version (not Rich Internet Application). Therefore we cannot schedule report that is giving us problem described. I tried scheduling report from Launchpad and from CMC and both game me error highlighted.

  • Query from Form to Report

    I've been reading on the forum's about parameter passing between
    porlets, between form and report, and such, but I can't get the
    example code to work correctly in my situation. I would be much
    appreciative if someone could describe the best way to handle
    the following. I want to setup a Form to allow queries that
    result in a report. I have a page with two portlets, the Form
    and the Report. The report has bind variables for the search
    criteria. How do I take the info in the Form, and have the page
    reload with the correct information in the bind variables of the
    Report?

    Dear, i have tried it in the form 6. i just create a parameter
    list and pass it to report. in reports creat the same user
    parameters. they will be receive autometically. then u can use
    them in ur query.
    try it.
    bye that's what i thought, i've seen people talk about using
    run_report_object(), run_product(), and open_form(), and i'm
    confused as to which is the correct way to have the page reload.

  • Query Variable

    Hi friends,
    I have a query, i need to make 0Region as a selection option for which i have to create a variable. I have created a variable but my problem is it is taking only single value, how can i change that to hold multiple values. Cany anybody help me in solving this.
    Thanks in advance.
    Ananth

    Ananth
    You will find the previously selected values in your variable screen because the variables are also 'cached'.  This is a functionality of BW (OLAP cahce) for faster data retrieval and helps in performance improvement of queries.
    I think creating variables is purely based on the requirement.  Assigning a default value could be an option, but you would be restricting the usage of this variable to few queries and need to create more variables for other reports.
    Ramesh

Maybe you are looking for

  • My library flipped

    The other day, for no reason I can figure out, my music library went from A-Z to Z-A. There has to be an easy fix for this, but I can't find it. Anyone know how to get it back to A-Z?

  • NOKIA N8 sync with MS Outlook 2007

    I have a Nokia E72. I can directly sync with my MS Outlook via Nokia PC Sync. This syncronises my Contacts, Calendar, Notes, Bookmarks and (very importantly) File and Folder items. (I am running Windows 7.) I would like to upgrade to a Nokia N8. Will

  • HitTesting edges / moving Movie Clips stage length

    This is sort of a multi-layered question- I have a movie clip that I sectioned off in quadrants: http://img401.imageshack.us/img401/2250/tempnw.jpg The red dot is the player, the stage is the size of one square. My goal is to, when the player moves t

  • Interface in XI

    Hi all,           Please explain the following scenario's, 1.)  Application1->one interface-->Application2 2.) Application1>first interface(outbound)->second interface(inbound)-->Application2

  • Which function creates an activity in CRM?

    Hi, We would like to create activities in CRM through a BAPI-like function but we can't seem to find a suitable one. Do you know which function / class method is used to create new activities in CRM ? Thanks in advance, George