

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Custom Sort Order
morning,
struggling to engage brain today
i need to create a custom sort order for a dimension of text values.
ie
Car
Bus
Plane
Boat
etc
etc
any ideas? can DUALbe used in this scenario?
cheers.
Accepted Solutions

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
In expression of Sort tab, use below
Match(Dim,'Car','Bus','Plane','Boat')

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
In expression of Sort tab, use below
Match(Dim,'Car','Bus','Plane','Boat')


- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Good morning,
Yes it's monday 🙂 And yes you can use the dual function. In load script load a dual value of the dimension, I would first load a map of sort order values
TextSort:
mapping load * inline [Text,SortOrder
'Car',1
'Bus',2
];
And then load the Dimension as
Dual(YourDim,Applymap('TextSort',YourDim)
In the chart sort your dimension by numeric value.
Regards,
Piet Hein


- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi WonkyMeister,
If you have a long list of items in your Dimension,
You can have a numeric Flag assigned to each unique item.
Applymap from a master list(excel,txt, or db table)


- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
many thanks - got Monday morning brain fog
