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

Level up your Power BI skills this month - build one visual each week and tell better stories with data! Get started

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
April Power BI Update Carousel

Power BI Monthly Update - April 2026

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

Fabric SQL PBI Data Days

Data Days 2026 coming soon!

Sign up to receive a private message when registration opens and key events begin.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

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.