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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
mrbuttons
Frequent Visitor

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 @mrbuttons 

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 @mrbuttons 

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 Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 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
Top Kudoed Authors