Forum Discussion
sort by index order
- 9 years ago
Hmm,
maybe I'm still not getting the point ...
A simple bar chart looks like this:
I'm sorting the column Measure by Column1, these are the steps
- select the data tab
- select the column: Measure
- "Sort By Column": choosing "column1"
I'm getting this:
Finally I'm applying a Visual Filter to avoid the Total Measure, this may be necessary, due to the fact that blank values (Measure: Total) are sorted before the measures that have a proper value in the column Column1
If this is not what you want, I guess you have to explain the outcome a little more.
Two questions:
What kind of visualization are you using (in my example I'm using "Clustered Bar Chart"
and what release of Power BI Desktop are you using.
Hi Sea_and_Anne,
How do you use the “sort by column” feature in Power BI Desktop? Firstly, in Query Editor, please add a index column to your table as shown in the following screenshot.
After clicking “Close & Apply”, in Report view, choose the column dragged into Axis in Fields panel, then click “Sort By Column” and choose Index under Modeling ribbon.
Then check if your visual displays as expected.
Thanks,
Lydia Zhang
- Sea_and_Anne9 years ago
Helper I
Hello,
Thank you for the solutions.
I tried both but i didn't got the expected result.
I've sorted by index in "Data" window but when i go to the report the "sort by" button is not active.
Could you please help solving this issue?Thanks in advance,
:)- TomMartens9 years ago
Super User
Hey,
as I understand you want to sort one column by another column.
In the DataView select the column that you want to be sorted. Then choose from the "Sort by Column" Menu the proper column that contains the index.
Hope this helps
- Sea_and_Anne9 years ago
Helper I
Thank you for the solution, I had already tried this but also didn't worked.
:)
Any other suggestion to solve this?thanks in advance