SSRS table report based on parameter

Hi ,
I have @EMP parameter in ssrs report, for every employee there are ticket numbers. For one one Employee there may be two or three tickets. When I select @EMP1 in parameter a table will be displayed and on top of table ticket number is coming.If there are
2 tickets for the same employee , two tables( table1,Table2) should come and the ticket numbers come ticket1 on table1 and ticket2 on table2 should come ...means based on the parameter slection the ticket numbers are coming and as per the number
of tickets the cout of tables are coming....please help me in this .......I am using SQl not MDX :)

Hi,
According to your description, every employee have different tickets. Now you want to set a parameter, when you select one value from parameter, tickets of employee will appears in different tables separately.
In this scenario, we can’t create a textbox out of a list, which can make ticket numbers dynamically appear on top of table based on parameter selection. However, we can combined a matrix with a list. Then create two parameters to select different values
to show different tickets for same employee in different tables separately. Please refer to steps below:
1. Add DataSet1, fill in with Employee, Ticket and Number.
2. Add Dataset2, use query like below:
       Select distinct Employee from tic
    Use query in Dataset3 like below:  
       Select distinct Ticket from tic
3. Add parameter @Employee, open Report Parameter Properties. On General page, choose “Allow multiple values” box. On available Values page, choose Get values from a query, set Dataset as DataSet2, Value filed as Employee, Label filed as employee. Add
parameter @Ticket in the same way.
4. Create a table, right click [Employee], choose Add group->Row groups->Parent group. In Group by box, choose Employee. Choose Add group header and add group footer boxes.
5. Delete original Employee column. Right click [Employee], choose Split cells. Delete second row and forth row.
6. Create a matrix, fill in with Employee, Ticket and Number.
7. Create a list, drop the matrix into list. Right click anywhere in list, choose Select->Tablix3 to select list. On Properties, set DataSetName  as DataSet1.
8. On Row Groups, choose Add Group->Parent Group from drop-list of (Details1). On Tablix group, choose [Ticket] from drop-list of Group by box. Looks like below:
9. Click Preview, select different value from drop-list of parameters. The results look like below:
Reference: Lists (Report Builder and SSRS)
If you have any question, please feel free to ask.
Best regards,
Qiuyun Yu

