March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early bird discount ends December 31.
Register NowBe 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
I have created a new column with this:
Solved! Go to Solution.
Hi @Lunge_PTP ,
You can also use FORMAT for this purpose:
FORMAT('Calendar'[Indbetalingsdato],"YYYY-MM")
Hi @Lunge_PTP ,
You can also use FORMAT for this purpose:
FORMAT('Calendar'[Indbetalingsdato],"YYYY-MM")
Generally I create the Calendar using Power Query. Here you can add a column like this:
Column Name: "YearMonthNo"
Expression
= Text.Combine(
{Date.ToText([Indbetalingsdato], "yyyy"), "-", Date.ToText([Indbetalingsdato], "MM")}))
Go to data view, select your new column, in column tools choose sort by (Date).
Hi @Lunge_PTP
Instead you can duplicate your date column and change its date format directly from ribbon as shown in below screenshot. Since the way you following to create a column actually its converting that column as text and its causing issue while sorting.
Best Regards,
Samarth
If this post helps, please consider accepting it as the solution to help the other members find it more quickly.
Appreciate your Kudos!!
Connect on Linkedin
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
User | Count |
---|---|
26 | |
21 | |
20 | |
13 | |
12 |
User | Count |
---|---|
40 | |
27 | |
27 | |
21 | |
19 |