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!
Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.
Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.
User | Count |
---|---|
23 | |
16 | |
15 | |
7 | |
6 |
User | Count |
---|---|
33 | |
29 | |
16 | |
13 | |
12 |