Forum Discussion
Different sort order per category
Hi AlmantasPBIguy ,
Here I will give you two workarounds.
1. Your issue should be caused by that you want to sort the same value in [Attribute] with different orders. Power BI doesn't support us to do this. We need to sort the unique key word with the order column. I suggest you to combine [Attribute] and [Category] column as a unique key column.
Combine = COMBINEVALUES("-",'Table'[Attribute],'Table'[Category])
2. You can turn off "Text wrap" in column headers and reduce the width of [Order] column in your visual.
Best Regards,
Rico Zhou
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
- AlmantasPBIguy2 years agoFrequent Visitor
Hey Anonymous ,
thank you for the help. After trying to implement your solutions I realised I simplified my problem too much.
It is a bit more complicated: the visual is a column chart and the value in the y axis is different from the sort order. I updated the example file to fit my problem more:
https://drive.google.com/file/d/1E8_zlZgmD0xbDk_A9Lhl3JGXA0-qx8ei/view?usp=share_linkIs there a way to work around this?