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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
ADSL
Post Prodigy
Post Prodigy

Sorting the Column Name

Hi BI Community Team,

 

I have created the new column name "time session" but after tried to build the visual and it didn't sort/range as the screenshot below.

2023-07-22_17-01-19.png

Any suggestion to sort/rang it?

 

Thanks and Regards,

1 ACCEPTED SOLUTION
olgad
Super User
Super User

Hi, create another column

 

Time Session_Index = SWITCH(TRUE(),
[Log_In] < TIME(8,0,0), 1,
[Log_In] < TIME(12,0,0), 2,
[Log_In] < TIME(13,30,0), 3,
[Log_In] < TIME(17,30,0), 4,
[Log_In] < TIME(21,0,0), 5, 6)
 
Then, click on the first column, go to column tools, select sort by column and sort by time_session_index

DID I ANSWER YOUR QUESTION? PLEASE MARK MY POST AS A SOLUTION! APPRECIATE YOUR KUDO/LIKE!
PROUD TO BE A SUPER USER!
Best Stories, Interesting Cases: PowerBI Storytime Newsletter
Linkedin Profile: Linkedin
YouTube Channel: PowerBI Storytime

View solution in original post

2 REPLIES 2
olgad
Super User
Super User

Hi, create another column

 

Time Session_Index = SWITCH(TRUE(),
[Log_In] < TIME(8,0,0), 1,
[Log_In] < TIME(12,0,0), 2,
[Log_In] < TIME(13,30,0), 3,
[Log_In] < TIME(17,30,0), 4,
[Log_In] < TIME(21,0,0), 5, 6)
 
Then, click on the first column, go to column tools, select sort by column and sort by time_session_index

DID I ANSWER YOUR QUESTION? PLEASE MARK MY POST AS A SOLUTION! APPRECIATE YOUR KUDO/LIKE!
PROUD TO BE A SUPER USER!
Best Stories, Interesting Cases: PowerBI Storytime Newsletter
Linkedin Profile: Linkedin
YouTube Channel: PowerBI Storytime

Hi @olgad,

 

Thank you very much for your helpful feedback.

 

Best Regards,

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.