SSRS - How to display all the results from a query and then be able to filter the data

Let's say I have a simple query that will return products name, ID, price
SELECT pname,
pID,
price
FROM products
When I display the results in SSRS the user will (without entering any parameters) see something like:
Product Name | ID | Price
xyz                    1     $10.00
.zzz                    10   $4,000.00
How can I filter my results once they are displayed? For instance, Out of the results the user wants to see only the products where price is between $10 and $3000?
-Alan

Hi Visahk,
Maybe I did not explain my issue very good. 
I want the user to first see all results (without entering the price range) - then if he wants she/he can filter the results by price.
As soon as I add 
WHERE price BETWEEN @StartPrice AND @EndPrice
to my SQL query, the user is prompted to enter a price range before seeing any data.
-Alan
Ok for that what you can do is to set allow null value property for the parameters.
Then set NULL as default value for parameters in parameter properties tab
and make the query as below
WHERE price BETWEEN @StartPrice AND @EndPrice
OR (@StartPrice IS NULL AND @EndPrice IS NULL)
and then report will get executed without waiting for any prompt and user may change values at a later stage and rerun it
Please Mark This As Answer if it helps to solve the issue Visakh ---------------------------- http://visakhm.blogspot.com/ https://www.facebook.com/VmBlogs

Similar Messages

  • Is it possible to put the results from a query in a variable to use in the bean class?

    Hello, I'm using JDeveloper 12.1.2.0.0
    I would like to keep the result of my queries (the method i created in the AppModule) in a RichTable or other type of variable so i can have the results stored and i don't have to do unnecessary queries after. I don't think the query is the problem but keeping the results.
    I've tried to do that by using this:
        public String testVFactSales(String conditions) {
            PreparedStatement query = getDBTransaction().createPreparedStatement("" + "select * from v_fact_sales " + conditions, 0);
            //ResultSet rs;
            ResultSet result;
            //RichTable result;
            //String result = null;
            try {
                //query.setString(1, conditions);
                // query.execute();
                query.execute();
                result = query.getGeneratedKeys();
                query.close();
                System.out.println("Result: " + result.toString());
                return result.toString();
            } catch (SQLException e) {
                e.printStackTrace();
            return "";
    As you can see, i've already tried some solutions but so far i only get errors (cannot convert or null exception, when i try to put the result in a richtable in my bean class)
    Any ideas?
    This is very important for me, since it would improve the performance of my project a lot.
    Regards,
    Frederico.

    Hey Arunkumar,
    I came to this conclusion since i'm using binding variables with my where clauses.
    I've measured the time and i get really bad time responses.
    This is my main table query, where all the others selections will be filter the search in this table:
    SELECT VFactSalesNew.N_SALES,                              
           VFactSalesNew.QUANTITY,                              
           VFactSalesNew.PRICE,                               ,                              
           VFactSalesNew.FK_STORE,                              
           VFactSalesNew.ID_ANO,                              
           VFactSalesNew.QUARTER   
    FROM V_FACT_SALES_NEW VFactSalesNew                              
    WHERE                                          
    ((nvl(:var_dimCoin,'0') ='0' OR FK_COIN IN (select * from THE(select cast( in_list(:var_dimCoin) as mytableType ) from dual ) a) )                                                   
    AND                                                 
    (nvl(:var_dimProduct,'0') ='0' OR FK_PRODUCT IN (select * from THE(select cast( in_list(:var_dimProduct) as mytableType ) from dual ) a) )                                                  
    AND                                                 
    (nvl(:var_dimCustomer,'0') ='0' OR FK_CUSTOMER IN (select * from THE(select cast( in_list(:var_dimCustomer) as mytableType ) from dual ) a) )                                                 
    AND                                                 
    (nvl(:var_dimStore,'0') ='0' OR FK_STORE IN (select * from THE(select cast( in_list(:var_dimStore) as mytableType ) from dual ) a) )                                                
    AND                                                 
    (nvl(:var_dimSeller,'0') ='0' OR FK_SELLER IN (select * from THE(select cast( in_list(:var_dimSeller) as mytableType ) from dual ) a) )                                                  
    AND                                                 
    (nvl(:var_dimProject,'0') ='0' OR FK_PROJECT IN (select * from THE(select cast( in_list(:var_dimProject) as mytableType ) from dual ) a) )                                                  
    AND                                                 
    (nvl(:var_ano, '0') ='0' OR ID_ANO IN (select * from THE(select cast( in_list(:var_ano) as mytableType ) from dual ) a) )                                                  
    AND                                                 
    (nvl(:var_treemap,'0') ='0' OR PK_REGION IN (select * from THE(select cast( in_list(:var_treemap) as mytableType ) from dual ) a) )                                                  

  • Is there any possible way to set your itunes to just show the album name without the songs included in the album in artist view. and then be able to select the album to expand all the songs. this would be ideal as I have many albums under certain artists

    I use to use windows media player. The layout was great. It would have icons (one of the album artwork inside the folder) for the artists. you could click on the artist and it would have the icons for all of the albums (similar to itunes) however it would not have all the songs included in that album listed underneath or within it. you had to click on the icon for the album to go into that particular album to view the songs. In my personal opinion this was much easier to search for a particular album especially if you had many albums under one artist as I do. I collect live concert recordings for several particular bands. It would be really nice if itunes would allow you to contract the songs names within each album under artist view and have some way to exand them or open a seperate album folder when clicking on the album name through artist view. is this even possible. does anyone know a way to allow this is happen. you would make a serious music collector very happy. I know this is a crazy request but for people who are serious music collectors like myself with over a TB of music it is much easier to consolidate each individual album under each individual artist for faster searching/viewing needs

    You are describing an iTunes problem, not an iPod touch problem. Try posing in the iTunes forum.

  • How can i extract a person from a picture and then animate the person

    how can i extract a person from a picture and then animate the person

    Basically you select the person using the various selection tools, copy the selection to the clipboard, and paste the selection onto the destination picture. Then use the Move tool to resize/reposition the person as necessary. Here is a tutorial demonstrating this as well as some advanced techniques.
    http://home.earthlink.net/~msand42/PSE/composite/

  • HT4859 My phone some how deleted not all but most of my contacts and then backup to the iCloud can I go back to a previous backup and retrieve the contacts. If so how.

    My phone some how deleted not all but most of my contacts and then backup to the iCloud can I go back to a previous backup and retrieve the contacts. If so how.

    Hi Shero89,
    Thanks for the answer.  I am not new to IOS software but I don't really ever bother with it, have discovered how little I take advantage of the i-phones capability, in reality I still only really use it to phone, text, check emails, listen to music and look on internet.  I'm not keen on jailbreaking it as I don't trust it to work so normally just update and leave it at that.  Only reason I wanted to downgrade was because the update had stopped my bluetooth working but Kilted Tim solved that problem for me so am now not interested in downgrading software.  I quite liked the things that IOS 5.1 gave me but wasn't happy with fact that bluetooth stopped working in car as it caused me problems.  One day I might try and work out exactly what I-phones can do but on the basis that it's a phone all I really want it to do is phone, if that bit works I'm happy.

  • How to read two text files using the Read from spreadsheet.vi and then plot it

    I need to read two text files using the read from spreadsheet function and then plot these files over time.
    The file with the .res extention is the RMS values (dt and df) and the second file contains the amplitude of a frequency spectrum.
    I really appreciate any help..thanks
    Attachments:
    RMS.txt ‏1 KB
    FREQUENCY.txt ‏1 KB

    From NI Example Finder:
    Write to Text File.vi
    Read from Text File.vi
    Jean-Marc
    LV2009 and LV2013
    Free PDF Report with iTextSharp

  • Using the results of one Query in a workbook as a filter in another query

    Hello!
    I'd like to have one workbook which my users can execute and the result from one Query (e,g, Customer Account Number) will then be used as a filter in a second query (which would be from a different cube).
    Can this be done?
    Cheers.

    Hi,
    As far as I understand your requirement, you want to pass the result of one query to another query as a filter.
    Well you can do this, by Using Replacement Path Variable.
    For e.g. you want to pass Values of Custmomer Account Number to another query. In the second query, create one variable on Customer Account Number with type Replacment Path. Here it will ask you to enter the name of the query from which you would like to take the values of Customer Account Number.
    When you will run the second query , it will execute the first query from which you want to read the customer accoutn number in the back-end. And it willl display the output the second query as per the valeus of customer account number.
    This will help.
    - Jaimin

  • Alternative for result from other query  and merge dimension option option

    Hi Everyone ,
    Am Developing one webi report over bex Query.
    Actual scenario is output of one webi report should be the input of other webi report.
    Eg:
    Table 1
    2010        Cus 1
    2010        Cus 2
    2011        Cus 3
    table 2
    cus1    m1   100
    cus2    m2   200
    Cus3    m1  400
    Report 1 designing 
    First report created using table 1 and prompt for year
    Report  2 designing
    Second report created using table2 and prompt for customer
    So when am Running first report it will ask for parameter year and if am selecting 2010 then the report will return C1 and C2
    this out put should e the input for report 2.
    So out put will be 100+200=300
    NOTE:1. Result from other query is not working in webi filter pane since am building on olap universe.
               2. Merge Dimension performance is very slow .
    Any Solution ?
    Regards,
    Kannan.B

    Hi,
    Thanks for ur reply
    As you said , If am giving hyperlink to other report .
    Eg: User selected Tamilnadu then report 1 opened  then  he has to click the some cell or hyperlink cell to view the actual report(2nd report).
    Suppose user Clicked that hyperlink cell and 2nd report opened and he is viewing the data for Tamil nadu and he decided to see the report for
    Andrapradesh so according to this logic he has to select first report and refresh the data for Andra and from there he has to come to 2nd report.
    totally 4 screen will be opened for seeing the two states report.
    So Some other alternative.......

  • Exchange 2013 EAC shows "error Sorry, your request couldn't be completed. Try deleting the cookies from your browser, and then sign in again. If the problem continues, contact your helpdesk."

    Hi,
    My Exchange 2013 Hybrid environment is at CU5 level. Multiple administrators have started experiencing the error message
    "error
    Sorry, your request couldn't be completed. Try deleting the cookies from your browser, and then sign in again. If the problem continues, contact your helpdesk."
    It only started two weeks ago and did not coincide with any infrastructure changes. The message occurs when clicking anything on the EAC GUI and it eventually allows you to perform the operation but only after the message
    pops up a few times.
    I have tried clearing the browser cookies, history, etc. Note that using the Office 365 EAC does not yield the same messages and it only happens in IE (IE 11).
    Thanks.

    Hi,
    From your description, please make sure that the "Require SSL" is checked in IIS Manager -> Sites -> Exchange Back End -> ECP -> SSL Settings.
    What's more, ensure that EAC site is added to the “Compatibility Mode”.
    Hope this can be helpful to you.
    Best regards,
    Amy Wang
    TechNet Community Support

  • Hello everybody, I need to update my ITunes on my MAC (laptop) to the newer version so I can then be able to update the latest updates for my Iphone-3G'S. I don't require a complete reinstall just need to be able to update it.What I have tried so far is I

    Hello everybody, Im trying to update my ITunes on my MAC (laptop) to the newer version so I can then be able to update the latest updates for my Iphone-3G. I don’t require a complete reinstall just need to be able to update my itunes.
    What I have tried so far is I had my MAC search for update’s and it said that I should update to (ITunes version  10 . 6 . 3 ) So I asked it to do the update but after 2hrs of waiting for it to download/update it then puts up a message saying the following- (In order to continue installation, please close the following application: ITunes).
    When I tried to do this another message comes up that says- (The update ITunes can’t be installed. The following install step failed: run preupgrade script for Apple mobile device support. Contact the software manufacturer for assistance.)
    I have also tried to run the update while having closed ITunes before I even start the update but the same problem happens after waiting about 2hrs.
    Some one that had the same problem said this might be happening in the older operating systems. But that does not make sense because surely Apple want customers who own a MAC and i-phone to still buy from iTunes.
    My MAC is about 4-5years old. I have a i-phone.3G, 
    Can anybody help me please and Thank you?

    Download iTunes using the tab at the top of this page. Then run the update with iTunes closed.

  • How can i back up voicemails on my pc and then be able to listen to them

    How can I back up voicemails to my PC and then be able to listen to them on my PC (click and play in quick-time or similar player vs storing in some type of unreadable file type)?  I have googled and the only solution seems to involve buying a program.  If so, what is the best program to purchase?

    3rd party software like this one http://www.wideanglesoftware.com/touchcopy/index.php

  • I'm trying to update my software to iTunes 10.5.2.  I click on the install button, click the Accept button, the software checks for updates, and then I am back at the original download screen.  I can't seem to get past this loop.  Any suggestions?

    I'm trying to update my software to iTunes 10.5.2.  I click on the install button, click the Accept button, the software checks for updates, and then I am back at the original download screen.  I can't seem to get past this loop.  Any suggestions?

    If I go through the setup that you suggested, won't I screw up the existing software on my system?
    No. The iTunes installer will first uninstall the existing version of iTunes and then put in the new one. (That's actually also what happens when you use Apple Software Update to install a new version ... it just doesn't show the uninstall phase like the iTunes64Setup.exe or iTunesSetup.exe does.)

  • How to display all tagged photos from the whole catalogue?

    Hi,
    I have been googleling around, but have not found the right information. I am trying to find all my tagged photos of all imported photos, but it would only show the tagged photos from a specific folder when I select that specific folder or from the timeline, in which I already knew that some tagged photos belong in those folders.
    My question is...how can I search tagged photos from the whole catalogue without going through the timeline or clicking each folder and subfolder to view them. I would like that the organizer display all tagged items from all my folders and subfolders at once.
    Sorry if this has been answered and I was not able to find the right forum or information.
    Many thanks in advance!
    Dreamy

    Thanks a lot!

  • Can i consolidate all of my comments to the top of the document for a summary and then have these linked to the position in the doc, using adobe reader on i pad?

    HI, can i consolidate all of my comments in a document to the top for quick review and then click on each ro jump to the posi in the text? I am using adobe reader for ipad. Thanks

    Hi Steve,
    Thanks.  I have it sussed.  I saved from Ipad to Acrobat.com, but the functionality in AC.com is crap so I download to hard drive and open with reader on my hard drive and that way can see the comments.  I'm sure there is a better way to do this so will keep playing around with it.
    Also, do you know how I can include my text comments in IPAD PDF in the search function of PDF reader for IPAD? Say for example I want to search for the word action through a 200 page document.  It won't search the comments as nothing found when I search through a scanned document.
    Thanks again,
    Graeme
    Perth WA

  • How do I completely delete firefox from my computer and then reload it without losing settings, background, toolbars, etc.?

    I need to completely remove Firefox from my computer and then reload it because the current one on my computer is compromised... I don't want to lose my settings, background, and toolbars if at all possible... my computer has been having a lot of problems for a long time, finally got a hacker and viruses removed but programs and apps are still having problems and all have suggested a compromised browser along with the browser itself having issues with "stop script", "not responding", freezing, crashing, and blue screen...

    See:
    * http://kb.mozillazine.org/Profile_backup
    You can transfer files from the old profile to that new profile (be careful not to copy corrupted files)<br />
    See:
    * http://kb.mozillazine.org/Transferring_data_to_a_new_profile_-_Firefox

Maybe you are looking for

  • Error while loading a String on a TextField

    Hi, I have a TextField set for Numeric values, now when I do setString () and pass a number as String it gives an error,. It works perfectly on a emulator but on the real device it gives a exception. I dont know the stacktrace beause I dont know how

  • How do I install Tiger on an external hard drive?

    I want to load and run apps from a second external hard drive. Can anyone tell me or point me in the right direction to get information on how to load tiger 10.4 on a second external hard drive? Thanks, Ed

  • Using AND for SELECT in MSAccess

    Hi, Anybody help me how to write SQL query using AND for MSAccess. When I am using the following query, It gives the error "Datatype mismatch in criteria expression". The field names in database are correct. String query="select [id] from Suppliers w

  • How to delete source system (popup window)

    Hi All, I want to delete the source system RSA1 - Source Systems - system and Delete but for every using "Transfer structure" i receive the popup information window and i have to confirm this window. It takes much time. Do you know anybody the anothe

  • Validate rman backups

    Hi, oracle 9.2.0.1 rman Incremental cumalative backups HI, i do incremental cumalative backups. Full Level 0 on friday, level 1 incremental done Mon - Thurs. i noticed that if i run a RESTORE DATABASE VALIDATE command, it checks/uses all the pieces t