Check your eligibility for this 50% exam voucher offer and join us for free live learning sessions to get prepared for Exam DP-700.
Get StartedDon't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.
Hi everyone,
I'm looking to create new calculated columns to seperate the already existing Date column I have.
I want to have one column with just the day, another column with just the month and another column with just the year.
Any idea on how to do this?
Any help would be greatly appreciated.
Solved! Go to Solution.
Hi @gbarr12345
You asked for Calculated Columns so in DAX you would use
Day = DAY('DataTable'[Promotion_Week_Ending])
Month = MONTH('DataTable'[Promotion_Week_Ending])
Year = YEAR('DataTable'[Promotion_Week_Ending])
But if you want Custom Columns in Power Query use these
= Date.Day([Promotion_Week_Ending])
= Date.Month([Promotion_Week_Ending])
= Date.Year([Promotion_Week_Ending])
Regards
Phil
Proud to be a Super User!
Hi @gbarr12345
You asked for Calculated Columns so in DAX you would use
Day = DAY('DataTable'[Promotion_Week_Ending])
Month = MONTH('DataTable'[Promotion_Week_Ending])
Year = YEAR('DataTable'[Promotion_Week_Ending])
But if you want Custom Columns in Power Query use these
= Date.Day([Promotion_Week_Ending])
= Date.Month([Promotion_Week_Ending])
= Date.Year([Promotion_Week_Ending])
Regards
Phil
Proud to be a Super User!
Thank you very much for that. Much appreciated!
User | Count |
---|---|
116 | |
73 | |
60 | |
48 | |
48 |
User | Count |
---|---|
171 | |
122 | |
60 | |
59 | |
56 |