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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
Anonymous
Not applicable

Sort chart by selection order

Is it possible to sort by selection in slicer? If I select february 2016 to januari 2017 I want to see february in the chart as the first bar on the left followed by march... until january is the last bar in the chart.

 

5 REPLIES 5
BetterCallFrank
Resolver IV
Resolver IV

Hi @Anonymous,

 

can you give us a screenshot of your data?

What data type/columns do you have in your data?

Do you have a date table?

 

without having seen any of your data: you need an additional column, e.g. saying "2016-12", "2017-01" etc - this would be the easiest way to make it sort like you want 

 

HTH,

Frank

Anonymous
Not applicable

I have this:

 

Table Names

Name Created
ABC 2016-02-01 13:12:28
DEF 2016-02-07 11:07:00
GHI 2016-02-07 11:10:52

Then in the chart I have a date-hierarchy on the axis and I have deleted Year, Quarter and Day so Month is the only one left.

 

quick solution would be to add a calc column:

YYYY-MM = FORMAT( Table[Created], "YYYY-MMM")

Then make the new column be sorted by Created column:

Screenshot at Jan. 24 13-07-16.png

 

put the new column on your axis in the visual.

 

HTH,

Frank

Anonymous
Not applicable

When I do that I get this: ("Skapad = Created")

a.PNG

Hi @Anonymous

 

ok, please add a second calc column like this

YYYY-MM-Sort = FORMAT( Table[Created], "YYYY-MM")

(note: only two "M" here in the format) - sort the first calc column by this second column - will work 🙂

 

HTH,

Frank

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!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

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