Forum Discussion
Custom Sorting
- Anonymous3 years ago
Hi Anonymous ,
I created some data:
Here are the steps you can follow:
1. Create calculated table.
Table 2 = var _table= SUMMARIZE('Table','Table'[Customer],"Sum",SUMX(FILTER(ALL('Table'),'Table'[Customer]=EARLIER('Table'[Customer])),[Value])) return ADDCOLUMNS( _table,"rank",RANKX(ALL('Table'),[Sum_Measure],,ASC,Dense))2. Relationship to join two tables.
3. Select [Customer] – Column tools – Sort by column – [rank] for the new table.
4. Result:
Best Regards,
Liu Yang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly
Hi Peps,
I'm trying to create a customer sort with the help of dimension table, it worked for number and text perfectly. What turns it down is when using a special charter as a parameter to sort, for instance when I'm trying to create a column "Day" which ranges from the -12 and +12 days from Presales (Day) it's not sorting as I expect it to be, though I've defined relationship with the base table and sort this table with "Sort Order"
I'm getting something like below:
The outcome should be something like:
Any help in this regards will be much appreciated!
Thanks,
Atul