Forum Discussion
AvPowerBI
Post Patron
4 years agoInclude 0 for month number where applicable
Hi, I currently have the below calendar. Dates =
VAR MinYear = YEAR ( MIN ('Fact'[Employment Start Date] ) )
VAR MaxYear = YEAR ( MAX ('Fact'[Employment End Date] ) )
RETURN
...
- 4 years ago
AvPowerBI , try like
format(MONTH ( [Date] ), "00")
v-zhangti
Community Support
4 years agoHi, AvPowerBI
You can check the following methods.
Month = FORMAT(MONTH(Dates[Date]),"00")Start of Month = "01-"&[Month]&"-"&[Year]
More information about time and date formats can be found in the following links.
https://docs.microsoft.com/dax/format-function-dax
Best Regards,
Community Support Team _Charlotte
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.