Is it possible to populate a column with a parameter value(column name) passed on via an expression?
Edit:
I have a dataset that's getting its data from a stored procedure that's doing some pivots and pulling data from multiple databases. The problem is that some of the data is dynamic and can have unknown number of columns but I do know the max number of columns. The first five or so columns are static and I've already added those to the report.
What I'm trying to do is to create placeholder for a maximum number of columns and then only show/populate columns that the user picks (the user can also pick to show all).
Related
I have 2 datasets for two different tables/reports. A third dataset contains available values for my parameter. Both tables use this same parameter. I want both of my tables to be repeated per available value in the parameter. I want the tables to alternate, instead of just having one table repeated x times followed by the next table being repeated the same number of times. Is there a way to do this?SSRS report snippet
I tried putting the tablix in a list and grouping the list on the parameter values. This made the tablix repeat for each parameter value, but I can't add the second table to the list since it has a different dataset. The datasets are so different that it's hard to combine them into one.
I am generating a table in SSRS based on the selection made by the user on two filters: Filter1 and Filter2 (say). The table so displayed has 10 columns and I wish to add filter option listing all available values for that column for all 10 columns.
Basically, I am trying to replicate the Excel functionality of filtering down data on each and every column.
Please note that I tried creating a new data set and a parameter taking all distinct values for a particular variable. However, I am still not able to get the desired results by filter the tablix on that parameter
Is there a way I can do that?
You'd need to make a new dataset that is a smaller version of your main dataset. It would need to return all potential values for the column(s) you want to filter in a single column to be used in a parameter.
Without seeing the design of the report or the dataset itself it's quite hard to be more specific.
I have a large data set that holds the names and addresses of our customers. I need to allow the user to search this data set, however the user rarely has the key field necessary to make the search easy. They do however have three key values that will get them a reasonable subset to work with. They have the customer's last name, street and zip code. While this does not assure a single match, for the most part I should be in the less than 10 returns range. I am guessing most will only return 1 value.
I would like to have the user submit multiple lines of the three values and then return the appropriate values to user. I am looking at putting a new value in my table that has the three values concatenated, but I would have approximately 19 MM rows of data affected. I was wondering if there was some way with SSRS to submit an array variable with the three fields and then return multiple lines based on the values?
I am using SQL Server 2012 as the database.
Yes like BishNabo wrote, In your SQL just add the below structure with your field and table names. I've wrapped #var in wildcards to allow for partial values. This format requires all three to be submitted by the user.
Where tbl.fld_LName LIKE '%#LastName%' and tbl.fld_StreetName LIKE '%#Street%' and tbl.fld_ZipCode LIKE '%#Zip%'
https://social.msdn.microsoft.com/Forums/sqlserver/en-US/d6952bd0-af17-403f-8402-02759a9517fb/execute-tsql-on-ssrs-2012-with-3-parameters?forum=transactsql
I have a Matrix report in which the user can select a list of columns related to a particular table using a parameter. I need to rearrange the columns. I'm dealing with dynamic columns so i can't do it in designer mode.
I'm able to move & swap a single column by using two parameters one is to select a particular column we want to move and other parameter is to select a column that my desired column need to place after/before this column. For this I have created a Stored Procedure. It works fine.
Is it possible to rearrange multiple columns before viewing the report?
make the sort order of a the column group a calculated statement using the parameters to determine the sort order
I have a database that has a bunch of survey data that I would like to work with. For several questions, the values are things like "Very important","Not at all likely" and I want to create a calculated field to assign a numeric value to these responses.
I don't want to replace the responses at all since I am going to have a user fill out a form to append the data set. I do want to have a calculated field that will automatically assign a numeric value to a text response.
I would just use a vlookup or an IF function in Excel to do this, but the problem is that Excel can't handle as much data as Access can. I need to set it up so that all Excel will house is a pivot table from the Access database.
Could anyone please tell me if there is a good way to do this? I am just not sure how to do it.
Create a new table with 2 columns: user_value (text) and numeric_value (number). Get all of the user entered values uniquely from the user entered data table with a query (the sigma symbol gives you a group by query). Put these in your new table and assign a numerical value to them. Then you can create an output query which joins your data to the lookup table and retrieves the numerical value for each user entered value.