Forum Discussion
nicktayl
9 years agoHelper I
Easy Way to Custom Sort Pivot Tables
Hi, I've come across a number of examples of how to do custom sorts and a bit more complex than I was hoping. There must be a simpler way to custom sort a pivot such as this than to have to creat...
- Anonymous9 years ago
HI nicktayl,
Perhaps you can try to refer to below steps if it suitable for your requirement:
Sample table: number(index, value, percent), text(category)
Steps:
1. Add a calculate column to get min value of each catagory.
MinValue = MINX(FILTER(ALL(SampleData),[Catagory]=EARLIER(SampleData[Catagory])),[Percent])
2. Add rank based on minvalue column.
Rank = RANKX(VALUES(SampleData[MinValue]),[MinValue],,ASC)
3. Create a matrix visual with above columns.(sort by rank)Regards,
Xiaoxin Sheng
prateekraina
9 years agoMemorable Member
nicktayl
9 years agoHelper I
prateekraina Is there an easy workaround?
- Anonymous9 years agoNot applicable
HI nicktayl,
Perhaps you can try to refer to below steps if it suitable for your requirement:
Sample table: number(index, value, percent), text(category)
Steps:
1. Add a calculate column to get min value of each catagory.
MinValue = MINX(FILTER(ALL(SampleData),[Catagory]=EARLIER(SampleData[Catagory])),[Percent])
2. Add rank based on minvalue column.
Rank = RANKX(VALUES(SampleData[MinValue]),[MinValue],,ASC)
3. Create a matrix visual with above columns.(sort by rank)Regards,
Xiaoxin Sheng