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
Anonymous , You need to create sort column
Example
customer1 =[customer]
customer Sort = Switch( [customer],
"Samsung",1,
"Hp",2,
//Add other
10)
Mark customer sort as sort column of customer1 and use customer1 in visual
PowerBI Abstract Thesis Episode 6: How to Create Sort Column and Solve Related Errors:
https://www.youtube.com/watch?v=KK1zu4MBb-c
- Anonymous3 years agoNot applicable
Thanks for your response limited customers then it will lwork but I have N number of customers thats why I am requesting is there any option to change dynamically.