Forum Discussion
Week number with 2 digits
- 8 years ago
Looks like I've managed to solve this myself :smileyhappy:
I used the DAX Formula " weeknumber = FORMAT(WEEKNUM([date],1),"00") "
If anyone has any other better solutions, please feel free to contribute.
Looks like I've managed to solve this myself :smileyhappy:
I used the DAX Formula " weeknumber = FORMAT(WEEKNUM([date],1),"00") "
If anyone has any other better solutions, please feel free to contribute.
If your week numbers are stored as whole numbers, then:
format(if(WEEKNUM([date]<10,CONCATENATE(0,WEEKNUM([date]),WEEKNUM([date]),00)
that is,
format (<value>, <format_string>) where
<value> = if(WEEKNUM([date]<10,CONCATENATE(0,WEEKNUM([date]),WEEKNUM([date])
and
<format_string> = 00
afk wrote:Looks like I've managed to solve this myself :smileyhappy:
I used the DAX Formula " weeknumber = FORMAT(WEEKNUM([date],1),"00") "
If anyone has any other better solutions, please feel free to contribute.