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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
Anonymous
Not applicable

Sorting Time Intelligence - want to sort Time values in drop down

Hi,

 

I have created a column using below DAX:

Hour = format(Data[FIRST_TOUCH_DATE_TIME], "hh:mm:ss AM/PM")

 

now I want to sort values as P.M Values will come at Upper side, so i will basically sort by Descending order. How can I achieve this?

 

 

1 ACCEPTED SOLUTION
Nolock
Resident Rockstar
Resident Rockstar

Hi @Anonymous,

 

you have to create another column with the expected order and then tell your Hour column that it should be sorted by the newly created column (see the attached screenshot).

 

Capture3.PNG

View solution in original post

1 REPLY 1
Nolock
Resident Rockstar
Resident Rockstar

Hi @Anonymous,

 

you have to create another column with the expected order and then tell your Hour column that it should be sorted by the newly created column (see the attached screenshot).

 

Capture3.PNG

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors
Users online (1,935)