Forum Discussion
Create a column with fixed values based on current month
- 5 years ago
You can use the the below function. Replace Date with DateTime or DateTimeZone depending on the column type.
Date.ToText([DateColumn], "01/MM/yyyy") - 5 years ago
Hi Anonymous
For the first colum:
= Date.StartOfYear(Date.From(DateTime.LocalNow()))For the second:
Date.AddYears([Column1], -1)Note it references Column1, the first column we've created
Please mark the question solved when done and consider giving a thumbs up if posts are helpful.
Contact me privately for support with any larger-scale BI needs, tutoring, etc.
Cheers
Hi Anonymous
For the first colum:
= Date.StartOfYear(Date.From(DateTime.LocalNow()))
For the second:
Date.AddYears([Column1], -1)
Note it references Column1, the first column we've created
Please mark the question solved when done and consider giving a thumbs up if posts are helpful.
Contact me privately for support with any larger-scale BI needs, tutoring, etc.
Cheers
- Anonymous5 years agoNot applicable
That worked !, thank you. Can you help me understand what that fuction does ? the second column is pretty straight foward however I stil can´t grasp the first one.