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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

Reply
KevinJan
Regular Visitor

Sorting Time from 6 AM to 6 PM for Day Shift and 6 PM to 6 AM for Night Shift

Hi All,

 

I am struggling to sort my chart based on the time. 

Currently, I have Day Shift as 6 AM to 6 PM and Night Shift as 6 PM to 6 AM but when I create a chart, it doesn't sort the way I wanted it. 

 

I even created a query with index to sort it by index column but for some reason, its now matching/working. 

 

Chart:

KevinJan_0-1651062098401.png

Data set:

KevinJan_2-1651062383986.png

 

New  query to sort the time:

KevinJan_1-1651062282941.png

 

 

3 REPLIES 3
v-chenwuz-msft
Community Support
Community Support

Hi @KevinJan ,

 

1 Change the x axis with [column1] shows in the New query and build a relationship between fact table and New query table on time2 and column1.

2 Please try change the X-axis type to categorical.

vchenwuzmsft_1-1651561286729.png

 

Best Regards

Community Support Team _ chenwu zhu

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

 

 

amitchandak
Super User
Super User

@KevinJan . You have marked that column as sort column for the time column and you have sorted visual on time using three dots

Hi @amitchandak , 

 

Sorry but I am unable to follow the steps you mentioned. Can you clarify a bit futher please. Sorry I am fairly new to PBI

Helpful resources

Announcements
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

Power BI Carousel June 2024

Power BI Monthly Update - June 2024

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

RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.