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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
rogzon
Regular Visitor

Table Visual Sorting

Hi!

Do anyone know if Microsoft will release a simple table visual with sorting disabled option and "hide column" option?

Right now the visual sorts by the first column alphabetically and on top of that it handles the three extra letters of the swedish alphabet wrong.

What I need is to present a table with data sorted in the way I do in my source (and yes databases generally handles the swedish characters quite good).

 

/R

 

1 ACCEPTED SOLUTION

No changes to the table visual.

 

Steps i take are:

1. Select field to sort from field list.

johncolley_0-1652223397630.png

2. Under Column Tools in the header select 'Sort by Column'

johncolley_1-1652223483939.png

3. Select the 'sort order' column and the table should update to reflect the ordering. 

4. If you add additional columns and the ordering changes, just reclick the column header you want to sort on or follow the image PhilipTracey provided.

 

 

View solution in original post

9 REPLIES 9
johncolley
Solution Sage
Solution Sage

Hi Roger, 

Once you have selected the column to include your table you can select 'sort by column' to sort this column by the 'sorting column' without having to show it in the table.

johncolley_0-1651734645604.png

Regards,

John

Hi John,

So the sorting you mention is done in the table view?

rogzon_0-1651737354816.png

 

Unfortunately the table visual still sorts by the first column added to it, it ignores the sorting in the table view.

If the "sorting column" isn't present in the table visual I am not able to "sort by" it in the visual.

Was that what you meant or am I missing something?

 

Regards,

 

/Roger

Hi Roger,

 

It can be done in both the report or data views. In my screenshot the left table would be the one you are trying to produce. The status column is not the first column. But the table is sorted by the sort order you can see in the right hand table even though it's not present in the first table.

 

johncolley_0-1652138121611.png

 

Hi John!

I can't reproduce your images above, how did you do that?

Did you make any changes to the table visual?

The moment I add a column to my visual it sorts immediately...

 

/Roger

 

No changes to the table visual.

 

Steps i take are:

1. Select field to sort from field list.

johncolley_0-1652223397630.png

2. Under Column Tools in the header select 'Sort by Column'

johncolley_1-1652223483939.png

3. Select the 'sort order' column and the table should update to reflect the ordering. 

4. If you add additional columns and the ordering changes, just reclick the column header you want to sort on or follow the image PhilipTracey provided.

 

 

Ahh, this drives me crazy... By not using the column tool but only click the column and use "Sort Ascending" doesnt give you the same result as choosing "Sort by" under column tools.

Column tools makes the sorting stick, great job thanks a lot to all involved!

PhilipTreacy
Super User
Super User

Hi @rogzon 

 

You can choose what column to sort a table by 

sortby1.png

 

What are your Global Regional Settings?  These determine how strings are compared/sorted

 

File -> Options and Settings -> Options 

regglob.png

 

Regards

 

Phil



Did I answer your question? Then please mark my post as the solution.
If I helped you, click on the Thumbs Up to give Kudos.


Blog :: YouTube Channel :: Connect on Linkedin


Proud to be a Super User!


Hi! @PhilipTreacy 

The regional settings were unfortunately correct (Swedish), it would have been a neat solution thanks.

When it comes to sorting I would need the table visual not to sort at all, the correct sorting is done in my source so if there is a table type visual that does not sort I would be happy.

A possible workaround would be to create a "sorting column" but the data in that column is of no interest to the users and I am unable to hide it in the visual.

So either a table visual with the ability to disable sorting or a table visual where columns could be hidden would do the trick for me, any suggestions?

 

Reagrds,

 

/Roger

Anonymous
Not applicable

Hi @rogzon ,

You can add this calculated column (created as an workaround) to the visual, select the corresponding visual, go to the Format pane to toggle off the "Word wrap" option. Then try to resize the column to the smallest size in the visual until you can't see... The calculated column will be hidden, and you can sort by it on the visual...

yingyinr_0-1651821027135.png

In addition, you can refer the following links to implement it.

Power BI – Sorting data by a column not shown in visualyingyinr_1-1651821220715.png

Hide Columns in Power BI | Power BI Tricks & Tutorials

Power BI Sort - Hiding the sort Column

Best Regards

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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