Don't miss your chance to take the Fabric Data Engineer (DP-600) exam for FREE! Find out how by attending the DP-600 session on April 23rd (pacific time), live or on-demand.
Learn moreNext up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. Register now
Hello, I'm having some trouble sorting a concatenated colum.
My goal is to have a column which says the day and the 3 first letters of the month, for example, today "20 Sep"
I have a column for the day, another for the month and a third one which is calculated
Date = 'Query1'[Day]&" "& LEFT('Query1'[Month];3)
I used "Sort by Column" in a fourth column which is the Month Number, so when I use it in a graphic it shows it in the correct order:
As you can see, it shows the months in order, but the days are disorganized
Please let me know if you need any more info that could help solve this issue.
Thanks a lot in advance
Solved! Go to Solution.
Hey,
I suggest you should create a column that contains a value that will be calculated like this month * 100 + day, then you can use this
column to order the date column.
It may become necessary to consider a year as well, the value then will created by this little formula:
year * 10000 * month * 100 + day
Regards,
Tom
Hey,
I suggest you should create a column that contains a value that will be calculated like this month * 100 + day, then you can use this
column to order the date column.
It may become necessary to consider a year as well, the value then will created by this little formula:
year * 10000 * month * 100 + day
Regards,
Tom
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
Experience the highlights from FabCon & SQLCon, available live and on-demand starting April 14th.
| User | Count |
|---|---|
| 48 | |
| 46 | |
| 41 | |
| 20 | |
| 17 |
| User | Count |
|---|---|
| 70 | |
| 67 | |
| 32 | |
| 27 | |
| 26 |