cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
callen37 Regular Visitor
Regular Visitor

Issue with Table Not Sorting by Month/Day

I created a field in PowerBI called Month/Day. I extracted this from a Month/Day/Year column since I don't need the year due to a report level filter to only show the past 7 days.

 

I created a table, however, I cannot get it to sort in date order. Can anyone else?2019-08-22 10_11_47-Mobile Field App Adoption - Power BI Desktop.png

1 ACCEPTED SOLUTION

Accepted Solutions
Super User
Super User

Re: Issue with Table Not Sorting by Month/Day

Hello @callen37 

What you need is a numeric column to use as the sort order.

MonthDaySort = MONTH ( uvw_RescoMobileAudit[Created On] ) * 100 + DAY ( uvw_RescoMobileAudit[Created On] )

Then you set the sort on the Month/Day to use MonthDaySort.  In the image below I am setting the sort order on [Month Name] to use [Month Number].

TableSort.jpg

View solution in original post

1 REPLY 1
Super User
Super User

Re: Issue with Table Not Sorting by Month/Day

Hello @callen37 

What you need is a numeric column to use as the sort order.

MonthDaySort = MONTH ( uvw_RescoMobileAudit[Created On] ) * 100 + DAY ( uvw_RescoMobileAudit[Created On] )

Then you set the sort on the Month/Day to use MonthDaySort.  In the image below I am setting the sort order on [Month Name] to use [Month Number].

TableSort.jpg

View solution in original post

Helpful resources

Announcements
Ask Amanda Anything Q&A

Ask Amanda Anything Q&A

Learn the answers to some of the questions asked during the Amanda Triple A event.

October 2019 Community Highlights

October 2019 Community Highlights

October was a busy month in the community. Read the recap article to learn about some of the events and content.

New Solution Badges

New Solution Badges

Two waves of brand new solution badges are coming! Read the article for more information on our new community badges.

Analytics in Azure virtual event

Analytics in Azure virtual event

Experience a limitless analytics service built to ingest, prep, manage, and serve data for immediate use in Power BI.

Users Online
Currently online: 366 members 3,201 guests
Please welcome our newest community members: