Multiple Sorts

I'm trying to build a report that allows the user to select
the sort order. I was able to do this in Crystal Reports by using
several sort fields and moving data into them as needed to satisfy
the requested sort. I would always sort on all the fields, but
sometimes the fields would be blank and therefore basically
ignored. For example, I want to allow the user to sort by year,
location and SSN, or by year, location, and name. Year and location
were database fields and always populated, whereas SSN and name
were calculated fields. I would populate either SSN or name only if
that was actually to be used in the sort, otherwise it would be
blank.
I tried this in Report Builder using the advanced option in
the query builder. I entered the 2 calculated fields into the order
by statement, it was even nice enough to show the calculated fields
in a dropdown box. However, when I tried to preview the report I
got an error "Table or alias not found: calc -- Location of error
in the SQL statement is: 119 ".
Should this approach have worked? Is there another way to
accomplish this?
Also, is there a way to look at the code that the preview is
trying to execute? The only code I've found is the code snippet,
and the code fragments in the fields and parameters.
Thanks.

I use a similar technique for dynamic grouping in Crystal and
struggled for some time trying to find a way to make Report Builder
do the same thing.
I have a couple of questions for you though. You mentioned a
drop down box in the advanced query builder. I only had access to
the drop down boxes using the basic query builder. Also, what
database are you using?
Going solely on the error message, it sounds like the SQL
statement being generated is incorrect. Have you tried turning on
debugging to see the query being executed?
In regards to your approach, it's the only way I've found to
do dynamic grouping in Report Builder since it won't dynamically
sort the data.
Lastly, the .cfr file created is a binary file and so there's
no way to open it in a text editor and check it out. The code
snippets are not actually executed when using the preview feature.
There is an option in Report Properties that allows for direct .cfr
invocation (basically bypassing the need for the generated code
snippet).

