Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
5 years ago
Solved

M code question

Hello M Code experts  -   I have what I think is a simple question.   I am trying to get my values on a chart to be the same format.   The first two are fine.   The Week is what I am trying to get ...
  • FrankAT's avatar
    5 years ago

    Hi Anonymous ,

    use this M code:

     

     

    InsertWeekInCal = Table.AddColumn(InsertWeekNumber, "WeekInCalendar", each "Week " & Number.ToText([Week Number]) & " - " & Number.ToText([Year]))

     

     With kind regards from the town where the legend of the 'Pied Piper of Hamelin' is at home
    FrankAT (Proud to be a Datanaut)