Nested Axis Sorting

Certified Master Anaplanner

Nested Axis Sorting

Hi

 

I have a nested axis that I would like to sort. This is something that is not supported - but does anyone know of a workaround for this? I was hoping that if I hid the subtotal on each line item it would allow the sort, but it does not.

 

If there is no workaround, I hope this is something that can be considered for the future. 

 

Thanks

Brendan

Message 1 of 10
9 REPLIES 9
Certified Master Anaplanner

Re: Nested Axis Sorting

There is a old post which suggests a workaround. Not sure whether it will help you but posting it for your reference.

 

https://community.anaplan.com/t5/Product-Requests-for/Sort-work-with-multiple-columns-nested-dimensi...

Message 2 of 10
Certified Master Anaplanner

Re: Nested Axis Sorting

Thanks for the reply and information!

I will see if this will help, but in my use case it may not work.

Hopefully there will be native functionaltiy added around this in the future (also multi-column sorting). 

Message 3 of 10
New Contributor

Re: Nested Axis Sorting

Hi,

 

It seems the link for the workaround doesn't work anymore.

Does somebody know the workaround? 

 

Thanks,

Nathalie

Message 4 of 10
Regular Contributor

RE: Sort work with multiple columns (nested dimensions)

There's a workaround for this: You need to create a new line item called Sort Order, which combines the two dimensions you want to sory by, in the order you want. You can do this with the RANK() function, for example
1000 * RANK('Line Item 1) + RANK('Line Item 2')
...as long as you know the weightings to apply (e.g. here I've multiplied by 1,000 because I know there won't be more than 1,000) items in the list. Alternatively, you can do it with custom text-conversion logic, for example
TEXT(YEAR(Date)) & "-" & TEXT(MONTH(Date) + 50) & "-" & TEXT(DAY(Date) + 50) & " " & TEXT(Number + 1000000)
or any combination of the two methods. Just make sure, whatever combination you use, you resolve to a consistent data type - either text or number.
Message 5 of 10
Community Manager

Re: RE: Sort work with multiple columns (nested dimensions)

@NathalieLbn

This is the content from the original link above. Does this help?

Message 6 of 10
Community Boss

Re: RE: Sort work with multiple columns (nested dimensions)

@NathalieLbn 

You are probably aware of our new understanding of the impact of text and strings in particular; this article was from 3 years ago before we fully understood the impact

See https://community.anaplan.com/t5/Best-Practices/Formula-Optimization-in-Anaplan/ta-p/41663

for more details

 

So if you do need to do something like it, please make sure, the joins and the details of the calculations are done in the most appropriate and smallest possible modules

 

David

Message 7 of 10
New Contributor

Re: RE: Sort work with multiple columns (nested dimensions)

Hi All,

 

Thank you for your answers. However I don't think it will solve my issue as I need to display the two nested dimensions in a dashboard and in this case I cannot filter. In addition I need to sort only the second dimension (within the first one) alphetically.

The first dimension is the expense group based on the GL account. it's a very stable dimension, it changes very rarely. The second dimension is the vendors list. This list is very dynamic. I have created a mecanism (logic + actions) for the end-users to add new vendors, but unfortuntely each time a new member of this vendors list is created it's showing up at the bottom of the list. The consequence is that in the dashboard the vendors list is not sorted alphebetically.

The only option that I have now is to move new vendors from the bottom of the list manually to make sure all vendors are sorted alphabetically. Not ideal!

 

(see screenshot below - Vendors are currently sorted alphabeticaly because I've done it manually - However I looking for some sort of automation)  

 

Thanks for your help,

Nathalie

 

snapshot nested dimension sort issue.png

Message 8 of 10
Community Boss

Re: RE: Sort work with multiple columns (nested dimensions)

@NathalieLbn ,

 

Not exactly what you want, but if you re-pivot your module to have your Accounts in the page axis (since you already have that as slicer), it will work.

 

2019-08-01_09-59-13.png

 

2019-08-01_09-59-38.png

 

Hope this helps,

 

Rob

Message 9 of 10
New Contributor

Re: RE: Sort work with multiple columns (nested dimensions)

Thanks!

Unfortunately the end user want to see at once accounts and the total by expense type (which is the parent of the account), I cannot pivot here...

 

Thanks,

Nathalie

 

Message 10 of 10