Similar Messages

  • How to find ECC tables/ reports based on which a DB View is created?

    Hi All,
    We have customized data source created based on a View/ Table.   How can i find the ECC tables/ reports based on which this View has been created and also the logic behind which the different fields extract data from ECC..
    Please advice.
    Thanks & Regards
    Sneha

    Hi Sneha,
    The only logic, i guess, that could be used is either defining the join fields or some restriction put in the selection conditions tab of the view. for e.g. if the view should only return Doc type XYZ, the same could be implemented in selection conditions tab. for transaction to check the view, it was already posted above.

  • Report based on parameter values

    Morning all,
    I have to create a report which includes Account Number, Account Name, Sales prices. There has to be two optional parameters, Account number (Static) and Product Description (Dynamic).
    I have setup the report with Account Number (Grouped), Account Name. The report works fine, when a user selects a particular account number, the report produces fine.
    Things I would like to do and know about:
    1: when it comes to sales price, it should reflect to what user has selected under Product Description parameter.
    for example if the user has selected Supra, Supra KNT, Rimless, Metal etc from the description parameter, the report should only show those selected prices according to the account number (showing descriptive field value).
    2: Additionally, if user chooses all of the options from the drop down menu (multiple selection dexcription parameter) then the report should show all the prices according to the description (showing the description field value).
    The problem in this case which I think would be is because the description values are quite alot, I mean more than 25 values and if a user selects multiple values, lets say all, how would Crystal adjust that into a report?
    Example of a report
    Parameters
    =============
    Account Number:
    Description: Supra, Supra KNT, Metal, Plastic, Rimless, Rimless KNT (multiple selection)
    Report Layout
    ============
    Account Number --- Account Name --- Supra - Supra KNT - Metal - Plastic - Rimless - Rimless KNT
    (Where Supra to Rimless KNT options are chosen by Descriptive parameter value - if not chosen then report will only show account number and account name).
    If however only Supra is selected then the report would look like this
    Report Layout
    ============
    Account Number --- Account Name --- Supra
    Any ideas how to achieve this kind of report? I have setup the report in a landscape so that we can fit as many description values as possible but I only managed to show 9, rest goes over the page.
    The report in the end has to be exported to excel so I don't mind if it goes over a page.
    Regards
    Jehanzeb

    Jehanzeb,
    You do want to use cross tabs...
    Have your database query produce a table with the following columns:
    Account Info (Number & Name)
    Product Description
    Sales
    e.g.,
    Select AcctNo + " - " + AcctName as AcctInfo,
       ProdDesc,
       sum(Sales) as Sales
    from SalesTable
    group by AcctNo, AcctName, ProdDesc
    Then use record selection to limit the data to the selected products.
    Yes, the layout of a cross tab is a bit strange, in that the design of the cross tab only shows one column for the data, but the table will expand with the underlying data.  If 4 products are selected, there will be 4 columns of sales numbers.  When setting up the cross tab, make the AcctInfo field the row header, and the ProdDesc field the column header, and the Sales field the table cell value.
    HTH,
    Carl

  • Show new page table record based on parameter value in first page in ADF

    I have to show a selected record on a new page whose input query value is in first page. For example I choose to edit an order id  by selecting order id and then pressing Edit Record button then in new page selected order record should show. I am working in ADF JSF pages. I can pass parameter from one page to another by pageFlowScope. but how to display selected record on next page.

    any one to help. I want to use an input parameter on first page to edit the table on new page

  • SSRS Matrix report to show or hide year column based on parameter value "Date" selected.

    Hey experts!
    I have a requirement an ssrs matrix report should display columns (year/s) based on parameter value (date/s). 
    My Dataset fileds are: Product, Year_name, Month_name, Date
    Currently my report output looks like this-
    Param Date: 2013-08-01 00:00:0.000
    Product +Calender2011      +Calender2012     -Calender 2013........                        +Calender2014
                             Total
                      Total Jan13  Feb 13  Mar13..  Dec13   Total           Total
    Abc                      100
                        220
    10      20         30.......  20       250              400
    Xyz 110
    200 50      80         40.......  30       450              600
    My requirement:  if I'm selecting Date parameter value as '2013-xx-xx' I should only able to see Year column 'Calender2013' and rest of the years should hide. Similarly If I'm selecting Date parameter value as '2014-xx-xx' I should only able to
    see Year column 'Calender2014' .
    Appreciate your kindly help. 
    Afan

    Hi Afan,
    According to your description, you want to only show the selected year on your report, right?
    In this case, you need to get the year from the date parameter using the expression below
    =Year(Parameters!Date.Value)
    And then use the expression below to get the year from Year_Name field.
    =Right(Fields!Year_Name.Value,4)
    Then add a filter to the dataset to filter the data like below
    Expression:=Year(Parameters!Date.Value)
    Operator:=
    Value:=Right(Fields!Year_Name.Value,4)
    Reference
    http://msdn.microsoft.com/en-IN/library/dd255287.aspx
    If you have any questions, please feel free to ask.
    Regards,
    Charlie Liao
    TechNet Community Support

  • Pass parameter to ssrs report based on cube

    hi folks:
      I am working on a weekly report based on cube. Users are able to pull out data by themselves using excel. Now they want this to be scheduled to run on a weekly basis via SSRS. The date hierarchy (date.calendar)  is like this: Year -> Quarter
    -> Month -> Week
     I want users to be able to pick any week (only one week) they want and run the report.  I understand I need to create a parameter @week .
    The problem is how to populate this parameter @week in mdx since the source is a cube db.
     Any idea?
     Thanks
     Hui
    --Currently using Reporting Service 2000; Visual Studio .NET 2003; Visual Source Safe SSIS 2008 SSAS 2008, SVN --

    Thanks Charlie, your solution is pretty close now. When I try out the shareddataset via cube, I found the following statement in the query via query designer:
    WHERE ( [Checkoutdate].[Fiscal Year Calendar].[Week].&[23]&[2014]&[2]&[6] )
    23 is the week no, 2014 is the year, 2 is the quarter and 6 is the month. I intend to create 4 parameters so that users could pick year, quarter , month and week. 
    The question here is the sequence, do I have to strictly follow the sequence  [week - year - quarter - month] or it doesn't matter? 
    SELECT {STRTOMEMBER("[Date].[Calendar Weeks].[Calendar Week].&["+@Week+"]&["+@Year+"]&["+@quarter+"]&["+@month+"]
    ")} ON 0
    or can I go like this as it's more intuitive:  
    SELECT {STRTOMEMBER("[Date].[Calendar Weeks].[Calendar Week].&["+@year+"]&["+@quarter+"]&["+@month+"]&["+@week+"]
    ")} ON 0
    --Currently using Reporting Service 2000; Visual Studio .NET 2003; Visual Source Safe SSIS 2008 SSAS 2008, SVN --

  • SSRS 2008 - hide chart lines based on parameter selected

    How to control visibility of chart lines based on Params selected by user?
    By default, my report display last 3 years worth of data (including current) with Month on the x axis and Counts on the y axis. I have two Boolean parameters:
    TwoYrs? T/F
    ThreeYrs? T/F
    if False is selected for TwoYr and ThreeYr parameters then I want to hide chart lines corresponding to last year and the year before.
    What I've tried: Created 3 Series groups with filters. eg. YearSeries1 to return only current year data and applying an expression to display it if params TwoYrs and ThreeYrs = False. and so on for YearSeries2 to return current + last
    years data if param TwoYrs is True and ThreeYrs = False.  But I don't see where to add expression to control the display of the individual series groups.  I am open to any way of doing this, but this seemed most logical.

    Hi Ok-Hee,
    In your Source Query just need to filter the series data based on the Parameters.
    I have written sample query below:-
    select * from
    select 1 monthnumber , 'Jan' MonthName, 2013 year,100 amount
    union
    select 1 monthnumber , 'Jan' MonthName, 2014 year ,200 amount
    union
    select 1 monthnumber , 'Jan' MonthName, 2015 year , 300 amount
    union
    select 2 monthnumber , 'Feb' MonthName, 2013 year, 300 amount
    union
    select 2 monthnumber , 'Feb' MonthName, 2014 year, 350 amount
    union
    select 2 monthnumber , 'Feb' MonthName, 2015 year,200 amount
    union
    select 3 monthnumber , 'Mar' MonthName, 2013 year, 380 amount
    union
    select 3 monthnumber , 'Mar' MonthName, 2014 year, 100 amount
    union
    select 3 monthnumber , 'Mar' MonthName, 2015 year, 500 amount
    )t
    where year in (
    select distinct FilterYear from
    select case when @TwoYrs=1 then year(getdate())-1 else year(getdate()) end FilterYear
    union
    select case when @TwoYrs=1 and @ThreeYrs =1 then year(getdate())-2 else year(getdate()) end FilterYear
    union
    select year(getdate()) FilterYear
    ) t
    I have created one post in my blog , you can check the result.
    https://msbitips.wordpress.com/2015/03/12/ssrs-2008-hide-chart-lines-based-on-parameter-selected/
    Thanks
    Prasad

  • Generating an  html report based on table at sql 2005 db

    Hi
    I want to create an html report based on a table named inventory on sql server 2005 database.
    first code used to generate an output report
        try {
                // TODO add your handling code here:
                String s = "<html> <body> <table border=1><caption> Inventory Report </caption>";
                s += "<tr><td>Item_id<td>item_name<td>Existing quantity</td><tr><td>3<td>4<td> <td>";
                byte[] sb = s.getBytes();
                FileOutputStream fs = null;
                try {
                    fs = new FileOutputStream("D:\\Report\\Report.html");
                } catch (FileNotFoundException ex) {
                    Logger.getLogger(mileshframe.class.getName()).log(Level.SEVERE, null, ex);
                fs.write(sb);
                fs.close();
            } catch (IOException ex) {
                Logger.getLogger(mileshframe.class.getName()).log(Level.SEVERE, null, ex);
    Second jdbc  code for connection and select all records in the table
    try {
                Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
                 con = DriverManager.getConnection("jdbc:odbc:MerchandiseCon","sa","sql123#");
                st = con.createStatement( );
    ResultSet rset=st.executeQuery("Select Item_code,Item_Name,item_cost,item_quantity  from Inventory");
         String s="";
    while(rset.next())
        s+=(rset.getString(1)+"\t\t"+rset.getString(2)+"\t"+rset.getString(3)+"\t"+rset.getString(4)+"\n");
          st.close();
                con.close();
         catch(ClassNotFoundException ex)
             ex.printStackTrace();
          catch(SQLException ex)
             ex.printStackTrace();
            }                             I want someone helps me to merge two codes into one code to generate an output html report.
    thanks in advance

    This is my trial but not the desired result ,it's displayed the title and a line only
        private void jButton2ActionPerformed(java.awt.event.ActionEvent evt) {                                        
            // TODO add your handling code here:
                          String s = "<html> <body> <table border=1> <caption>Report title</caption>";
                byte[] sb = s.getBytes();
                FileOutputStream fs = null;
                try {
                // TODO add your handling code here:
                try {
                    fs = new FileOutputStream("D:\\Report\\myeport.html");
                } catch (FileNotFoundException ex) {
                    Logger.getLogger(NewJFrame.class.getName()).log(Level.SEVERE, null, ex);
                fs.write(sb);
                fs.close();
            } catch (IOException ex) {
                Logger.getLogger(NewJFrame.class.getName()).log(Level.SEVERE, null, ex);
                try {
                Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
                 con = DriverManager.getConnection("jdbc:odbc:MerchandiseCon","sa","sql123#");
                st = con.createStatement( );
    ResultSet rset=st.executeQuery("Select Item_code,Item_Name,item_cost,item_quantity  from Inventory");
    while(rset.next())
                   s+=("<tr><td>"+rset.getString("Item_Code")+"</td><td>"+rset.getString("Item_Name")+"</td><td>"+rset.getString("item_cost")+"</td><td>"+rset.getString("item_quantity")+"</td></tr>");
                try {
                // TODO add your handling code here:
                try {
                    fs = new FileOutputStream("D:\\Report\\myeport.html");
                } catch (FileNotFoundException ex) {
                    Logger.getLogger(NewJFrame.class.getName()).log(Level.SEVERE, null, ex);
                fs.write(sb);
                fs.close();
            } catch (IOException ex) {
                Logger.getLogger(NewJFrame.class.getName()).log(Level.SEVERE, null, ex);
         st.close();
                con.close();
         catch(ClassNotFoundException ex)
             ex.printStackTrace();
          catch(SQLException ex)
             ex.printStackTrace();
        }

  • Building a JSP-based Web Report with a Parameter Form

    Hi,
    I tried in building a report as shown in the example in OTN under reports in the url
    http://otn.oracle.com/products/reports/htdocs/getstart/examples/ParameterFormJSP/index.html
    i.e for Building a JSP-based Web Report with a Parameter Form. The directions in this document were not clear and if any one document which is clear with instruction will be useful to me. In this example it is shown with search criteria with sigle text box and if any one had idea & code to place an combo box and population of the record group in the combo box.
    Thank you in advance.

    hi,
    we will be releasing a new example w.r.t creating a parameter form using the reports JSP within the next month.
    as for your request for a combo box. this widget is not available via regular HTML form elements. you can either have a select list or dropdown list.
    for a regular select list you would use the following (only pseudo-code)
    <select ...>
    <rw:foreach>
    <option value="<rw:field .../>">
    </rw:foreach>
    </select>
    to populate a select list.
    regards,
    philipp

  • I have SSRS parametarized report in that one data set have repeated values with query parameter . but while am mapping that query parameter to report parameter i need to pass distinct values. How can i resolve this

    I have SSRS parametarized report in that one data set have repeated values with query parameter . but while am mapping that query
    parameter to report parameter i need to pass distinct values. How can i resolve this

    Hi nancharaiah,
    If I understand correctly, you want to pass distinct values to report parameter. In Reporting Service, there are only three methods for parameter's Available Values:
    None
    Specify values
    Get values from a query
    If we utilize the third option that get values from a dataset query, then the all available values are from the returns of the dataset. So if we want to pass distinct values from a dataset, we need to make the dataset returns distinct values. The following
    sample is for your reference:
    Select distinct field_name  from table_name
    If you have any other questions, please feel free to ask.
    Thanks,
    Katherine Xiong
    Katherine Xiong
    TechNet Community Support

  • Report based on two fact tables

    Hi,
    i've the same issue, of thread
    report based on 2 different Fact tables I've read reply marked as "CORRECT" but I don't understand what to do precisely. Can you explain better?
    How Can I create an alias?
    What about "If the dimensions are directly linked then mention detailed level else mention the total level which has no direct join b/w fact and dimension... "???
    I hope in your help. Thanks
    Thanks
    Giancarlo

    HI Daan,
    thanks for reply. Can you explain better point number 2?
    I have created an alias for my table (because i use MOLAP approach, i haven't a table but a cube view generated by View Generator Plug-in). Now what i must do with my alias table? Furthermore can you explain better point 2? Finally how i must create complex joins of my new fact table ?
    I am newbye of Administration Tool, so i would need of a visual explanation or of a step by step explanation. Can you give me it?
    I need of your help, because I must finish a project for my customer
    All regards
    Giancarlo
    Edited by: user5380662 on 27-mag-2010 5.07

  • T-code or SAP Table Sales report based on Document Pricing Procedure

    Hi Experts,
    Please suggest me some SAP Standard T-code or Sales Report based on Document Pricing Procedure and Sales Area.
    Or suggest me SAP Table for the above mentioned combination. Thanks in advance.
    With Best Regards,
    Bharat B

    Hi
    There is no standard t code available. You have to go for Zee using the below tables
    first you need to get the VBAK-KALSM(Pricing procedure)or VBRK-KALSM  next you have to pass the VBAK-KALSM to table T683V-KALSM(field) now you will get all the Document Pricing Procedures (KALVG) assigned to these pricing procedures along with sales area.
    So using these tables you can get the required data.
    regards
    Prashanth
    Edited by: Prashanth@SD on Jan 18, 2011 7:58 AM

  • Report based on plsql table type

    Is it possible crete a report (updatable) based on plsql table type?
    thank in advance
    Franco Galante

    Sorry for my cryptic question, i wanted to mean create a report based on a stored procedure
    function which return a plsql table type variable.
    This idea could give me the chance to work with variable (plsql table) instead of db table.
    hope i'm enough clear
    thank you again
    Franco Galante

  • Report based on Ref Cursor and lock package/table (ORA-04021)

    Hi,
    I have reports based on Ref Cursor. Report builder and Reports Background Engine make pins for package, which consist of Ref Cursor, and for tables, which is used in package. So I can't grant any privileges on these tables anybody.
    For example, after next statement:
    GRANT SELECT ON table_name TO user_name
    I received the next error:
    ORA-04021: timeout occurred while waiting to lock object table_name
    Thanks

    Hi,
    I have reports based on Ref Cursor. Report builder and Reports Background Engine make pins for package, which consist of Ref Cursor, and for tables, which is used in package. So I can't grant any privileges on these tables anybody.
    For example, after next statement:
    GRANT SELECT ON table_name TO user_name
    I received the next error:
    ORA-04021: timeout occurred while waiting to lock object table_name
    Thanks

  • Report based on 2 different Fact tables

    Hi all
    Is it possible to make a report based on 2 Fact tables wich are not linked to exactly the same dimensions?
    FactTable1 : linked to Time,Product,Geography
    FactTable2: linked to only Time
    The FactTable2 will contain only one measure which is a constant value per year and It will be used to be compared to the FactTable2's measure (It's a kind of reference).
    So do FactTable2 need to be linked to Geography and product to be able to create this report??
    Regards.

    I tried to set the level for the metrics...now it doesn't make the CAST anymore, but i get a result set bigger than i need...
    BI Server seems to make the union of 2 instead of the intersection...
    For example, if i have 5 customers, but only 2 customers have a service request (order) associated, then the server returns the following report
    Customer Code | Service Request Code | # asset(Fact 1) | # order (Fact2)
    0000001_________NULL_______________ 5____________ 0
    0000002_________NULL_______________ 4____________ 0
    0000003_____ 700000930______________ 3___________ 1
    0000004_____ 700000930______________ 3___________ 1
    0000005_________NULL_______________ 3____________ 0
    while my goal is to get just the list of customers having at least a service request (order)...
    I tried to create a filter on the column "Serve Request Code", but it doen't have effect, cuz the server lunchs 2 different sql queries to create the report:
    select D1.c3 as c1,
    D1.c2 as c2,
    D1.c1 as c3,
    D1.c4 as c4
    from
    (select D1.c1 as c1,
    D1.c2 as c2,
    D1.c3 as c3,
    D1.c4 as c4
    from
    (select count(distinct T111689.ROW_ID) as c1,
    T112015.SR_NUM as c2,
    T111844.OU_NUM as c3,
    T111844.ROW_ID as c4,
    ROW_NUMBER() OVER (PARTITION BY T111844.ROW_ID, T112015.SR_NUM ORDER BY T111844.ROW_ID ASC, T112015.SR_NUM ASC) as c5
    from
    CW_CASE T112015 /* Dim_CW_CASE_Case_Order */ ,
    CW_CUSTOMER T111844 /* Dim_CW_CUSTOMER_Customer_Order */ ,
    CW_ORDER T111689 /* Fact_CW_ORDER_Order */
    where ( T111689.ACCNT_ID = T111844.ROW_ID and T111689.SR_ID = T112015.ROW_ID and T111844.ROW_ID = T112015.CST_OU_ID )
    group by T111844.ROW_ID, T111844.OU_NUM, T112015.SR_NUM
    ) D1
    where ( D1.c5 = 1 )
    ) D1
    +++Administrator:330000:330001:----2009/02/04 14:42:22
    -------------------- Sending query to database named WBIP (id: <<901676>>):
    select D2.c2 as c1,
    D2.c1 as c2,
    D2.c3 as c3
    from
    (select D1.c1 as c1,
    D1.c2 as c2,
    D1.c3 as c3
    from
    (select count(distinct T149849.ROW_ID) as c1,
    T111844.OU_NUM as c2,
    T111844.ROW_ID as c3,
    ROW_NUMBER() OVER (PARTITION BY T111844.ROW_ID ORDER BY T111844.ROW_ID ASC) as c4
    from
    CW_CUSTOMER T111844 /* Dim_CW_CUSTOMER_Customer_Order */ ,
    CW_ASSET T149849 /* Fact_CW_ASSET_Asset */
    where ( T111844.ROW_ID = T149849.OWNER_ACCNT_ID )
    group by T111844.ROW_ID, T111844.OU_NUM
    ) D1
    where ( D1.c4 = 1 )
    ) D2
    thanks in advance,
    Nazza

Maybe you are looking for

  • What settings to export IMovie to PS3

    Hi, I have been trying to export my videos as MP4 for playback on my PS3, and I have had no success. Does anyone here know what settings in IMovie will allow playback of videos on the PS3? Thanks

  • Perform on commit

    Hi, can you show me an example of "perform on commit" with variables.

  • Custom operator for advanced search in OIM

    Hi All, We have two operators like Equals and Begin with in Advanced users search. I want to search with new operator, Can we add any other new operators Regards user7609

  • Ack for Idoc

    Can't getting get Acknowledgment once file is received R3 side?

  • Saving text and pics......... please

    hi ive a prob with object cerialization. some text and pictures are in the JTextPane and they have to be saved in file. in many books only few things are given about cerialization. please give me a link to sort out my problum. and any example if u ca