Forum Discussion
Sort graph value as count distinct
- Anonymous8 years ago
HI Exanimis,
Add a calculated column to calculate distinct count based on current group, then use sort by column function to use this calculated column as sort column of column who used on value field.
Sort by column in Power BI Desktop
Regards,
Xiaoxin Sheng
- Anonymous8 years ago
HI Exanimis,
Please modify your type column to text type, it seems like default sort feature disabled when you use numeric value as axis.
For this scenario, you not need calculate column anymore.
Regards,
Xiaoxin Sheng
HI Exanimis,
Add a calculated column to calculate distinct count based on current group, then use sort by column function to use this calculated column as sort column of column who used on value field.
Sort by column in Power BI Desktop
Regards,
Xiaoxin Sheng
Actually there was a problem with your solution. It does not sort it at all or returns an error. Let me give you an example.
DATA:
Sort:
Calculated column:
- Anonymous8 years agoNot applicable
HI Exanimis,
Please modify your type column to text type, it seems like default sort feature disabled when you use numeric value as axis.
For this scenario, you not need calculate column anymore.
Regards,
Xiaoxin Sheng