Forum Discussion
Date Format
- 6 years ago
Anonymous
You can add a column to correct the sort order. What we need is the month number like so.
Month Sort = MONTH ( 'ORDER - Jumbo Query'[RDD] )Then you select the [RDD Monat] column and set the sort order to the [Month Sort] column. Here is an example from another project on how to set the sort by column:
Hello Anonymous
You should not have to call the .[month] portion of the date, can you try it like so?
RDD Monat = FORMAT('ORDER - Jumbo Query'[RDD];"MMM")
When you call [RDD].[Month] you don't get a date, you get "January" and formating with "MMM" needs a date.
If this solves your issues please mark it as the solution so that others can find it easily. Kudos 👍 are nice too.
John
Hi jdbuchanan71 ,
thank you for the quick response.
Thats true; now my column in data shows "jan" instead of "january".
Unfortunately there is the problem that my line graph is not sorted by month. Now it shows Apr, Aug, Dec. Etc.
Is it because the data is formatted as text?
The initial idea was only to reduce the month letters in my graphs. Is there another way?
Best,
Anil
- jdbuchanan716 years agoSuper User
Anonymous
You can add a column to correct the sort order. What we need is the month number like so.
Month Sort = MONTH ( 'ORDER - Jumbo Query'[RDD] )Then you select the [RDD Monat] column and set the sort order to the [Month Sort] column. Here is an example from another project on how to set the sort by column:
- Anonymous6 years agoNot applicable
Thank you jdbuchanan71 . It worked (as you can see in the lower figure in the screenshot)!
How ever, im still wondering if there is no "simplier" way to shorten the month to "MMM" directly in the figure / dashboard, without creating new columns. If its not the case your proposed solution is fine as well.