I work on a report with Stimulsoft Report V2011.3
in my report I have a GroupHeaderBand that have 2 column for grouping data (like under)
{Tbl1.c1}{Tbl1.c2}
then i set Sort Direction equal to Descending (Sort Direction apply on whole of GroupHeaderBand, this means that the both of Tbl1.c1 & Tbl1.c2 are Descending)
but I want Tbl1.c1 be Desc & Tbl1.c2 be Asc.
how do that?
It's better to add two Group Headers with one column for each.
Related
I need to sort my column of matrix in decreasing order of dates. I there any option? check this image of matrix
I need to order from Jan-20 to Jan-19(this column is already sorted with dates column). Thanks in advance.
One solution is to add a new column to define the search order in the way you want, in this case by date descending. So if you add a custom column in your model like this:
You can use it to sort your matrix - select it, click your date column in the fields pane, click Sort by Column button in Modeling tab and select the newly added column:
This will reverse the order of the column headers in the matrix:
My purpose consist in to do sort ascending / descending the groups by its summary instead of their raw data as usual.
There is another similar issue about this, but the solution that was given, doesn't fit what I need.
Using that same fiddle as an example: https://fiddle.sencha.com/#fiddle/1im3, how can I do sort by the summary of 'Estimate' column, rearranging the grouped data by the 'Project' column?
I have a matrix in ssrs 2008 like below:
Reason #ofCancellations
[Reason] Count(Fields!CancelID.value)
It is working well. What I want is to sort this matrix based on the count columns in descending order. Normally, I was doing it by going Tablix propertoes -> Sorting. This time it does not let me write Count(Fields!CancelID.value) there, giving me error like Aggregations are not permitted while sorting a matrix. I prefer to do the sorting on the ssrs. Any advice would be appreciated.
Try setting the sorting in your Row Group. Go to Row Group pane and right click the group Reason.
Select Group properties... and go to Sorting tab. Add a new sorting by expression and select A-Z for ascending or Z-A for descending.
=Count(Fields!CancelID.value)
Let me know if this helps.
I have two tables in my report. Grouped on fields DatePaidFinancialYear and then SupplierName.
I have removed both sorts on the groups themselves. There is also no sort on the tablix.
I then have a COUNT IF in one table that does the following -
=Count(IIF(Fields!DaysLateCategory.Value = "Over10Days" , 1, Nothing))
and the below in the other
=Count(IIF(Fields!DaysLateCategory.Value = "Over30Days" , 1, Nothing))
This gives me below -
I want to sort so that the highest number is at the top. I can't work out how to do it.
When I try and sort by my counts via the Tablix - I get the following error -
A sort expression for the tablix 'Tablix5' includes an aggregate function. Aggregate functions cannot be used in data row sort expressions.
Please advise
IRC - you should remove the table sort and sort using the same expression on the Group properties
Excellent. I could have sworn I tried this but obviously not. All working now.
Thanks
I have this table:
When executed, it looks like:
This table is sorted by alphabetical order. I would like to sort it by the column named "No Vencido", which is generated in runtime combining 2 dimensions of a cube (one dimension is called "Class 1", the other dimension is called "value".
How can i sort a table by an autogenerated field?
Thanks
You can sort by any sort of expression - SSRS will quite happily sort something like two fields concatenated together:
=Fields!Class1.Value & Fields!value.Value
Just be careful to make sure the sorting is applied at the appropriate level to avoid unexpected, i.e. make sure you don't have different sorting expressions in any row group or detail group if not required.
If No Vencido is the grouping expression, apply the sorting at the group level.
If you don't want to sort on an expression, you can create a calculated field for each row in the dataset with the expression =Fields!Class1.Value & Fields!value.Value and group/sort on that calculated field as required.
Edit after comment
OK, I think you need to apply a sort expression like this to the groups that apply to the Top and Otros rows:
=Sum(IIf(Fields!Clase_1.Value = "No Vencido", Fields!Monto.Value, Nothing))
This is still sorting by the total Monto for each row group, but only considering the rows where Clase_1 is No Vencido.
Once this is set up sort by A-Z or Z-A as required.