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

July 28 - August 9 | Final Round of the Power BI Dataviz World Championships. This is your chance. Learn more

Reply
Anonymous
Not applicable

Sort Field Parameter

Hello everyone,

I have a parameter that is like below.

mrbuttons_0-1745463496507.png

This is the DAX for my field parameter.

time_field = {
("hour", NAMEOF('mvpmonitoring'[update_time_hour_ts]), 0, "etl_update_time"),
("month", NAMEOF('mvpmonitoring'[update_time_Year-Month]), 0, "etl_update_time"),
("day", NAMEOF('mvpmonitoring'[update_time_Year-Month-Day]), 0, "etl_update_time"),
("hour", NAMEOF('mvpmonitoring'[insert_time_hour_ts]), 1, "etl_insert_time"),
("month", NAMEOF('mvpmonitoring'[insert_time_Year-Month]), 1, "etl_insert_time"),
("day", NAMEOF('mvpmonitoring'[insert_time_Year-Month-Day]), 1, "etl_insert_time"),
("hour", NAMEOF('mvpmonitoring'[source_time_hour_ts]), 2, "etl_source_time"),
("month", NAMEOF('mvpmonitoring'[source_time_Year-Month]), 2, "etl_source_time"),
("day", NAMEOF('mvpmonitoring'[source_time_Year-Month-Day]), 2, "etl_source_time")
}

How do I display the field parameter to sort by Hour, Day and Month? Currently, it's being sorted by alphabetical order.

The order of the time binning slicer should go something like this.

etl_update_time
-hour
-day
-month

etl_insert_time
-hour
-day
-month

etl_source_time
-hour
-day
-month

Thanks!



1 ACCEPTED SOLUTION
danextian
Super User
Super User

Hi @Anonymous 

The order is based on these numbers:

danextian_0-1745465874684.png

Change them to 1 for hour, 2 for day and 3 for month.





Dane Belarmino | Microsoft MVP | Proud to be a Super User!

Did I answer your question? Mark my post as a solution!


"Tell me and I’ll forget; show me and I may remember; involve me and I’ll understand."
Need Power BI consultation, get in touch with me on LinkedIn or hire me on UpWork.
Learn with me on YouTube @DAXJutsu or follow my page on Facebook @DAXJutsuPBI.

View solution in original post

1 REPLY 1
danextian
Super User
Super User

Hi @Anonymous 

The order is based on these numbers:

danextian_0-1745465874684.png

Change them to 1 for hour, 2 for day and 3 for month.





Dane Belarmino | Microsoft MVP | Proud to be a Super User!

Did I answer your question? Mark my post as a solution!


"Tell me and I’ll forget; show me and I may remember; involve me and I’ll understand."
Need Power BI consultation, get in touch with me on LinkedIn or hire me on UpWork.
Learn with me on YouTube @DAXJutsu or follow my page on Facebook @DAXJutsuPBI.

Helpful resources

Announcements
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

Fabric Community Sticker Design Challenge Barcelona Carousel

Fabric Community Sticker Challenge - Barcelona 2026

If you love stickers, then you will definitely want to check out our community sticker challenge, Barcelona edition!

July Power BI Update Carousel

Power BI Monthly Update - July 2026

Check out the July 2026 Power BI update to learn about new features.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Top Solution Authors