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

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.

Reply
BratKat
Microsoft Employee
Microsoft Employee

Sort column not exposed in Transform data

Have a column measure that is not exposed in Transform, is there and FORMAT command I can use in this to make sure it sorts correctly, tried other suggustions using Tooltips but those do not work. Thank you 
MonthDay = 'Work Items'[Team Date 01].[Month] & " Day " & DAY('Work Items'[Team Date 01])
2 ACCEPTED SOLUTIONS
tamerj1
Super User
Super User

Hi @BratKat 

You ca create a sort by column 

MonthDayNumber =
VALUE (
MONTH ( 'Work Items'[Team Date 01] ) & DAY ( 'Work Items'[Team Date 01] )
)

Select the MonthDay column, go to column format - sort by column and select the MonthDayNumber column. 

View solution in original post

BratKat
Microsoft Employee
Microsoft Employee

The MonthDayNumberYear measure or column.  

View solution in original post

10 REPLIES 10
tamerj1
Super User
Super User

Hi @BratKat 

You ca create a sort by column 

MonthDayNumber =
VALUE (
MONTH ( 'Work Items'[Team Date 01] ) & DAY ( 'Work Items'[Team Date 01] )
)

Select the MonthDay column, go to column format - sort by column and select the MonthDayNumber column. 

BratKat
Microsoft Employee
Microsoft Employee

Tried this however returned some strange results, slicer not returning correct dates..?

BratKat_0-1682518840346.png

 

BratKat_1-1682518899730.png

 

@BratKat 

Which column are you placing in x-axis?

BratKat
Microsoft Employee
Microsoft Employee

The MonthDayNumberYear measure or column.  

BratKat
Microsoft Employee
Microsoft Employee

Got this working, forgot to add "Year" in the data item, so now it sorts correctly, thank you. 

@BratKat 
No, just keep the original YearMonth column in the x-axis and use the "sort by column" option to sort the YearMonth column by the YearMonth column number. Go the table view, select the YearMonth column then from the "sort by column" option, select the YearMonthNumber

3.png

 

BratKat
Microsoft Employee
Microsoft Employee

Already did that, its usually when I move the Slicer that it stops sorting correcty, using the "between" option in the slicer. 

BratKat
Microsoft Employee
Microsoft Employee

When the column is used in a column graph and month days are displayed, these are not in correct order even if sorted correctly in the graph, need to add sorting or format to the measure\column code above so it stays sorted. A A slicer is used to select days of the month and the measure\column is used in the graph as the X-axis.

 

BratKat_0-1682431297451.pngBratKat_1-1682431338939.png

 

 

BratKat_2-1682431376833.png

 

 

BratKat_3-1682431409936.png

The days start out correctly then is out of order. 

Thank you 

BratKat
Microsoft Employee
Microsoft Employee

Additional info: 

We already have a column that has Dates in our data set, Team Date 01 that has the dates of each item in our dataset. 

This is used in the X-axis 

MonthWeek = 'Work Items'[Team Date 01].[Month] & " Week " & WEEKNUM('Work Items'[Team Date 01])
and Team Date 01 is used in a Slicer. 
DOLEARY85
Resident Rockstar
Resident Rockstar

Hi,

 

any measures or columns created in report view are caclulated after the import of data and therefore will not appear in transform. What is it you're looking to do with the column in transform?

 

If I answered your question, please mark my post as solution, Appreciate your Kudos 👍

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.