Similar Messages

  • Multiple sort levels in a smart playlist

    I use iTunes 7.1.x on a MacMini to update my iPod. Before I moved over to OS-X, I had used a Windows-based media manager (J. River's Media Center). One feature of that media manager that I have not been able to figure out how to duplicate in iTunes is the ability to have multiple sort levels.
    My main use for multiple sort levels is the ability to sort songs by the count of times played, then within each count group, shuffle the songs randomly.
    For example, all songs with a zero play count would be grouped together and then shuffled, then the songs with one play count would be grouped together and shuffled within that group, then the songs with a two pla count... etc...
    The net effect of this dual-level sort is play all songs with the same low play-count in random order, then move up to the next highest play count and play those in random order.
    What feature of iTunes am I missing that will provide the sorting capability I want?
      Mac OS X (10.4.9)  

    What feature of iTunes am I missing that will
    provide the sorting capability I want?
    Nothing. iTunes will not do this.
    How does one ask Apple for a new feature in iTunes?

  • Multiple Sort Apps?

    I have a lot of apps on my Iphone 4s and i used to use the Itunes store to sort them into folders based on Genre then by name. But since one of the updates i cannot figure out how to use multiple sorts. If anyone could tell me how to set the Itunes app  list to sort by Genre -> Name that woul be extremely helpful.

    swg18 wrote:
    I have a lot of apps on my Iphone 4s and i used to use the Itunes store to sort them
    Do you simply mean iTunes? (not store)
    I have a lot of apps on my Iphone 4s and i used to use the Itunes store to sort them into folders based on Genre then by name.
    Turn on the C olumn browser (menu View > Column browser) select a Genre then sort by Name.

  • Multiple sort in iTunes

    How do I sort by multiple categories in my library? I would like to sort by artist, then date, then album, then track so I have each artist in chronological order. iTunes seems to insist on sorting albums alphabetically. Is there a way to do this without creating a playlist that has my entire library on it, and then dragging things around by hand?
    IBM T42   Windows XP Pro  

    Wow, those are some pretty complex sorting requirements there...
    Anyway, there is currently no built-in way to sort on multiple columns.
    I also want this feature and have told Apple about it here:
    http://www.apple.com/feedback/itunesapp.html
    Until then, the only thing you can do is write an external program that sorts your music the way you want in a playlist separate from your main library.
    http://developer.apple.com/sdk/itunescomsdk.html
    If you're not a programmer you have to wait and hope or find someone to do it for you. I'm a programmer but right now I'm not feeling motivated to write it

  • Multiple sort levels

    Hi all.
    Is there anyway to use multiple levels of sort in iTunes?
    If I want to sort Albums by Artist or something like that?
    I can't seem to find it in iTunes itself.
    Thanks!

    Well, sorting Albums by Artist is conveniently built-in to iTunes. Just click to sort by Album and then click that sort tab again. It toggles between Album, Album by Artist and Album by Year.

  • Multiple Sort Criteria

    Is there a way to have the above. For example, i want to see albums by an artist, the albums sorted alphebetically, and each album sorted by track number.
    This is especially true for books. I want to see books, organized by chapter and part (where there are multiple tracks per chapter).
    Thanks
    David

    use a smart playlist...
    regards,
    Pete.

  • Multiple Sort Criteria and Artwork Issue ?

    Hi all,
    I was trying to work out how to sort the columns in my iTunes music library by multiple criteria, e.g. by Artist, and then Album (within artist).
    Unfortunately, in my experimentation I did something indescribably stupid and ended up losing my artwork. I tried retrieving my artwork (using "Get Album Artwork" - and I had the artwork before), but didn't seem to work for me after that.
    So, I have two questions that are essentially unrelated apart from the fact that one led to the other :
    (1) How do I sort by multiple criteria in your iTunes library ?
    (2) How can I get my album artwork back (seeing as "Get Album Artwork" has decided to stop working for me) ?
    thanks,
    Andrew
    PC   Windows XP  

    use a smart playlist...
    regards,
    Pete.

  • A simple question about wrong sorting with multiple sort columns in Excel 2010

    Hi, everyone! I have encountered a problem that I don't know how to explain.
    So I post it here because I don't know if there is another more relevant forum...
    I have a data sheet with the students' scores for the course. 
    All the data were generated with the randbetween function,
    and pasted with the values.
    To rank the students by their performance,
    I did the sort with the column "total score" as the first sort-column
    and "final term" as the second.
    The weird thing to me is that the order of the data seems problematic.
    That is, all the rows are sorted correctly with the first sort-column.
    But for the rows with the same values of the first sort-column,
    there are some rows whose values of the second sort-column are out of order.
    (please look at the data file at
    www_dot_kuaipan_dot_cn/file/id_67204268108546068_dot_htm
    Please change the "_dot_" to the real literal dot.
    Especially the rows with 56.7 as the first sort-column value
    and some other values near the tail of the list.)
    I tried to manually input and sort the same values of both columns
    in a near-by region. The result was correct.
    When some friend copied all the data to paste in Notepad,
    and reload them in excel. The problem disappears.
    Some friend also tried to wrap a round function at the values of the 1st sort-column,
    the sorting order became correct!
    But they could not explain why either.
    How confusing! I even tried to swap the first and secod sort-column;
    the output was right.
    All the data were generated by randbetween function and pasted with values.
    Where could all the special characters, if any, come?
    Can anyone give me an explanation? I would be very grateful.
    Thanks in advance!

    Re:  Sort is not in proper order
    Sounds as if the data includes spaces or hidden characters that are affecting the sort.
    That is indicated by the fact that manually entering the data resolves the problem.
    Note:  You can use a public file storage website to hold your file and add the link to it in your post.
    Jim Cone
    Portland, Oregon USA
    Special Sort excel add-in (30+ ways to sort) - 3 week no obligation trial
    https://jumpshare.com/b/O5FC6LaBQ6U3UPXjOmX2

  • HT4221 Is it a concern that a software company such as Apple wouldn't automatically support multiple sort keys for photo albums (such as filename, last modified, date taken, etc.)?!

    Other than 3rd party apps, has anyone found a work-around for Apple's goofy album sort order limitation?

    That's a comment in the file. It has no effect at all.

  • Answers: Multiple sorts for different rsum (multiple ABC-Analysis in one)

    Hello
    I want to do an ABC-Analysis i.e. on my ProducLines. I am doing it by using something like:
    CASE WHEN
    RSUM(Sales / SUM(Sales by) * 100) < 75 then 'A'
    WHEN ... THEN 'B'
    ELSE 'C'
    END
    This works fine so far but I need to take the column "Sales" into my request and order the request on that. (to get the "big ones" at the beginning)
    Details on this can be found here: http://blog.trivadis.com/blogs/andreasnobbmann/archive/2009/09/18/abc-analysis-in-obiee.aspx
    My Problem now:
    I would like to do this ABC-Analysis Sales and SalesPreviousMonth and SalesYTD all three in one and the same request.
    I did not find out how I can do different "order by" for my three different Formula-columns. I tried with UNION ALL but did not really get it until now (only the final result can be sorted, but I would need sort column in the subrequests to get correct A,B,C-Values).
    Did anyone already have a similar requirement? How did you solve it?
    Thanks for any hints.
    Thomas
    Edited by: Thomas L. on Jul 23, 2010 6:35 PM

    I am also baffled. I tried to find this "default Captivate quiz" in the help section of Captivate with no results. When I again contacted the representative, he closed the conversation before speaking with me.
    Thank you for choosing Adobe. A representative will be with you shortly. Your estimated wait time is 0 minute(s) and 4 second(s) or longer as there are 1 customer(s) in line ahead of you.
    You are now chatting with 'Khyati'
    Thank you for chatting with us. Please click the "Close" button on the top right of the chat window to tell us how we did today.
    I have posted the entire correspondence on Adobe Captivate's Facebook page in the hopes that I might get some swift assistance from the company.

  • Multiple Sorts Issue

    I have two fields in a WEBI report (XIR2) that I want to sort.
    1st a date field decending
    2nd a string field ascending.
    I apply the sort to each field, then double check the priority to make sure it does date first.  The issue is that the string field always sorts descending no matter what setting I have the sort on for that field.  If I only sort on the string field ascending, its works fine, but having to do the date first screws it up.
    Any ideas?

    Brian,
    Double check your sort order. You can do this by checking the table properties.
    Select the table (not the cell) and open the propery tab. You will see the last item is sort and when you click on the button you will get a place set the sort order.
    thanks,
    Anil

  • Could ONE task include channels of MULTIPLE sorts?

    There are two sorts of singnels: current and temperature. I want to know that if I can collect them in a task. I am using CVI to programme. Can I use DAQmxCreateAICurrentChan() and DAQmxCreateAIThrmcplChan() in one task?
    Thanks!

    Yes. You can mix channels of mutliple sorts in a task as long as they are all the same I/O type, such as Analog Input (AI).

  • Listdata.svc Feed not returning correct sort order when you apply multiple sort functions.

    Hi,
    Am using the listdata.svc to access and update Sharepoint list.
    When i do the folowing query
    listdata.svc/ModuleItems?$inlinecount=allpages&$filter=substringof(%2781514db7-b340-478d-cf4e-d4ac608822e8%27,ReferenceID)&$orderby=ContentType,Created%20desc&$top=250
    It returns the results as if it was only filtering by the Created field and ignores the ContentType Filter.
    Seems like a bug to me.

    Hi Mitchell,
    I made a test in my environment with the URL below and it sort for the both field.
    https://xxx/_vti_bin/ListData.svc/List5?$select=Title,Test1&$orderby=Title,Test1
    I suggest you create a simple rest url to query and sort item to test whether it works.
    More information for your reference:
    http://msdn.microsoft.com/en-us/library/ff798339.aspx
    http://www.vinaysahni.com/best-practices-for-a-pragmatic-restful-api
    Best Regards
    Forum Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
    [email protected]
    Zhengyu Guo
    TechNet Community Support

  • FB3 M3 Beta2- Advanceddatagrid column header multiple sort

    Hello People,
    Before 10-1 when the M3 B2 of FB3 comes out i had normal
    columnheaders with the new beta version there are suddenly multi
    sort functions added to the columnheaders of the advanced datagrid!
    How can i remove those.. i have alot of columns and now is
    the headertext wordwrapping like nuts!
    -Sjoerd

    You can set the property sortExpertMode to "true" in
    AdvancedDataGrid.
    The vertical line in the AdvancedDataGrid Header is not shown
    when sortExpertMode="true".
    Even then, if the headers does not get wordwraped, please
    file a bug here -
    http://bugs.adobe.com/flex
    Thanks,
    Sameer

  • Excel 2010 multiple Sorting in same sheet issue

    Dear all,
    In the same sheet, the data is split into different groups by inserting rows.
    In Excel 2003:
    We select the rows of the group and choose sorting columns, for example, column "M" & column "J".
    Then, we select another group by rows, the sorting option is kept.
    In Excel 2010:
    We select the rows of the group and choose sorting columns, for example, column "M" & column "J".
    Then, we select another group by rows, the sorting option is empty!
    Further testing on different groups sorting, we found that Excel 2010 only keep the sorting options of the group which is doing the last sorting setting.
    Is there any method to set the Excecl 2010 to work similar to excel 2003 on the Sorting option keeping?
    Ivan

    Hi,
    From your
    description, I tested in my environment by using Excel 2010 with the following steps:
    Create a data source and add two groups by rows (Named Group A and Group B)
    Select Group A to add sort condition for the column "A" & column "B"
    Select Group B to add the sort condition for the column "A" & column "B"
    When I select Group A again, the sorting option was empty. Then, I
    formatted the Group A and Group B as table and repeat the above steps, sorting option was kept.
    Thus, I suppose that we sort with the group similar table in Excel 2003, the sort condition was not be inherited among the different group. There are some changes between Excel 2003 and Excel 2010.
    I think
    formatted the Group as a table is a workaround.
    I'll submit it to Office Dev team and we have definitely heard your frustration, we're thinking about ways to make this scenario work better for our customers. Unfortunately, I can't make promises or give specific details on our future
    plans.
    Thanks,
    George Zhao
    Forum Support
    Come back and mark the replies as answers if they help and unmark them if they provide no help.
    If you have any feedback on our support, please click "[email protected]"

Maybe you are looking for

  • Itunes won't open...bounces and disappears. Here is crash log.

    When I attempt to click on itunes, it appears on the dock, bounces, and disappears. This also occurs with the "help" application. Can anyone help? Here is the crash log, but b/c it is so large it is pasted here with only the first ever crash and the

  • "jco.server.unicode" is gone in JCO 3.0.5??!!

    Recently  we have migrated from   JCO 2.1.8  to  3.0.5.   Currently we are witnessing some problems with communications from non-Unicode Sap systems. In the previous version  (JCO 2.1.8)  JCoIDoc.Server had a property "jco.server.unicode"  in the lat

  • Ignore this thread - not sure how to delete it

    I solved my problem and I'm not sure how to delete this thread.

  • Long runtime when Generate Org model with CRM_R3_ORG_GENERATE. never finish

    Hi All, I tried to generate org.model with CRM_R3_ORG_GENERATE. But it ran for a long time. For a day and still not finished. I killed it and did again.  Same situation happen. I see process is running and use almost CPU time. Is this normal for this

  • Java does not run correctly

    My school has a server which I think is UNIX and it runs something called IRIX. We compile our programs on there but it takes so long I usually compile on the PC with J2SE. The only problem is when I run the programs, they don't execute correctly whi