Forum Discussion
Matrix column custom sorting via Task finish date (MS project data field)
Hi
I hope someone can help
I have a matrix table which shows key points through my project with information whether those points are complete etc...
I would like to sort the columns by a date column (Task finish date) but I get the error "We cant sort the 'taskName' column by 'TaskFinishDate'. There can't be more than one value in 'TaskFinishDate' fr the same value in 'TaskName'".
I did have a work around where I used a calculation to create a sort column based on the name of the task. However this only works if the key points are consistant for all projects which unfortunately they are not.
Is there another way to sort by a date column?
Example table below
| Task Name | Task Name | Task Name | Task Name | Task Name | Task Name | |
| Task Finish Date | 01-Oct-18 | 20-Jan-17 | 19-May-18 | 15-Jun-19 | 18-Mar-20 | 16-May-18 |
| Info 1 | ||||||
| Info 2 |
Thanks
Matt
Hi
Turns out, the matrix table has an option to sort the columns by one of the values. sorting by finish date solved my problem straight away without the need for a complex DAX formula
For anyone else who has had this issue, if you click on the 3 dots at the top right of the visual it opens a list and one of the options lets you sort by
Thanks
Matt
7 Replies
- AnonymousNot applicable
- Matt22365
Resolver III
Hi
Its difficult to send data as it is a MS project online feed, I will see if I can find a way to replicate it without the confidential info.
Thanks
Matt
- Stachu
Community Champion
the problem is that one date can have multiple tasks, in DAX for the custom sort to work the granularity of the involved columns has to be 1:1
would putting the date before the tasks list in columns solve the problem?
- Matt22365
Resolver III
Hi
That's what I thought the issue may be.
I think that rearrangement would take away the functionality of the visual.
Thanks
Matt - Matt22365
Resolver III
Hi
I have managed to sort by using a unique task ID column and sorting that by finish date. This solves one problem, however, I now need to have this number in the matrix table title for the ordering to work.
Is there a way to hide this top tier of titles without it affecting the order of the table?
Thanks
Matt
- Matt22365
Resolver III
Hi
Turns out, the matrix table has an option to sort the columns by one of the values. sorting by finish date solved my problem straight away without the need for a complex DAX formula
For anyone else who has had this issue, if you click on the 3 dots at the top right of the visual it opens a list and one of the options lets you sort by
Thanks
Matt