SSRS Interactive Sorting by Value within multiple groups - how? - sorting

This should be easy but I can't seem to figure it out. All I want to do is be able to sort ascending/descending by Value across 4 groups. Here is my design...
This is the report (note that all the child groups are toggled by their parents)...
Toggling the sort widget doesn't do anything. I tried sorting by group but that just sorts the group values by alpha. Would appreciate some help with this.
Thanks!

It looks like you should check the radio button for Groups, then select your Product group and use sum(fields!ThisTotalValue.value) for the sort by expression.

I finally figured out what was holding me back. I based my sort expression on this expression: =Sum(Fields!MergedTotalValue.Value, "tbl_AUM_Summary")
rather than this one: [Sum(MergedTotalValue)]
Not sure why the former didn't work, though.

Related

Google Sheets - QUERY order by dependent drop down

I am trying to setup a QUERY with dynamic ordering. I've tried to link the ORDER BY function to the output of the dropdown menu but that doesnt seem to work. I have recreated the problem with a simple example: https://docs.google.com/spreadsheets/d/1m3Lhm5lp2DW7XF8hRbDAiOAAsOyCXrie-Nc-0bWG6hA/edit?usp=sharing
I've created a table (3x4) with three variable and would like to dynamically sort the table by each variable through QUERY both ascending and descending.
Would also be interested to learn if it's possible to dynamically setup the direction (ACS or DESC).
Any suggestions would be much appreciated.
Kind regards,
Webko
try:
=QUERY({A2:C6}, "order by Col"&MATCH(F1, A2:C2, 0)&" "&G1)
where G1 dropdown is asc,desc

Does Spotfire provide any simple way of creating an "Other" category to group entries within a filter?

Right now, I am using a filtering scheme which only looks at the data of the 5 or 6 most common entries in the 'Clinic' field. But, there are a handful of other possibilities which might account for a few rows each. They are too inconsequential to include on their own (I am using pie charts and bar charts), but I would like these rows to be accounted for. For this reason, I would like to create an "Other" category which groups these entries together. What is the best way of doing this? I know I can create a calculated column that groups everything aside from the top 5 or 6 in an other category, but I thought there might be a way to keep working with the original column and achieve the same result.
Unfortunately not. In 6.5.x you will have to write a case statement that will specify everything that is not most common to other.
In 7.0.x you can go to insert binned column. Add the bottom you can use values to create a bin. Add the values you want to the bin and call them "Other". Of course if you look at the column created like this, it is a case statement. But it is a whole lot faster than writing it yourself.
Following phiver I came out with this solution in Spotfire 6.5.2:
Add a calculated column
With something like this:
If(DenseRank(Count([Formation]) OVER ([Formation]),"desc")<10, DenseRank(Count([Formation]) OVER ([Formation]),"desc") & " " & [Formation], "10 Other")
Hope that helps.

Sorting the values in a listbox when using an expression in the sort tab in Qlikview

I want to know if anyone knows how to sort the values in a listbox in Qlikview, when one is forced to have an expression in the sort tab?
I had to use the same expression from the general tab in the sort tab
if(datakilde='Aarlig', Aktivitetsnavn)
Otherwise the listbox didn't show the associated values (from a selected value from another listbox) in the top of the listbox - which aren't very user friendly.
But as a consequence the sorting in alphabetic order is no longer works...
(And I had to have an expression in the general tab, becausecI only need a subset of the loaded data).
(I also tried with the option auto ascending in the state box under the sort tab).
See my sort tab below.
Kind Regards Maria
There are multiple solutions on this, but I think the correct one, would be to create a field in your datamodel, that contains just the values that need in the listbox.
Listboxes are not very good at filtering data. So take your if statement, and put it into the source table:
if(datakilde='Aarlig', Aktivitetsnavn) as Aktivitetsnavn_2
Then you don't have to struggle with filtering data in listboxes and your sorting will be correct.
i had similar problem while sorting a listbox with values filtered by an expression. I gave up on filtering in listbox and filtered in my load script. After that i was able to sort properly.
A solution for a similar situation I just had was the following:
I've loaded all Items that i needed sorted & filtered out in a separate table, for example:
zones:
LOAD * INLINE [
zone, **zone_order**
zone A, 1
zone D, 2
zone C, 3
zone B, 4
];
I've added my zone in the filter and in the Sort tab, i've chosen to sort by expression: zone_order, and that's it!

Reporting services - Interactive sort nulls last - Reportviewer VS2010

SSRS 2008
I've defined Interactive sort on a column that has also null values.
I want the nulls to always appear at the end of the report regardless of whether the
direction is Ascending or Descending.
Report is displayed by Reportviewer in VS2010
User clicks on column header to activate interactive sort
All help/suggestions are welcome.
I can think of one workaround here, which may or may not help, but at worst might give you more ideas.
What you can try doing is actually use two tables, and apply the sort to only one, but make it look like one table in the report.
Create two tables:
Apply filters to the tables to show non-null values in the first and null values in the second.
I used the expression:
=IIf(IsNothing(Fields!val2.Value), "NULL", "NOTNULL")
Apply Interactive Sorting to the first table.
This gives the results:
So in this simple case it's achieving what you're after.
Since it's actually two objects, you might get breaks in places users don't expect; this could be mitigated by keeping the objects together with a Rectangle.
If you're looking for multiple columns this might not be suitable, but hopefully it helps.

Qlikview chart sorting doesn't always work for users

I have several Qlikview charts that have interactive sorting enabled but the odd part is some columns can be sorted ascending or descending and others can only be sorted one way. Nothing happens if you click on the column again.
Each field has a proper sort defined, it looks like a bug - anyone else experience this?
Thanks
Dan
It happens often when on the sort tab of the properties it has selected more than one way of sorting for example you have a field that has sort as text and numeric value

Resources