I want to sort my column numbers at report level in SSRS instead of my query as I have some other columns sorted at query level and doing both sorts at query level don't work well. At the moment I get Columns order like 1, 10,2,3,4,5,6 instead of 1,2,3,4,5,6...10. Once sorting is done I also want to add 'sales_' to the column name so I see sales_1, sales_2, sales_3 and so on. I understand this could be pretty straightforward but I'm new to SSRS. Thanks in advance.
1
There are 1 answers
Related Questions in SQL
- SQL schema for a fill-in-the-blank exercise
- Hibernate: JOIN inheritance question - why the need for two left joins
- What's supposed to be the problem in this query?
- Compare fields in two tables
- How to change woocomerce or full wordpress currency with value from USD to AUD
- Dynamic query creation with Array like implementation
- SQL query to get student enrolled in this month in a course - Moodle
- SQL LAG() function returning 0 for every row despite available previous rows
- Convert C# DateTime.Ticks to Bigquery DateTime Format
- Use row values from another table to select them as columns and establish relations between them (pivot table)
- SQL: Generate combination table based on source and destination column from same table
- how to use system's environnement variables in sql script
- PHP fetchAll on JOIN
- Multitable joining in Sql
- How to display name starting from 'z' by using BETWEEN cmd only?
Related Questions in SSRS-TABLIX
- SSRS Using the SWITCH Function To Change Font Color
- Hiding a grouped column in a SSRS report and when it’s exported to Excel
- Aligning Two Matrix Tables in SSRS Based on Matching Column Names
- Get Monthly Delta from Dynamic Date Field in Report Builder
- SSRS Display static rows on multiple pages for 2 different groups
- SSRS 2019 Can I limit the number of rows in a table and then move up to the top to show remaining rows for dataset?
- SSRS MS Dynamic Fetch Query Limitation
- Adding LookupSet expression on any column in SSRS adding duplicate row in the result
- IN SSRS How to get Current week Thursday date
- SSRS puts # in front of field name and scrambles the report columns
- SSRS Page Footer Containing Name of Row Group
- How can I display multiple details with a summary in RDLC?
- SSRS report showing blank row under hidden group row
- How to get the sum of some specific column values in a matrix table
- SSRS Parameter for Expression
Related Questions in SSRS-2014
- SQL Report Builder 2014 ignores Arial Font and Report uses Helvetica instead
- SSRS 2014 HTTP and HTTPS URL - Always error 401 for certain PCs. InPrivate/Incognito always works? Windows Authentication/NTLM/Web Browser issue
- How to make multiple group in 1 row in SQL Server Reporting Services - SSRS
- SSRS Mail Configuration
- How to implement find function of SSRS report viewer to search for accented characters also?
- Is there any way to search for accented characters in SSRS report viewer?
- SSRS: Trying to hide a Textbox and keep getting a data aggregation error
- SSRS 2014 Report Viewer not showing Export to Excel, Word buttons
- SSRS Report Builder Shortcuts
- SSRS: How can I "continue" rows to a second "column" and avoid wasting empty space?
- How to write an SSRS expression where one field is dependent upon the value of another field
- SQL Server Report Builder - Expression
- SSRS Report Interface Takes a Long Time to Load, Only in One Environment
- SSRS hide/show logic breaks in preview when running on server
- Report Builder not listing any fields from query using exec(@customquery) to output
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
The sort you are describing (1, 10,2,3,4) is a string sort, you need to convert the data type on that column to a numeric (in this case integer) type so that the sort is correct.
There are two solutions to this, you can add a calculated field to the record set, this can be helpful if you need to use this column multiple times, or you can simply use an expression for the sort order.
Edit the sort definition for the Tablix or group and select the field you want to sort on, to sort the way you would like the value needs to be numeric, we can use the CInt function to convert a value to an integer
For your second issue, use an expression in the field where you are displaying the data to concatenate the values, you can use the String.Format function or you can use simple string addition:
I hope this helps you on your way, welcome to SSRS!