Multiple column selection in ssrs report

Hi all
I am developing one report 
which would be based on column selection combo
what i want to achieve...
i will use Store procedure
and in my report i want multi select parameter called @Column_To_Select
i want available values for combobox as total column names which is return by store procedure
and when i select column1 is should only display column1 from tablix
can one help how can i get column names from store procedure 
Dilip Patil..

You cant alter dataset like this. metadata has to be constant for SSRS report to work properly.
I think your requirement should be implemented as follows. Always bring all columns from query inside dataset. Then in your report container (tablix/matrix) set an expression for columns visibility property to show only when select parameter value has the
column name.
The expression would be like below for hidden property each column
=IIF(InStr("," & Join(Parameters!Columnnames.Value,",") & ",",",ColumnName,")>0,False,True)
Please Mark This As Answer if it helps to solve the issue Visakh ---------------------------- http://visakhm.blogspot.com/ https://www.facebook.com/VmBlogs

Similar Messages

  • Multiple list data in SSRS reports.

    Dear All,
    I have develop simple SSRS report using SharePoint 2010 list.
    While creating SSRS report it's not allowing to select multiple list.
    How we can take multiple list data in SSRS report just like JOIN query?
    Thanks,
    Harish Patil

    Hi Harish Patil ,
    By default, a data region (table) may only reference one dataset,
    not two, making the combination of two datasets into a single table not possible in SQL Server 2008 R2. But, in production, sites using: dataviews, reports based on SharePoint List connection type, reports based
    on SQL Views of the SharePoint database and sites using bespoke/third-party charting web parts, all of these Report Mechanism are available for displaying the multiple list data.
    For more detail information, you can refer to the blogs:
    Reporting From SharePoint Lists and
    Step by Step: Consuming SharePoint 2010 Lists Data in the SSRS 2008 R2 Reports.
    And, SharePoint List Association Manager (SLAM)
    allows us to define relationships (one to one, one to many, many to many) between SharePoint lists (or Content Types) and then leverage those relationships in web parts or custom field types using familiar and straight forward SQL queries.
    Also,Enesys
    RS Data Extension is a Microsoft SQL Server Reporting Service Extension that lets us build reports from SharePoint lists data.
    Hope this helps!
    Best Regards,
    Eric
    Eric Tao
    TechNet Community Support

  • Unable to select the SSRS report parameters and execute the reports.

    Hi All,
    We have set of SSRS reports and are been published to SharePoint 2010.After that I have enabled Anonymous user access at SharPoint side,after enabling Anonymous user access no one is able to access the reports so I have removed Anonymous user access
    and the reports are working as normal in IE (internet explorer) but not working thorugh CITRIX (before Anonymous user access provided reports are working normal in CITRIX too), able to open welcome page of sharepoint and unable to select any parameters and
    unable to execute the rpeorts.
    Could you please suggest if you have any solutio as it is very urgent for me.
    Regards,
    Santosh
    Santosh

    Have you tried the basics, such as clearing the browser cache? Note that depending on the version of SSRS in use, Anonymous is not supported with SSRS.
    Trevor Seward
    Follow or contact me at...
    This post is my own opinion and does not necessarily reflect the opinion or view of Microsoft, its employees, or other MVPs.

  • Multiple column selection in OBIEE 11g

    I have multiple checkboxes each checkbox represent one of measure of my fact table
    Now user wants to select the multiple check boxes to generate a dashboard report on the basis of these selected check boxes.
    Report only show the selected measures how I can do that in OBIEE 11.1.1.5
    Actually I want to generate graph on the basis of selected measures.
    I have created all columns in my report but I show the data only for selected columns when I draw the graph
    All columns’ legend are shown I want to exclude all columns that are not selected so that their legends are also not shown in graph.
    How I can do that.

    user13559093 wrote:
    Hi david,
    I read your post, the one thing i couldn't understand is about dummy column and hiding.
    you told i can a new column and hide that column, but still i could't figured it out.
    so, if possible can you explain me in more detail.
    your help is appreciated.
    Thanks,
    Rahul@Amith, Venkat's blog is not what the user is looking for. It doesn't apply.
    Rahul, did you try what I asked? What specific part of what step did you not know what to do. My steps were detailed so I'm not sure what to "explain" unless you tell me exactly what you didn't get. If you didn't do anything and just want me to explain it again, then I say, do it first. The step-by-step instructions can be followed without "knowing what it's going to do," but when you do it, you'll see what I mean.
    Remember, this is a free forum. You are not paying me to help you so you need to show that you are doing your homework by testing what I say to do. So go back and read the post again and actually do the steps. If you don't know how to do a specifc step, then ask about that.
    This method will solve your requirement, put effort into applying it.

  • Dynamic column selection while running report

    Can any one explain how to get the following functionality in report:
    I have a cube with following fields:(with depriciaated amounts)
    Plant  Mat#  Fiscper       Jan   Feb  March April  May   June   July   Aug   Sep   Oct   Nov   Dec
    ==== ====    =====      ==== ==== ===== ==== ==== ===== ==== ==== ===== ==== ==== ====
    P1      M1     03/2009    $100    $90   $80   
    P1      M1     04/2009    $100    $90   $80     $70  
    P2      M2     04/2009     $10     $9      $8     
    P2      M2     04/2009     $10     $9      $8      $7
    When I run the report with Fiscper as selection, ie 04/2009, I shoud get the report displayed only April column
    Report out put: (Only April column should be displayed)
    Plant  Mat#  Fiscper       April
    ==== ====    =====       ====
    P1      M1     04/2009    $70      
    P2      M2     04/2009     $7
    When I run the report with Fiscper as selection, ie 03/2009, I shoud get the report displayed only March column
    Report out put: (Only March column should be displayed)
    Plant  Mat#  Fiscper       March
    ==== ====    =====       ====
    P1      M1     04/2009    $80      
    P2      M2     04/2009     $8
    Can any explain how to desing this in query designer?
    Thanks,
    PV

    create new selection
    drag and drop the kf
    drag and drop calmonth
    create formula variable for calmonth using type as "customer exit"
    now based on the fiscperiod you can fill calmonth in customer exit which will give you desired output
    you can use text variable if you want the heading for the KF to be dynamic.

  • Multiple Column selection in single selection

    I have made an report using Pivot table
    I have 6 Dim & 1 fact
    out of this I have placed 3 Dim in Pages tab of pivot table so that it will work like Prompt
    Now the user wants to swap the tables dynamically
    I have Column selector for this purpose but user has to select 6 tables which is not acceptable
    can I achive this with only one selection
    Hope I am clear on requirement
    Thanks & Regards
    Sameer

    Can you try the same using view selector, pull all columns in criteria based on the view use those columns per view.
    Pls mark if helps

  • Format with multiple column

    Post Author: vman
    CA Forum: General
    I am working a report that has had the details section format with multiple columns selected.  I want to change the report and remove the check box, but it is grayed out.  How can I get the report details section back to default without the detail size constraints?

    Post Author: rcoleman
    CA Forum: General
    Bearing in mind that I'm a relative newbie to the report writing/Crystal world...the only thing I can think of is that maybe the report was written using an older version of Crystal and this option wasn't available. Another possibility, if it's a sub-report, you might try making a copy of the sub-report saving it with the same name, deleting the old sub-report, replacing it with the copy you made. I know that has worked for me when I've had problems with the re-import when opening is greyed out.

  • How to run the same SSRS report multiple times, each time with a different parameter value?

    Hi,
    I have an SSRS report that produces a list of invoices for a single supplier (so supplier is a parameter specified at runtime). The report is based on a stored procedure in SQL. I would like to make things easier and instead of going through all suppliers
    one by one, I want to have a single action, which produces separate reports, per supplier, for all suppliers that have an outstanding invoice (so not all suppliers on the system as a whole but all suppliers that are within the result set of the stored procedure).
    I assume this would mean first executing the stored procedure to find all suppliers that have invoices at the time. And then running the report multiple times, once for each supplier, where the supplier value is used as the parameter every time. ideally
    this would open separate webpages with a single report per page. (I am creating a button in another software, which is simply launching iexplore.exe and passing a
    fixed SSRS report URL).
    What would be required? I have SQL 2012 and I am building this in Report Builder 3.0.
    Thank you!
    Dimitar
    P.S. What about still running ONE report, but every supplier starting on a new page? Is that more realistic? So supplier will not be a parameter any more, but just something that creates a new page on the report?

    What
    about still running ONE report, but every supplier starting on a new page? Is that more realistic? So supplier will not be a parameter any more, but just something that creates a new page on the report?
    Yes thats a much better option. Its very easy to generate such a report in SSRS. You dont need a parameter
    in that case but just needs to add Supplier as a grouping field in the tablix. Then add other columns and groups if required. Select option set page break after each instance of the group for first grouping (ie based on supplier field). Then report will render
    with one page per supplier. On exporting to excel also each supplier data goes to a different tab
    Here's a similar requirement I did for one of my projects
    http://visakhm.blogspot.in/2013/10/using-ssrs-to-export-sqlserver-data-to.html
    Please Mark This As Answer if it solved your issue
    Please Vote This As Helpful if it helps to solve your issue
    Visakh
    My Wiki User Page
    My MSDN Page
    My Personal Blog
    My Facebook Page

  • SSRS Report with mutli select values in parameters

    Hi All,
    I am creating a SSRS report and displaying the result in tablix. I want to make the report to filter by multi select values from the parameters.
    I have 3 parameters. For all the three parameters, I have set "Default  Values" and "Available Values". Also, modified my result dataset to get the values from parameters using "WHERE ID = @Parameter1" (example) and so
    on..
    3 Parameters types:   1. Yes or No       
    2. Date          3. Values with NULL in the DB
    Problems:
    1. When I am passing the default values "Yes" "No" - it is throwing errors because default values is passed as Yes "AND" No instead of "OR" condition. The value stored in the DB wil have either Yes or No but not both.
    2. When I am querying the date values, it is a DateTime field in the DB. But I have queried like SELECT CONVERT(DATE, EXE_DATE) AS DATE FROM table which is giving only date in SQL but in SSRS displaying date with time.
    3. When I pull the list of values for third Parameter from SQL, it has some NULL values. When I try to use it in SSRS, it is not displaying the NULL value as select option in the list of values
    Any suggestions for the above three problems for SSRS with multi select values as filter will be helpful.
    Maruthu | My Blog

    Hi Maruthi,
    Regarding the three things:
    1.) I believe your first parameter is mutliselect , please convert it to single select.
    Steps: 
    a.) Select the parameter, right click and go to parameter properties
                    b.) Under General Tab in DataType section remove the checkbox for Allow Multiple Value.
    2.) Instead of returning as the date please return string. For example : 
    SELECT CONVERT(VARCHAR, GETDATE(),101)
    Here is the list of conversion : http://www.sqlusa.com/bestpractices/datetimeconversion/
    3.) As such there is no concept of null in SSRS. (Its a relational concept) . We do have nothing , which means empty. In Order to use null please select the Allow null option in the DataType section of the Parameter, This will add an checkbox for null in
    the report preview. Its developer job to handle the null values in there query.
    Regards Harsh

  • How to hide columns in each page of SSRS report for grouped tablix

    Hello all,
    I have a requirement like when SSRS report (used row grouping)is exported to EXCEL
    1)  Each report page should be exported to a separate excel sheet
    2) Each sheet will have different columns (that is some columns will hide in sheet2, sheet3...)
    3) Eg: If a country report is there with details like country name, country code, currency code. Now each country details should export to separate excel sheet and sheet 1 should show Country Name and Country code; Sheet2 should show: Country Code, Currency
    Code; Sheet3 should show: Country Name, Country Code, Currency Code.
    I am done with point#1 above: Each report page should be exported to a separate excel sheet. Can some one help on point#2:Each sheet will have different columns (that is some columns will hide in sheet2, sheet3...)
    Thanks,
    Paandey : Dont forget to mark it as Answered if found useful

    Hi paandey,
    According to your description, there are three columns named country name, country code, currency code in the report. When export the report to excel, you want to show Country Name and Country code in sheet1, Country Code and Currency Code in sheet2, and
    show all of the three columns in sheet3.
    In Reporting Services, we couldn’t achieve your goal by setting visibility of columns in one tablix. As a workaround, we can use three tablix in the report, then add page break to the tablix. For detail information, please refer to the following steps:
     1. Since you have created a tablix with three column, copy and paste it to the report twice.
     2. Right-click column handle of Currency code in tablix1, click Column Visibility.
     3. Check Show or hide based on an expression, click (fx) button, then type the expression:
    =(Globals!RenderFormat.Name = “EXCELOPENXML”)
     4. Right-click column handle of Country name in tablix2, set its visibility like step3 above.
     5. Select and right-click tablix2, click Tablix Properties.
     6. In General pane, in Page Break Options section, check Add a page break before check box.
     7. Click Visibility in left pane, check Show or hide based on an expression, click (fx) button, then type the expression:
    =(Globals!RenderFormat.Name <> “EXCELOPENXML”)
     8. Select and right-click tablix3, add page break to it like step6 above.
     9. Set its visibility like step7 above.
    The following screenshot is for your reference:
    For more information, please refer to the following document:
    http://blogs.msdn.com/b/robertbruckner/archive/2010/05/16/report-design-naming-excel-worksheets.aspx
    If you have any more questions, please feel free to ask.
    Best Regards,
    Wendy Fu

  • Multiple Column Report Question

    Post Author: LCS213
    CA Forum: Crystal Reports
    I'm creating a student transcript report that has multiple columns, and is three groups deep.  The first two groups need to be in a columnar layout. However, I'd like the third group to contain a subreport that spans the width of the entire page. 
    Are there any options within Crystal XI to do this?  I know in the Section Expert, i can format the detail level with multiple columns, and on the Layout tab, I can select "Format Groups with multiple columns".  But that seems like it either formats ALL groups or NO groups.  Am I mistaken?  Is there a workaround I'm missing?
    Thanks in advance for any help on this issue!

    Hi Dan,
    According to your description, we are not clear about the “6 sections for each Additional task”. Do you mean six data records? If so, based on my understanding, there are three groups and eighteen records in your report. You want to make those records appear
    on eighteen separated pages, right?
    In Reporting Service, we can add a page break to groups within data regions to control the amount of information on each page. In your scenario, you should add page break to group “Sub task”, group “Additional Task” and details. As we tested in our environment,
    add page break to these records, the report appears in eighteen pages. Please refer to steps below:
    1.On Group Properties of Details1, choose “Between each instance of a group” option on Page Breaks page. Please refer to screenshot below:
     Choose same option on Group Properties for group “Month” and “Name”.
    2.Click drop-down button next to Column Groups, then choose Advanced Mode.
    3.Click on Static under Row Groups, set RepeatOnNewPage as True in Tablix Member Properties.
    4.Click Preview, the results before and after adding page break look like below:
    If you still have any question, please post some detail information or screenshot about the report design you expect.
    Best regards,
    Qiuyun Yu

  • How to query XML file RDL SSRS Report to find column titles?

    I have list of SSRS reports  theirRDL file. How can we query the file to find like text book name as below(  <Textbox Name="bippie_passed_qa_photostamps_orders_amount">). Catlog t able in report server does not provide column title
    but i am trying to find column title through RDL file. How can we query in SQL server 2012 version too? I am new in XML please help is appreciated.
      </Textbox>
                      </CellContents>
                    </TablixCell>
                    <TablixCell>
                      <CellContents>
                        <Textbox Name="bippie_passed_qa_photostamps_orders_amount">
                          <CanGrow>true</CanGrow>
                          <KeepTogether>true</KeepTogether>
                          <Paragraphs>
                            <Paragraph>
                              <TextRuns>
                                <TextRun>
                                  <Value>=Fields!bippie_passed_qa_photostamps_orders_amount.Value</Value>
                                  <Style>
                                    <FontSize>8pt</FontSize>
                                    <Format>'$'#,0.00;('$'#,0.00);''</Format>
                                  </Style>
                                </TextRun>
                              </TextRuns>
                              <Style>
                                <TextAlign>Right</TextAlign>

    You will first need to get your report XML from the dbo.Catalog table but something like this should work:
    -- !!TODO get your report XML from the dbo.Catalog table
    DECLARE @ssrsXML TABLE ( yourXML XML )
    INSERT INTO @ssrsXML
    SELECT '<TablixCell>
    <CellContents>
    <Textbox Name="bippie_passed_qa_photostamps_orders_amount">
    <CanGrow>true</CanGrow>
    <KeepTogether>true</KeepTogether>
    <Paragraphs>
    <Paragraph>
    <TextRuns>
    <TextRun>
    <Value>=Fields!bippie_passed_qa_photostamps_orders_amount.Value</Value>
    <Style>
    <FontSize>8pt</FontSize>
    <Format>''$''#,0.00;(''$''#,0.00);''''</Format>
    </Style>
    </TextRun>
    </TextRuns>
    <Style>
    <TextAlign>Right</TextAlign>
    </Style>
    </Paragraph>
    </Paragraphs>
    </Textbox>
    </CellContents>
    </TablixCell>'
    SELECT t.*, c.c.value('@Name', 'VARCHAR(100)' ) nameProperty
    FROM @ssrsXML t
    CROSS APPLY yourXML.nodes('//TablixCell/CellContents/Textbox' ) c(c)

  • SAPGUI JAVA 7.10 (OSX 10.5.1): cannot select multiple columns in ALV

    Hi,
    in sapgui java 7.10 (on mac osx 10.5.1) I cannot select multiple columns in ALV reports.
    I can do it only in some transactions (like SE16). But on all our custom reports (REUSE_ALV_GRID_DISPLAY) in does not work.
    Any hint?
    Many thanks,
    Lorenzo

    Hi Lorenzo,
    did you double check if selecting multiple columns works with SAP GUI for Windows in the same report?
    If yes, I suggest to file a bug report so we can do a remote logon to run your custom report.
    If not it might be because of REUSE_ALV_GRID_DISPLAY itself or your parameters calling REUSE_ALV_GRID_DISPLAY.
    Best regards
    Rolf-Martin

  • How to create  some columns dynamically in the report designer depending upon the input selection

    Post Author: ekta
    CA Forum: Crystal Reports
    how  to create  some columns dynamically in the report designer depending upon the input selection 
    how  export  this dynamic  report in (pdf , xls,doc and rtf format)
    report format is as below:
    Element Codes
    1
    16
    14
    11
    19
    10
    2
    3
    Employee nos.
    Employee Name
    Normal
    RDO
    WC
    Breveavement
    LWOP
    Sick
    Carers leave
    AL
    O/T 1.5
    O/T 2.0
    Total Hours
    000004
    PHAN , Hanh Huynh
    68.40
    7.60
    76.00
    000010
    I , Jungue
    68.40
    7.60
    2.00
    5.00
    76.00
    000022
    GARFINKEL , Hersch
    66.30
    7.60
    2.10
    76.00
    In the above report first column and the last columns are fixed and the other columns are dynamic depending upon the input selection:
    if input selection is Normal and RDO then only 2 columns w'd be created and the other 2 fixed columns.
    Can anybody help me how do I design such report....
    Thanks

    Hi Developer life,
    According to your description that you want to dynamically increase and decrease the numbers of the columns in the table, right?
    As Jason A Long mentioned that we can use the matrix to do this and put the year field in the column group, amount fields(Numric  values) in the details,  add  an filter to filter the data base on this column group, but if
    the data in the DB not suitable to add to the matrix directly, you can use the unpivot function to turn the column name of year to a single row and then you can add it in the column group.
    If there are too many columns in the column group, it will fit the page size automatically and display the extra columns in the next page.
    Similar threads with details steps for your reference:
    https://social.technet.microsoft.com/Forums/en-US/339965a1-8cca-41d8-83ef-c2548050799a/ssrs-dataset-column-metadata-dynamic-update?forum=sqlreportings 
    If your still have any problem, please try to provide us more details information, such as the data structure in the DB and the table structure you are currently designing.
    Any question, please feel free to let me know.
    Best Regards
    Vicky Liu

  • Multiple Column Header in Report (BEx and Web Reporting)

    Hi All,
            I've a requirement where my reports is having multiple column header.
       To be precise the column header is further divided into many sub-columns (upto 4 levels).
    Structure cannot help in this case since we have more than 2 such columns and we are using web reporting as well.
    Here is how it looks
                             <b>Header-A</b>
    Header-B1   |   Header-B2   |   Header-B3    |  Header-Bn
    Hdr-C1 |Hdr-C2 |Hdr-D1 |Hdr-D2 |Hdr-E1 |Hdr-E2 |Hdr-Fn..
    The above is a sample header structure.
    This report will be a Web Based report and I need to know whether its possible to do it in BEx also.
    We are not using Crystal Reports.
    If there is any document related to this, please mail to
    [email protected]
    Thanks & Regards,
    Chandran Ganesan

    Hi Chandran,
    I hope i am getting your problem right.
    If your
    Header-B1 | Header-B2 | Header-B3 | Header-Bn
    Hdr-C1 |Hdr-C2 |Hdr-D1 |Hdr-D2 |Hdr-E1 |Hdr-E2 |Hdr-Fn..
    are a set of key figures, then there is an option.
    For example:
    You drag Header-B1,Hdr-C1 |Hdr-C2
    into column section.Right click on Hdr-C1, Hdr-C2 and select down under. So your Hdr-C1, Hdr-C2 will be under
    Header-B1.
    Like wise drag Header-B2,Hdr-D1,Hdr-D2
    Right click on Hdr-D1,Hdr-D2 and say Down under and these two will fit below Header-B2.
    You can repeat the above steps for Header-B3... Header-Bn
    The output will be same as the one you have specified above.
    Hope it helps,
    Regards,
    Parth.

Maybe you are looking for

  • View for music on itunes

    I found an album that I have been looking for on itunes. I wish to buy this album, but itunes dos not give an option to but the whole album. Instead there is a tab with the word "view" on it. When I click the tab, A list of all of the tracks comes up

  • Where is 'Photo Stream' in iPhoto 9.4 ?

    Where is 'Photo Stream' in iPhoto 9.4 ? No longer iCloud synchronisation with iPhoto 9.4 Any ideas. Greatings.

  • How to define a parallel, deterministic pl/sql function in OWB 11.2?

    Hi, at my customer site, we are starting with the new development work after upgrading from OWB 10.2 to 11.2 and we can't find the configuration parameter to define a parallel and deterministic function within a new package. The "old" function dialog

  • Trying to include an applet in a JSP page

    Hello, I have a jsp page trying to include an applet class in it. Both of them are part of a war file put on an apache server. The directories tree looks like this : root MyJSPPage.jsp WEB-INF classes MyDir MySubDir MyApplet.class In MyJSPPage.jsp, t

  • Photos on iPad - where I can see the Filename?

    I have Photos on my iPad, but I can´t see the filename from the Photo, but the filename is very imortant for me. Is there a chance? Pit