Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
AndreaSo
Frequent Visitor

Sorting in table

Hi, 

I have problems with sorting in a table visual. I have a column with 5 specific values and I created an index column according to wich  I would like to sort it.

 

I created an example:

 

Values + index column

compain startindex
start in 5 months1
start in 4 months2
start in 3 months3
start in 2 months4
start in 1 month5

 

Current data:

Project Current valuesIndex
1start in 5 months1
2start in 3 months3
3start in 4 months2
4start in 2 months4
5start in 5 months1
6start in 3 months3
7start in 1 month5
8start in 2 months4

 

Expected sorting in table visual: (please mind that I dont want to show the index column in the visual)

Expected result in table visual
start in 5 months
start in 5 months
start in 4 months
start in 3 months
start in 3 months
start in 2 months
start in 2 months
start in 1 month

 

Please let me know if I was not clear enough. Thank you a lot for help.

4 REPLIES 4
Adamboer
Responsive Resident
Responsive Resident

To sort your table visual according to the index column you created, you can follow these steps:

  1. Select the table visual that you want to sort.

  2. In the Visualizations pane, go to the "Fields" section and find the column that you want to sort by (in this case, the index column).

  3. Click on the column and drag it to the "Values" field well of the table visual.

  4. Click on the column header in the table visual to sort by that column. You should see the data sorted according to the values in the index column.

  5. If you don't want to show the index column in the visual, you can remove it from the "Values" field well by clicking on the "x" next to the column name.

After completing these steps, your table visual should be sorted according to the values in the index column, as expected.

Arul
Super User
Super User

@AndreaSo ,

You have to use sort by column option to sort your current values column based on index,

Arul_1-1680524719307.png

Thanks,

Arul





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!


LinkedIn


AndreaSo
Frequent Visitor

Hi Arul

 

I tried this but unfortunately once I add it into the visual table, and sort based on "Currect values", it order is not correct.

ahmedoye
Responsive Resident
Responsive Resident

If you have done as @Arul suggested, and the sorting is not reflecting yet, go to your Table Visual and click on the header of the column inside the visual. Yoy may need to click twice to change the sorting between Ascending and Descending as you wish.

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.