Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
4 years ago
Solved

Power Query Custom Column with year and month

Hi to all, i try to add a custom column from my two date fields Start and End, but after, i got an error:  Expression.Error: The value isn't a single-character string. Details: Value=202103 For c...
  • Anonymous's avatar
    Anonymous
    4 years ago

    Solve my task with this code:

     

    let 
    Test = 
    List.Distinct(List.Transform({[Start_Date__c],[End_Date__c]}, each Date.ToText(_, "yyyyMM")))
    in
    Test