Multiple Filter on reports

All i would like to know the best way to be able to do mulitple filters on SQL generated reports i have something that looks like
select * from
from table
where endate = (select to_char(trunc(sysdate)-1, 'MM/DD/YYYY') from dual)
OR
(CLIENTNAME = :P1_XSHOWCLIENTLIST and ENDATE =:P1_XSHOWENDATE) OR
(CLIENTNAME = :P1_XSHOWCLIENTLIST)OR
(ENDATE =:P1_XSHOWENDATE) But when i select a clientname form the drop downlist which is P1_XSHOWCLIENTLIST and then select a date from the dropdown P1_XSHOWendate and do a search it does not seem to show up the results correctly.

So i did try the following from Johns suggestion, and i got this
I am using htmldb 2.0 and with SQL query (PL/SQL function body returning sql query
Code
declare
  q varchar2(4000);
begin
v_sql := 'select "FIXID","CLIENTNAME","CLIENTORDERID","CLIENTLOTS","ORDERPRICE","CLIENTTRADERID","BUY_SELL","CONTRACT",
"ORDERTYPE","ACTION","ORDERRECETIME","CLIENTRECAPPIATIMESTAMP","LOTSFILLED","FILLPRICE","EXCHANGEACTION","EXCHANGE","TOTALROUNDTRIP","TOTALROUNDTRIPSECS"
from  "FASTFIX_CUSTOMER_PERF" where';
if v('P1_XSHOWCLIENTLIST') IS NOT NULL then
  v_sql := v_sql || ' and CLIENTNAME = v('P1_XSHOWCLIENTLIST')'
end if;
if ('P1_XSHOWENDATE') IS NOT NULL then
  v_sql := v_sql || ' and ENDATE = v('P1_XSHOWENDATE')'
end if;
return v_sql;Error
1 error has occurred
Function returning SQL query: Query cannot be parsed within the Builder. If you believe your query is syntactically correct, check the generic columns checkbox below the region source to proceed without parsing.
(ORA-06550: line 8, column 43: PLS-00103: Encountered the symbol "P1_XSHOWCLIENTLIST" when expecting one of the following: . ( * @ % & = - + ; < / > at in is mod remainder not rem <> or != or ~= >= <= <> and or like between || member SUBMULTISET_)

Similar Messages

  • How to filter a report by a predefined but reduceable list of words?

    I am trying to filter a report by several different input values.
    I want to be able to search by date, site, multiple regions (DEV_KEYS), multiple alarm types (ALM_TEXT) and omit entries containing a predefined, but reduceable, list of words (the E#s).
    I want the E# variables to be a list with default values (eg. Alarm, Hi, Lo, Standby) but I want to be able to filter by any combination of these. I was thinking of using checkboxes so that I can tick or untick the words to filter depending on what search I'm doing, but I am unsure how to use them like this. At this point I have them in a textbox each and the search will omit the entires when the text is there - what I want. If I delete the word and click Go the search brings back no results. However if I enter some obscure string (eg i5wqii) the word that I replaced will no longer be omitted - what I want. I don't want the user to have to enter something random into a text box to not search for a word.
    eg filter by all
    + Alarm
    + Hi
    + Lo
    + Standby
    eg filter by Hi 'only'
    - Alarm
    + Hi
    - Lo
    - Standby
    Is it possible to do what I am trying to do? Any help appreciated.
    Current SQL for Report:
    select * from
    select DATE, MICROSEC, DEV_KEY, ALM_TEXT
    from ALARMS@dblink
    where DATE >= :P17_DATEFROM
    and DATE < :P17_DATETO
    and DEV_KEY like :P17_SITE||'%'
    and DEV_KEY like '%'||:P17_DK1||'%'
    and DEV_KEY like '%'||:P17_DK2||'%'
    and DEV_KEY like '%'||:P17_DK3||'%'
    and ALM_TEXT like '%'||:P17_AI1||'%'
    and ALM_TEXT like '%'||:P17_AI2||'%'
    and ALM_TEXT not like '%'||:P17_E1||'%'
    and ALM_TEXT not like '%'||:P17_E2||'%'
    and ALM_TEXT not like '%'||:P17_E3||'%'
    and ALM_TEXT not like '%'||:P17_E4||'%'
    and ALM_TEXT not like '%'||:P17_E5||'%'
    and ALM_TEXT not like '%'||:P17_E6||'%'
    )

    figured out a way to do it. Put each of Alarm, Hi, Lo and Standby in their own select list with the other option as '-----' with output value as some string that will never appear in the field.
    If anyone knows how to do it with checkboxes though i'm all ears.

  • Add Exists filter into Reporting Services MDX

    Hi, I have a piece of auto generated MDX which I need to filter. This was a generated by Reporting Services when I added a parameter to a report reading from a cube.
    WITH MEMBER [Measures].[ParameterCaption] AS [Dept].[DeptName].CURRENTMEMBER.MEMBER_CAPTION MEMBER [Measures].[ParameterValue] AS [Dept].[DeptName].CURRENTMEMBER.UNIQUENAME MEMBER [Measures].[ParameterLevel] AS [Dept].[DeptName].CURRENTMEMBER.LEVEL.ORDINAL
    SELECT {[Measures].[ParameterCaption], [Measures].[ParameterValue], [Measures].[ParameterLevel]} ON COLUMNS , [Dept].[DeptName].ALLMEMBERS ON ROWS FROM 
    ( SELECT ( STRTOSET(@Yearly, CONSTRAINED) ) ON COLUMNS FROM [MyCube])
    The parameter displays all [Dept].[DeptName] even though many are not in the report. How do I only show DeptName if it is in the report?

    Hi Dark,
    In SQL Server Reporting Services, the parameter will display all the Available Values for the user, and then the users select values from the drop-down list, and then filter the report data based on the selected values.
    In your scenario, if you specify multiple available values from this parameter, then it will display all the DeptName on the report parameter pane. I have tested it on my local environment, the query works. Here is the sample query.
    with member [Measures].[UniqueName]
    AS
    [Date].[Calendar].currentmember.uniquename
    select [Measures].[UniqueName] on 0,
    [Date].[Calendar].[Calendar Semester].members on 1
    from(
    select
    ( STRTOSET(@A, CONSTRAINED) )
    ON COLUMNS FROM
    [Adventure Works]
    Reference
    http://msdn.microsoft.com/en-IN/library/ms156303.aspx
    http://www.oakwoodinsights.com/ssrs-mdx/
    Regards,
    Charlie Liao
    TechNet Community Support

  • Select Row as Data filter between Report viewer webpart

    Hi All,
    i have a requirement in SharePoint 2013 which has 2 SSRS Report Viewer webpart.
    i need to pass data which i select in First webpart to second webpart.
    is this possible how can i achieve this.
    Thanks for your time.
    Regards
    Bhasker
    hi

    Hi Bhasker,
    In my opinion, you can refer to the steps as below:
    1.Get the parameters from one SSRS Report Viewer Web Part:
    https://social.msdn.microsoft.com/Forums/sqlserver/en-US/454ae44f-0d29-485a-8830-d2fb0e03f250/how-to-pass-parameters-from-report-viewer-to-report-server?forum=sqlreportingservices
    http://msdn.microsoft.com/en-us/library/ff487390.aspx
    2.Pass parameters to another SSRS Report Viewer Web Part:
    http://sharepoint.infoyen.com/2012/08/25/pass-multiple-filter-parameters-to-custom-report-viewer-web-part/
    http://stackoverflow.com/questions/2564178/passing-multiple-parameters-from-custome-webpart-to-reporting-services-report-vi
    Thanks,
    Eric
    Forum Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
    [email protected]
    Eric Tao
    TechNet Community Support

  • How to create multiple tabs of report in 1 crystal report file

    Hi,
    Is there any feature in Crystal report 2008 on creating multiple tabs of report similar to Web-I?
    If there is, could you give me help on this.
    Thank you in advance.
    Rose

    Hi Rose,
    I think we cant achive the same functionality in Crystal Report designer.
    Regards,
    Shweta

  • Print Multiple copies of report, and resetting Page number for each copy.

    Dear frnds!
    i am using developer 6i reports i have a problem.
    i want to Print Multiple copies of report, and resetting Page number for each copy" that is 4 copies of an invoice is required
    1 - for user copy
    2- gate copy
    3- accounts office
    4- office copy
    any body please tell me the solution "i am using oracle 9i and developer 6i"
    Thanx
    Ibrar

    Hi,
    I was wondering if you were able to get your multiple copies working? Below is what I have so far, just trying to get it to work before changing the actual template.
    <?for-each-group@section:R5542520/Pick_Slips_Detail_Lines_S3;PickSlipNumber_ID260?>
    <?variable@incontext:G1;R5542520/Pick_Slips_Detail_Lines_S3;PickSlipNumber_ID260?>
    <?for-each@section:xdoxslt:foreach_number($_XDOCTX,1,3,1)?>
    HEADER
    PSN: <?$G1/Pick_Slip_Number_Display_ID54?>
    PSN Detail: <?$G1/PickSlipNumber_ID260?>
    Page 1 of 3
    <?start:body?>
    BODY
    <?$G1/LineNumber_ID6?>
    <?end body?>
    FOOTER
    <?end for-each?>
    <?end for-each-group?>
    XML:
    <R5542520>
    <Pick_Slips_Detail_Lines_S24>
    <Header_Custom_Section_S24>
    <Pick_Slip_Number_Display_ID54>123456</Pick_Slip_Number_Display_ID54>
    <PickSlipNumber_ID260>123456</PickSlipNumber_ID260>

  • Unable to filter the report by clicking the last column's name

    Hi,
    I have interactive report page having lots of column. All columns were not fitting in the screen so I added a code in the region--- header and footer section---
    <div style="overflow: auto; width: 1220px; height: 700px;">
    I got a scroll bar at the bottom. But a new problem arised. When I am trying to filter the report by clicking the column name in the report page , a popup is opening for the first column but the pop up is not opening for the last column. For the middle columns, the popup is opening but not below its name. This pop is for filtering the report based on that columns.
    Please give some idea to fix this bug.
    Thanks,
    Chandra Bhanu

    You could try to display as many columns as fit your screen, and put the rest of your columns as form fields in a detail view, somewhat like this:
    http://apex.oracle.com/pls/apex/f?p=vincentdeelen:report_details_in_iframe_v1
    Please tell the steps how to do it.
    Thanks,
    Chandra Bhanu

  • Regarding:-  Filter on Reports

    Hi All,
    I have built a layout on Balance sheet which consists of following reports:
    1) Monthly Balance Sheet
    2) Quarterly Balance Sheet(Previous Year End Balance)
    3) Quarterly Balance Sheet Curr Qtr vs Prev Qtr
    4) Quarterly Balance Sheet Current Qtr vs Previous Year Qtr
    5) Quarterly Balance Sheet Current Qtr vs Previous Year End Balance
    Now I have got a new requirement i.e. add a filter which would allow selection of one report at a time Where the user want’s to select each report individually, instead of it showing it all in one page.
    Is it possible to add a filter option on reports..
    Need help..urgent

    Hi Deva,
    Thanks for your kind reply. In the Dashboard, I have used a prompt(on Fiscal Quarter, Fiscal Year, Ledger Name).. When i checked the scope of this prompt its default set to page type. Could you please guide how to add filter on Reports..

  • Can i filter a report based on a value of a navigational attribute?

    Hi all,
    i need to filter a report and the characteristic i need it's a navigational attribute that is already present in the infocube, can i use it as a filter or i need to add a new characteristic to the ic?
    thank you

    Hi
    You can use navigational attributes to filter your report. When you switch on the navigational attributes at the cube level, the X table or Y table will be connected to the star schema of cube.
    Navgational attributes behave like a characteristic in the report. You can create variables, filter etc on navgational attributes.
    Hope it helps.
    Regards
    Sadeesh

  • Show Multiple Filter Values in a Web Template

    Hello
    I have a Web Template based on a query. On this Web Template I can set multiple single filter values for one characteristic.
    Now I want to show these filtered values for this characteristic on the web item. This is possible for ONE filter value when you use the XML path (f.e. DATA_PROVIDER:DP1?/BICS_VIEW/SELECTION_STATE/SELECTION/CHARACTERISTICS/CHARACTERISTIC[@name=&apos;CHARNAME&apos;]/SELECTIONS/SELECTION[1]/MEMBER/@text)
    Is there a possibility to show MULTIPLE filter values for one characteristics in a text or input field? I don't want to use a drop down box or the info field.
    Kind Regards,
    Andreas

    HI,
    the best ay to do is create a query with same variable parameters as of the main query and place filter Characters on rows.
    Use this query in one analysis item and use it on top row of the template as Filters information.This will give better look and feel as well solve your requirement

  • How to - Select Multiple Filter Values w/o Navigation ability

    Just FYI, I had a requirement to allow users to select multiple characteristic filter values.  Something like a capabilities a combo box would afford us.
    To do this just use a Generic Nav Block Web Item and in the Web Item configuration just uncheck the "Display Navigation Icons". 
    It gives them the ability to select multiple filter values without all the Drill up/down capabilities.

    You can use multiple filter options using the web item dropdwon box.
    There is a How to document available in the BW 2.0B section for this..link below.
    https://websmp206.sap-ag.de/~sapdownload/011000358700003825382001E/HOWTOMULTIPLESELECTION.DOC
    Thanks.

  • How to Add a Servlet Filter to Reports 11.1.1.2.0

    I am running Fusion Middleware 11g (Weblogic 10.3.2), with Oracle Forms/Reports 11.1.1.2.0. The installation is running the default managed servers WLS_FORMS and WLS_REPORTS.
    How can I add a Servlet Filter to the Reports 11.1.1.2.0 application which is running under the WLS_REPORTS managed server?
    I have read the Oracle Doc ID: 418366.1, which describes a process for adding a servlet filter to Reports Developer 10.1.2.2, but I am unclear as to which web.xml file I need to modify in weblogic and where to place the class file for the servlet filter.
    Thanks in advance for your help.

    I can provide some partial help.
    The set up I have was running it locally on Windows 7 (64 bit) laptop and running the reports server (version 11.1.1.4) in XP Mode as part of Windows 7 Professional.
    To find which web.xml file to change, I searched the directories for web.xml and then removed then renamed the web.xml files to something else to see which impacted the start up of the reports server.
    It turns out it was a web.xml file in web.war file in the following directory which impacted the start up:
    C:\Oracle\Middleware\user_projects\domains\ClassicDomain\servers\WLS_REPORTS\tmp\_WL_user\reports_11.1.1.2.0\1ww4ab
    So used winzip to extract files, update web.xml file and and java class as a jar file in the WEB-INF\lib directory and zipped back up to a web.war and put it in the above directory and restarted the Reports Server.
    Note the url pattern I used was slightly different to that shown in the oracle note (forward slash before asterix):
    <url-pattern>/rwservlet/*</url-pattern>
    Have not investigated how to do in for a production environment, but hopefully this information is of use.
    Les.

  • I recently purchased some information to be downloaded to one of my apps I never received the download and I was charged multiple times I reported the problem my  Community

    I recently purchased some information to be downloaded to one of my apps I never received the download and I was charged multiple times I reported the problem And it's been about a week my question is how long does it take  to credit my account back. It's my money and I want it now.

    It can take a while for your money to show up in your bank, but a week is a bit over the top. Try contacting iTunes Store Support to make sure the refund was issued.

  • Inserting titles between multiple dynamic EPM reports

    Hi,
    I am currently working on some templates where there are multiple dynamic EPM reports with shared column dimensions and multiple dimensions in the rows.  I am using EPM Add-in SP21 patch 1.
    We would like to have a section title appearing between the reports, I have tried a number of methods but have not found a solution that produces quality results.
    Methods tried:
    1. A local member on the row inserted at the start of the second report.  The local member text appears in the right most row dimension column which is not the right place for a title.  Also the titles for the dimension rows are not copied.
    2. Insert a dummy member and override the member name.  There are a couple of problems with this method, subsequent dimension ID's are populated and local members are also applied to this member.
    3. EPMInsertCellsBeforeAfterBlock.  I only managed to get this to copy a single cell into the data columns, not the row dimension columns.
    4. Use VBA to add a title.  The API GetDataTopLeftCell will return the starting position of data in a specific report.  This can then be used to insert text into the previous line as a title.  The disadvantage here is that VBA is being used but it can be used to produce the required results though you need to handle formatting and any password protection within the VBA.
    I imagine that this is quite a common requirement.  Ideally I would like to solve this without resorting to VBA or some exotic workaround.
    Any suggestions appreciated.
    Cheers,
    Mark

    Dear Vadim
    I want results similar to what I have achieved using VBA.  Where I have one row for column titles, which I am copying using Excel formulas, these should appear on every column including the dimension columns.  On the row above this should be a subsection title, in this example this is "Bezüger"
    The screen shots contain two reports, one below the other with shared column axis.  The second report has been shifted down by a couple of rows to introduce a break between the reports.
    Using VBA I inserted titles onto two rows, with a section title above a repeat of the original column header.
    The best that I have achieved using local members resulted in a title being on the right most column, and there being no way to put title column header above the dimension columns.
    I have played around with all the options for the local member but find no way to make the title appear in the left most column.
    In this screen shot, the local member is disabled, because I have replaced it with the VBA solution.
    I hope that the updated screen shots make this clearer to you.
    Regards,
    Mark

  • How to pass multiple filter values in SAPBEXsetFilterValue function

    I am using SAPBEXsetFilterValue for filtering the query. I want to have multiple filters for same key value for ex. for plant I want the query to be filtered for two plants at the same time using this function please any one could help me out

    Hi,
    Afraid, that is not possible:
    Re: Setting Multiple Filter Values or Filter Range Using SAPBEX API?
    Re: Passing a range to SAPBEX.XLA!SAPBEXSetFilterValue
    Re: SAPBEXsetFilterValue
    Best regards,
    Eugene

Maybe you are looking for

  • HT6400 Problems with IMAC ( 10.9.5) update

    I already started a chat with Eric Root which didn't resolve anything ( but he seems to have disappeared!) . OriginallyI thought that my problems following Mavericks update a few days ago to 10.9.5 were limited to e mail but I now realise that neithe

  • Accounting Entries During GR

    Dear Gurus, We have activated material ledger with Transaction based price determination. System has posted following 2 accounting entries for GR. I am Unable to ubderstand why 2 entries.One of doc typpe WE and the other ML. The PO is an import one M

  • PR against PO with amount n Quantity

    hiii... pls tell me report t.code by this we can get PR Number,Pr amount,Pr number ,PO number against that PR wIth amount n quantity. regards Rekha

  • How to take photos off my ipad mini

    How to I take photos off my ipad mini if I don't have iPhoto or any other photo sharing sight? I would like to take them and put the photos onto a cd

  • Why is my MacBook Pro running extremely slow?

    Hello, I am currently using Photoshop to batch a series of images.. Normally this would take less than 5 minutes for 100+ photos, however it has taken over two hours for just 40 photos. The photos are still JPEG at a medium size. I don't understand w