Report based on parameters

I would like to create a report that runs a different sql statement based on the parameters passed in. The column layout won't change but the group by sections will(I think I can handle that by suppressing field when parameter is null). For example, the parameter asks for Division, Branch and Group. If the user only puts in Division I would like to run a different sql statement then if the user provides Division, Branch or Division, Branch and Group. Thank you very much in advance for your help!
Holly

You should start by looking at lexical parameters in the on-line help and seeing how you can alter SQL statements programatically using them.
You should also look at using format triggers to turn 'off' certain layout objects (by returning false).
Hope this helps,
Danny

Similar Messages

  • Dynamic report based on Parameters and a Button

    Trying to make a dynmic report based on Parameters entered.Wanted to refresh report when i click on a button say "OK" based on parameters entered.
    (1) created 2 text boxes -- Parameters --One date and other employee No
    (2) on the same page i created a report-region which id dynamic "PL/SQL Function Returning SQL Query "
    In this query i am using the parameters created in step1
    (3) Then i created a Button say "OK" .
    (4) When i enter parameters and then press OK i need to refresh my report in region defined in step2
    This refresh is not happening .
    Not sure what is missing
    I tried using branching it didn't work
    In the dynamic region it shows "No data found"
    Please help

    sachin
    1) make sure there is no Optional Redirect defined on the OK button. That is, make sure the page is really submitted.
    2) in the PL/SQL body generating the query, print out the query using htp.p() so you get to see it and test it.
    3) use the session state link in the developer toolbar in conjunction with the technique in step 2) to debug your query
    Maybe the report region is refreshing, but it just isn't returning any results.
    Sergio

  • How can I compare two periods in a report based on parameters

    Hi all,
    I'm wondering how can I create a matrix report which compares the sales of two periods. These periods are variable and coming from the parameter section that the user is using. For example, I have got the following table "Sales". Columns are:
    ID (not visible in report, can be used to lookup)
    Country
    Customer
    Year
    Quarter
    Month
    Gross sales
    The output that I would like to get is the following
    Parameter period 1: 2013 Q1
    Parameter period 2: 2013 Q3
    The report should look something like this:
                                          2013 Q1         
    2013 Q3
    USA                Microsoft         50000          75000
    So in the third column you'll see the sales based on parameter period 1, and the fourth column shows the sales based on parameter period 2.
    Thanks for the help!

    Just to be sure I understand...
    You have 1 primary dataset that returns records that will be displayed in a tablix in your report. The data will include sales information records from various years, quarters, etc. You want your report user to be able to select 2 sets of data for comparison
    based on quarter. Is this correct?
    To do this, start by adding a Matrix to the report. Set the Column Group to group on the expression:
    =CStr(Fields!Year.Value)+" "+Fields!Quarter.Value
    Set this same formula as the group header. Now Set the existing Row Group to group on Customer. Add a parent group above this Row Group and group on Country. In the detail cell set the value to:
    =Sum(Fields!GrossSales.Value)
    You will also need to access the tablix properties and set a filter as follows:
    Expression: =CStr(Fields!Year.Value)+" "+Fields!Quarter.Value
    Operator: In
    Value: @Quarters
    For this filter to work, you will need to create the @Quarters parameter as follows:
    On General tab:
    Name - Quarters
    Prompt - Select Quarters to Compare
    Data type - Text
    Allow multiple values - Checked
    Visible - Selected
    Available Values:
    Get values from query - Selected
    Dataset - dsQuarters
    Value field - YearQuarter
    Label field - YearQuarter
    Default Values:
    No default value - Selected
    Advanced: Leave at default settings
    For the parameter to work you need to create the dsQuarters dataset. This dataset needs to return a single column of distinct values for Year + " " + Quarter based on the same query that you use for your primary dataset. Add the distinct keyword (if using
    TSql) or equivelent and eliminate all of the unnecessary columns. Set it to return Year + " " + Quarter AS YearQuarter.
    Let me know if you have questions or if I missed something.
    "You will find a fortune, though it will not be the one you seek." -
    Blind Seer, O Brother Where Art Thou
    Please Mark posts as answers or helpful so that others may find the fortune they seek.

  • BI Pub report bursting based on parameters set in interactive dashboard

    Hi,
    Could someone help me in creating and bursting reports as per the following requirement:
    1. there is interactive dashboard with html multi select parameter that has display values department, location, employee job code. user can select one or more column name from this multi select parameter field.
    2. need to create a preview button in dashboard, clicking on which display a report on dashboard page showing how many files are generated after bursting and employee count
    3. need to create a generate/burst report button to automatically burst a bi publisher report based on the column names that user has provide in step 1 above.
    4. how can we capture the parameter values from dashboard and pass to bi publisher report?
    5. how can we automatically burst this report based on column names say both 'department-location'?
    6. in bursting of report we can split only by one column name but here we need to do based on two or more column names set by the end user in the parameter
    -Priyanka

    Thanks for a quick response but I am still not clear on
    1. how to do this using custom java code
    and
    2. actually user would login to interactive dashboard and there he will give these parameters using which we need to automatically burst a BI publisher report. Can this be done some how?
    -Priyanka

  • How to Generate a Report Based on User's Parameters from Web Site

    Hi, all,
    I am trying to use Oracle Developer 6.0 Report Builder to generate report based on what user types in from the web site. Since I am a novice, I am wondering if anybody would help me with the following questions:
    1. How can I create a report based on user's parameters?
    Assuming that I have 2 text fields EMPNO and DEPT on the web site, after user types in some value, how can I pass these parameters into my query, can I do something like:
    select ENAME, JOB, EADDRESS from EMP
    where EMPNO =
    some_reference_of_parameters_from_user
    or is there any other way to achieve this functionality?
    2. How can I pass a PDF format report back to user after the report is generated?
    Any help is greately appreciated!!
    Best regards.
    Judy

    Hello,
    In the Report Builder, create two user parameters, and set the parameter name, datatype, width, and default values to what you want. Modify the query and put in a where clause (e.g., where deptno = :p_deptno). When you request the report with PARAMFORM=YES on the URL, it'll generate a default parameter form in HTML and allow the user to enter in the selected parameter values. Also set DESTYPE=CACHE&DESFORMAT=PDF on the URL to get the output back as PDF.
    If you upgrade to Reports 6i, you can customize the default HTML parameter form.
    Regards,
    The Oracle Reports Team --skw                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • Generate report dynamically based on parameters

    I have a Report with 30-35 items and these items are divided into sets of
    RMA, WIP,Inventory, finance ....
    now i need to display the report dynamically based on parameters
    say, for example if RMA, WIP, Inventory, finance are YES,NO,YES, NO
    then the report should display only RMA , Inventory....
    any ideas/suggestions would appreciated......
    Thanks,
    -VK

    Thanks for the Reply Sabine, let me put my question this way,
    i have to display the report based on the selection criteria(parameters)
    i have a generalized view which will display all the items....but the client needs them in a fashion where he chooses them as a groups since, the list is so big and he wouldn't be needing them all at once.
    here is what i'm thinking for the moment since, discoverer cannot hide the columns based on runtime parameters ....correct me if i'm wrong (as per my knowledge...it cannot ) i have decided going with 16 worksheets 4 groups of items say,(RMA, WIP, INV, FINANCE..)
    and now based on the flags what the end user chosses i may have to display the appropriate worksheet ....is this solution possible...if so do i have to subqueries...??..or is there any better ideas/suggestion....
    Regards,
    VK

  • Can I pass parameters from a dashboard via a dashboard prompt and presentation variable to publisher report based on a data model with select statements in OBIEE 11g ?

    I have a publisher 11g (v 11.1.1.7)  report with a single parameter. The report is based on a data model not a subject area.  I created a dashboard put a dashboard prompt and link to the report in separate section on the same page.  The dashboard prompt sets a presentation variable named the same as the parameter in the report. 
    The problem was when I created the dashboard prompt, it forced me to select a subject area which I did (though did not want to) and then I created both a column and variable prompts. But clicking on the
    report link completely ignored the value that I thought would be passed in the presentation variable to the report.
    Side note :  My report uses a pdf template for its layout where I have mapped the columns names from my data model to the form fields on the pdf form.  I noticed that if I create a publisher report based on a subject area, then I do not have the choice to choose a PDF as a template type for my layout.  (I only see BI Publisher Template as a choice). 
    I see some documentation online that suggest it could be done in 10g.
    Thanks
    M. Jamal

    Ok,
    I just tried that and it still doesn't pass anything to the prompt.
    I changed the prompt to an edit field and I made the following weblink but when i click the link from an account it doesn't put anything in the prompt and all data for all accounts is shown.
    This is the URL maybe I messed something up...
    https://secure-ausomx###.crmondemand.com/OnDemand/user/Dashboard?OMTHD=ShowDashboard&OMTGT=ReportIFrame&SelDashboardFrm.Dashboard Type=%2fshared%2fCompany_########_Shared_Folder%2f_portal%2f360+Report&Option=rfd&Action=Navigate&P0=1&P1=eq&P2=Account."Account Name"&P3=%%%Name%%%
    thanks

  • How to export multiple copies reoprts based on parameters and with pre-defined naming

    Hi All:
    I have a problem of using SSRS 2012, we have multiple clients and they wanted us to deliver the pre-defined excel reports to different branches based on selecting the "branch name" parameter, also they have a naming rule for the excel
    report file.
    We cannot use the subscription as they need to do it in one batch and upload to an FTP file, therefore we are doing this manually for over 300 reports. Is this a convenient way to generate them in one batch as well as customising their file names?
    Thanks a lot for your help.
    Cheers
    Johnny

    Hi JohnnyKahWang,
    As per my understanding, there are multiple clients, you want to deliver reports to clients according to branch name parameter, and naming the excel file according to the rule. If that is the case, we can use data-driven subscription to achieve your goal.
    Reporting Services provides data-driven subscriptions so that you can customize the distribution of a report based on dynamic subscriber data. Data-driven subscriptions use query results to determine the recipients of the subscription, delivery settings,
    and report parameter values. At run time, the report server runs a query to get values used for subscription settings. We can use the Create Data-driven Subscription pages to define the query and assign query values to subscription settings. For detail information,
    please refer to the following steps:
      1. Open Report Manager, and locate the report for which you want to create a data-driven subscription.
      2. Hover over the report, and click the drop-down arrow.
      3. In the drop-down menu, click Manage. This opens the General properties page for the report.
      4. Select the Subscriptions tab, and then click New Data-driven Subscription.
      5. Choose a method of delivery, then select data source for the subscription.
      6. Specify a query that retrieves subscriber data like below:
    CREATE TABLE Name (
    BranchName varchar(20),
    ExcelFileName varchar(20),
    Email_to varchar(50)
    INSERT INTO Name values
    ('Branch1', 'Name1', '[email protected]'),
    ('Branch2', 'Name2', '[email protected]'),
    ('Branch3','Name3', '[email protected]');
      IF we chose Windows File Share delivery extension, we can define path in the query.
      7. Specify delivery extension options like below:
      8. Specify report parameters to BranchName.
      9. Specify when the subscription is processed, then click Finish to save the configuration.
    For more information about Data-driven Subscription, please refer to the following documents:
    http://msbimentalist.wordpress.com/2013/08/26/how-to-create-data-driven-subscription-in-ssrs/
    If you have any more questions, please feel free to ask.
    Thanks,
    Wendy Fu

  • Looping thru sub report based on dataset in main report.

    Hello all,
    I have a report which has few parameters and I scheduled  it to run and export in excel. This report run multiple time based on parameter value and then export the data into different excel file. 
    Here is what I'm looking for:
    1. Create a main report with temporary data set with all the parameter values.
    2. Run sub report with parameter values from main report and then export it to excel file, I assume it will help to create one single excel file with multiple tabs.
    Questions are:
    1. How I can create s dataset in main report (may be use XML as a data source) and write a query? Since I don't have access to database I cannot add a table for parameters values so I need to know how I can create a dataset with all the values
    2. Is this a right approach or there is a another way to handle it?
    Look forward for expert advice.
    Thanks,
    P

    Hi Parry2k,
    According to your description, you want to create a report with several parameters and configure subscription to send delivery the report to users, but you haven’t permission to access database.
    According to my knowledge, as long as a user can connect to a SQL Server instance, the user is able to create temporary tables, there are no special permissions. To use XML as data source, we can select XML from type drop-down list, then embed xml in dataset
    query text box.
    To set parameter values, we can create Available values and Default Values manually or create datasets for the parameter, then get values from the datasets.
    In this case, I would recommend you asking database administrator to grant permission to access database to you. Creating temporary tables is not a good approach to solve the problem.
    If you have any more questions, please feel free to ask.
    Thanks,
    Wendy Fu
    Wendy Fu
    TechNet Community Support

  • Executing a Webi report with input parameters

    How can I schedule a BO4 webi report dynamically? I have a set of tables which contains the required parameters for the reports and I need implement a mechanism which will invoke these reports with the parameters. Then I would want the reports to be placed at a specified location. I am told that this can be achieved using webservices integration. I just dont know how. Please advise.

    Hi Sukanto ,
    Check the below link for dynamic prompt during scheduling
    http://scn.sap.com/community/businessobjects-web-intelligence/blog/2014/01/24/dynamic-default-values-with-prompt-in-webi-reports-based-on-bex-queries-in-bo
    and file location check below screenshot
    It might help you.
    Regards,
    Anish

  • Refresh classic report based on select list value selected

    hello,
    can anyone please help me out with this issue. I have a parameterized classic report based on a select list and I want to refresh this report whenever the select list value is changed. I am using oracle apex version 3.2. i just want to have a javascript function onchange event for the select list which refreshes my report whenever a value is selected.
    My select list item is p1_datastore
    select distinct datastore d,datastore r from my_table1 order by 1;
    My classic report query is
    select * from my_table2 where datastore = :p1_datastore order by last_updated_dt desc;
    ****************************************************thanks,
    orton

    can anyone please help me out with this issue.
    thanks,
    orton

  • What is this message in report based on "return SQL"

    After changing some parameter value in one report based on "function return SQL body"", we get:
    Invalid set of rows requested, the source data of the report has been modified.
    reset pagination
    We get this notice without error....just link "reset pagination" (*http://server:port/pls/htmldb/f?p=100:203:2666560392386347:NO::RP) which leads to error:
    Error      No checksum was provided to show processing for a page that requires a checksum when one or more request, clear cache, or argument values are passed as parameters.
    Any help ?
    THX!
    Message was edited by:
    Funky

    Found out...
    Originaly one search field was POPUP LOV type. Later we change them to "Text Field", bud LOV definition remains ...regardles it points to LOV which was not in use now.
    When remove LOV reference and delete the definition ...all works like a charm...

  • Launch a Crystal Report Based on a Bus. Objects Universe with code

    Post Author: BobM
    CA Forum: .NET
    Launch a Crystal Report Based on a Bus. Objects Universe with code
    We have purchased Business Objects Enterprise XI R2 and have designed a universe.  We have hundreds of scheduled reports that have been configured through the InfoView.  The problem is that we run these reports on a very odd date schedule and it is extremely cumbersome to go into these report definitions and change the dates in InfoView.
    We would like to be able to store all the report parameters in a table (outside of the BO universe) along with the date and time we would like it to run.  All of this would need to be tagged with the report name so we know what report we are referring to.  Then we would like to sweep this table periodically (or use some other triggering mechanism) and launch the reports as specified (hopefully) using an API/SDK (like the one that used to be available with Crystal) to launch the .RPT file and pass all of the appropriate parameters, and possibly the credentials if need be.
    In short we want to roll our own report scheduler due to some limitations we have found in the InfoView scheduler.
    My main question is, does an API/SDK exist that can launch a crystal report that is based on a Business Objects Universe?  As I had stated, it needs to be able to pass parameters in the report call.  Based on my previous projects using Crystal connected directly to a SQL Server DB, I beleive this is possible, but I would like to hear from others that may be doing something similar with a Business Objects Universe back end.
    We are using Crystal Reports XI R2.  Just to be clear, all of the functionality I specified up to the point where the report needs to be called is not an issue, we know how to do all of that.
    Thanks in advance,Bob
    Code; API; Business Objects; Universe; Crystal; BO Enterprise X11; Crystal Reports XI

    With the code, you've presumably logged on to the database. To insert objects on to a new report you'd want to use code along the following lines:
    private void AddTableFromDataSet(ref CrystalDecisions.CrystalReports.Engine.ReportDocument rpt, System.Data.DataSet ds)
    ISCDReportClientDocument rasReport = rpt.ReportClientDocument;
    // Convert the DataSet to an ISCRDataset object (something the ISCDReportClientDocument can understand)
    CrystalDecisions.ReportAppServer.DataDefModel.ISCRDataSet rasDS;
    rasDS = CrystalDecisions.ReportAppServer.DataSetConversion.DataSetConverter.Convert(ds);
    // Add the dataset as a data source to the report
    rasReport.DatabaseController.AddDataSource((object)rasDS);
    // Add a field to the report canvas
    // Note: This is quick and dirty. No positioning, resizing, formatting, etc.
    CrystalDecisions.ReportAppServer.Controllers.ISCRResultFieldController rfc;
    CrystalDecisions.ReportAppServer.DataDefModel.ISCRTable crTable;
    CrystalDecisions.ReportAppServer.DataDefModel.ISCRField crField;
    rfc = rasReport.DataDefController.ResultFieldController;
    crTable = rasReport.Database.Tables[0];
    crField = crTable.DataFields[2]; // Hardcoded field "Customer Name" in the Customer table from Xtreme Sample Database
    rfc.Add(-1, crField);
    // Save the report template to disk (without data)
    //object path = @"c:\documents and settings\administrator\desktop\";
    //rasReport.SaveAs("test.rpt", ref path, 0);
    //MessageBox.Show("Done!");
    For more info, see sample apps on the following link:
    http://wiki.sdn.sap.com/wiki/x/IgBmBQ
    Also, consult your 'Report Application Server .NET SDK Developer Guide" and  "Report Application Server .NET API Guide". I'd provide the appropriate links, but you do not mention the version of CR you are using...
    Thread moved to the '.NET - SAP Crystal Reports" forum.
    Ludek
    Follow us on Twitter http://twitter.com/SAPCRNetSup
    Got Enhancement ideas? Try the [SAP Idea Place|https://ideas.sap.com/community/products_and_solutions/crystalreports]

  • Crosstabs- Selecting Rows based on parameters

    Does anyone know a way to display or not display rows in a crosstab based on parameters? I am not looking to suppress rows, rather just include or exclude.
    What I am trying to do is replicate a webfocus report that allows the user to check a checkbox to show or not show items such as fiscal year, period, item, etc.
    Any assistance with this would be very much appreciated.

    I'm not sure about it! but there might be a workaround. Can you try this and see whether it helps you?
    Suppose I have 3 fields like country,region,city and I have inserted a crosstab and inserted year field in column and inserted sales amount as a summary field. For the rows I tried creating a static parameter with values country,region,city
    Now create formula 1 as
    if {?parameter}="country" then {country field}
    formula 2 as
    if {?parameter}="region" then {region field}
    formula 3 as
    if {?parameter}="city" then {city field}
    Now I have inserted all these 3 formula as 3 different rows in crosstab
    I hope this might help you upto some extent!!!
    Raghavendra

  • Binding Sub Report based on link clicked in main report in BIDS

    Is it possible to bind Sub Report based on the link clicked in main report which is the parameter for sub report in BIDS?

    Hi Thanuja534,
    If I understand correctly, you want to add a drillthough action on a report to jump into another report with a specified parameter. 
    A report can contain links to other reports. The report that opens when we click the link in the main report is known as a drillthrough report. Drillthrough reports are a type of report that we access by clicking a link in the current report. When we click
    a text box that has a drillthrough action, we open the drillthrough report. If the drillthrough report has parameters, we must pass parameter values to each report parameter.
    Besides, drillthrough reports must exist on the same report server as the main report, but they can be in different folders. We can add a drillthrough link to any item that has an Action property, such as a text box, an image, or data points on a chart.
    For more information about adding parameters to pass to a Drillthrough Report, please see:
    http://technet.microsoft.com/en-us/library/aa337477(v=sql.105).aspx
    If you have any other questions, please feel free to ask.
    Thanks,
    Katherine Xiong
    Katherine Xiong
    TechNet Community Support

Maybe you are looking for

  • Consuming the webservices in ABAP?

    Hi Guys, I have consumed a wsdl on the ECC 6.0 system, generate a proxy object and when i am trying to send the data i am gettitng the error as below. I have also filled the soap action while creating the logical port through SOAMANAGER. Error Error

  • Improving Video Quality?

    Video quality doesn't appear as good as it did when Steve demonstrated it some time ago when more than two are video chatting. I'm using a PowerMac G5 QUAD with iSight camera and invite the first person on my home network via Bonjour everything looks

  • PS CS5 Action will not stop for interactive dialogue

    I've written an action for CS5 that worked just fine in CS2...but doesn't work now. I want the action to stop so that I can adjust layer opacity manually, but it just runs right on by that part of the process with the values I wrote the first time. I

  • Cluster VS pooled

    hey,    what is the main difference bet cluster and pooled tables where we use which one which one is better?

  • Looping a streaming movie

    Hi, I have a streaming flv. I would like to know if it is possible to loop it continuously? I can do it if I embed it but this increases the size of the movie too much.