Forum Discussion

azaterol's avatar
azaterol
Helper V
3 years ago
Solved

textfield bevor week

Hello everyone,

 

I would like to have the abbreviation "CW" for calendar week in front of the number. How can I do that?

 

My formula to get the calendar weeks displayed:

"Weeknum",WEEKNUM([Date],21)

 

"CW" 13 must be in front of the 13 ,and so on...

 

 

Date = 
ADDCOLUMNS (
CALENDAR (MIN(DOC[DocDate]), DATE(2023,12,31)),
"Weeknum",WEEKNUM([Date],21)
)

 

 

 

 

Thank you for help.

 

 

  • Date = 
    ADDCOLUMNS (
    CALENDAR (MIN(DOC[DocDate]), DATE(2023,12,31)),
    "Weeknum","CW"& WEEKNUM([Date],21)
    )

     

1 Reply

  • Date = 
    ADDCOLUMNS (
    CALENDAR (MIN(DOC[DocDate]), DATE(2023,12,31)),
    "Weeknum","CW"& WEEKNUM([Date],21)
    )