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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

Reply
nsadams87xx
Helper III
Helper III

Sort by Column using reference key does not work

Hey everyone,

 

I'm trying to show a graph of valuations over time and these timeframes are arbitrary because my different units (automobiles) are not all the same model year.  I have a very simple time dimension which gives each one of my time references a key and when I sort by this key, my axis isn't showing the way I want it to.  I want it to be in this order: New, 2 Years, Half Life, Low Point, Current.

 

The only way I can get it to sort correctly is if I include both the time key and the Key Name in my axis together and I don't want the time key number displaying on the axis.  Any thoughts?

 

 

My "fact" sorted by the time key.

 

 

Models.JPG

 

 

My "time dimension".

Time Reference.JPG

 

 

Incorrect order.

Incorrect.JPG

 

 

Correct axis but having to use the time key on the axis.  This has also been drilled down to the lowest hierarcy.

Correct with key.JPG

 

 

1 REPLY 1
Anonymous
Not applicable

Any sort you apply to the data screen is purely visual.  What you want to do instead is select the field that you are using on your Axis, and go into the Modelling area of the Ribbon.  In there is a "Sort By Column" selection where you can choose your Time Key field.

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.