Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
Hi Team,
I use the M language Date.WeekOfYear(Date.From(DateTime.LocalNow()), Day.Monday) to get to the current week number, the value is 14 for today. But I want to get as 1914, is it possible?
if no, I think I can get the last two digits of the year, such as 2019, to get 19, do you know how to do with M language?
Thank you!
Solved! Go to Solution.
@hemingt Please try this as a Custom Column in Power Query to get the last two digits of the current year or any date field from the table.
=Text.End(Date.ToText(DateTime.Date(DateTime.LocalNow())),2)
Proud to be a PBI Community Champion
@hemingt Please try this as a Custom Column in Power Query to get the last two digits of the current year or any date field from the table.
=Text.End(Date.ToText(DateTime.Date(DateTime.LocalNow())),2)
Proud to be a PBI Community Champion
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
114 | |
99 | |
83 | |
70 | |
60 |
User | Count |
---|---|
150 | |
115 | |
104 | |
89 | |
65 |