Note: This was originally posted by an inactive account. Content was preserved by moving under an admin account.
Originally posted by: rabbottHere are two options:
1. Set the Rotate node IgnoreExtraNames parameter to "true" (default is false). This will ignore any new values found in the NameField after the first group has been processed, i.e. the first group sets the NameField value for the remainder of the input. In the above example, "B,MAR,3" would be ignored.
2. The attached graph example will group the input by the PivotField (PLAN) and count the number of rows in each group (rows). It will then sort the output in reverse order from greatest to least, separate the data matching the PivotField with the greatest number of rows, and then place this data set first amongst the original data input. The Rotate node is then applied, adding a value of "none" where the number of rows in the group is less than that in the first group.
Hope one of these solutions will work for you.
Attachments:
Cross_Tabulation_Sort.brg