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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
MouserMike
Helper I
Helper I

How to sort a table by column not included in the table

I created a calculated column (below) in order sort a table by two columns (name and date).  By adding this column to the table, I can sort by this column and I get the expected results.

New Sort = Assignments[ResourceName] & FORMAT ( Assignments[AssignmentStartDate].[Date], "yyyy/mm/dd" )

However, I don't want this column to be visible in the table; the individual columns are already there, and this calculated column looks rather weird since it's multiple columns concatenated together.  I've looked for ways to sort a visual by a column that is not part of the visual, but the only "solution" I've found is to add this calculated column to the far right of the visual, then shrink the width so it's almost invisible.  Is there another way to do this?

2 REPLIES 2
Greg_Deckler
Community Champion
Community Champion

One thing you might try. Choose a column that is already in the visual and how you are sorting now. Change the Sort By column for this column to be the New Sort column you created. Modeling tab.



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...
JosefPrakljacic
Solution Sage
Solution Sage

Hello MouserMike,

 

you sort your columns by your "NewSort" Column and then you hide the "NewSort" Column. You can do it also the other way around.

 

I recommend to do that in the data view (Point 1 in the Screenshot) in order to see your hidden columns.

 

2019-09-12 15_22_09-KERN Dashboard V8 - Power BI Desktop.png

 

The hidden column can still be used for ordering.

 

I hope I understood you right.

 

If this post was helpful may I ask you to mark it as solution and give it some kudos?

Have a nice day!

BR,
Josef

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.

Top Solution Authors