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

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more

Reply
SC07
Regular Visitor

Parameter bug

SC07_0-1747150910447.png

Field parameter set up here using Year & Month and Hour. Both of these are from a table built using DAX. 

Currently you can see that Y&M runs in sequence November to May, but then when I switch to Hour, the sort changes to total and switching back to Y&M also changes the sort from sequence in month to high to low. 

Anyone know how to fix this?

SC07_1-1747151069012.png

 

SC07_2-1747151086397.png

 



 

 

1 ACCEPTED SOLUTION

I managed to solve this in two ways. 
In my time table I added an hourkey and in the Hour Bucket sorted by hourkey 

SC07_0-1747214160849.png

In the calendar table, I added a new line as Year & Month Key and I used this to sort Year & Month with the new key.

 

SC07_1-1747214245153.png

 

View solution in original post

2 REPLIES 2
OwenAuger
Super User
Super User

HI @SC07 

This is indeed an annoying side effect of using a field parameter to select the field(s) used on an axis.

The "Sort axis"settings for the chart unfortunately reset whenever the field is changed.

 

One fix I have applied in the past is to:

  1. Create a measure to be used for sorting, such as Max DateTime = MAX ( YourTable[DateTime] )
  2. Add this measure to the Tooltips field well.
  3. Set "Sort axis" to this measure ascending.

Do Month and HourBucket come from the same calculated table you mentioned? If so, it should be straightforward to create an appropriate measure.

 

I realise that adding the measure as a Tooltip field may "disrupt" the tooltip, in which case you could either disable tooltips or use a report page tooltip.

 

Does something like this work for you?


Owen Auger
Did I answer your question? Mark my post as a solution!
Blog
LinkedIn

I managed to solve this in two ways. 
In my time table I added an hourkey and in the Hour Bucket sorted by hourkey 

SC07_0-1747214160849.png

In the calendar table, I added a new line as Year & Month Key and I used this to sort Year & Month with the new key.

 

SC07_1-1747214245153.png

 

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.

60 days of Data Days Carousel

Data Days 2026

Join Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

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