sort and group by variables

rpanizza
rpanizza New Altair Community Member
edited November 2024 in Community Q&A
Is it possible to sort a data set by 2 variables? And group by 2 variables?
Tagged:

Answers

  • IngoRM
    IngoRM New Altair Community Member
    Hi,

    in the data views (tables) it is possible to sort according more than one column by pressing the CTRL-key while selecting several of the column headers.

    The sorting, grouping, and aggregation operators however do currently only support one column, sorry.

    Cheers,
    Ingo
  • TobiasMalbrecht
    TobiasMalbrecht New Altair Community Member
    Hi,

    we recently extended the [tt]Aggregation[/tt] operator in so far that it allows grouping by more than one attribute. The parameter [tt]group_by_attributes[/tt] now allows the specification of multiple attributes using regular expressions. However, the extension is at the moment only contained in the RapidMiner developer version which is accessible via CVS and Eclipse. You find an explaination of how to checkout the developer version at

    http://rapid-i.com/content/view/25/48/lang,de/

    Regards,
    Tobias
  • achint_kumar
    achint_kumar New Altair Community Member
    Do we have any update here? Can we sort an attribute by grouping another attribute? I dont want the sort all the data but only for per patient/unique.

    This is one of the reasons i am stuck with my delivery, it is not possible in RM to process this way? Its an ETL operation, im generating a KPI.
  • MartinLiebig
    MartinLiebig
    Altair Employee
    Hi,
    you can use group into collection to get a collection per patient. Then you can use loop collection and sort.

    Let me know if you need an example for this.

    Best,
    Martin