Forum Discussion
Create date format to show this month last month etc
- 3 years ago
I have managed to create a flag for "This Month" but need to add a "Last Month" & "Previous Month" & "Previous Month +!" etc etc - just 6 times anything out of date range I can 'Else' out
if Date.StartOfMonth([date]) = Date.StartOfMonth(DateTime.Date(DateTime.LocalNow())) then "This Month" else "Not this month"
Yes, that is possible - as long as you refresh this in import mode frequently (daily)
HI yes it reloads a number of times per day and every day so should be able to use Today()
- PaulTHR3 years agoFrequent Visitor
I have managed to create a flag for "This Month" but need to add a "Last Month" & "Previous Month" & "Previous Month +!" etc etc - just 6 times anything out of date range I can 'Else' out
if Date.StartOfMonth([date]) = Date.StartOfMonth(DateTime.Date(DateTime.LocalNow())) then "This Month" else "Not this month"