Power Query Transform a Column based on Another Column

前端 未结 6 1979
谎友^
谎友^ 2020-12-16 05:10

I keep thinking this should be easy but the answer is evading me. In Excel Power Query, I would like to transform the value in each row of a column based on another column\

6条回答
  •  失恋的感觉
    2020-12-16 05:41

    Sorry I was not so good editing the formula, this now works:

    = Table.ReplaceValue(   #"Removed Columns", 
                       each [Contract Start Date],
                        each if [Contract Start Date] < #date(2019,01,01) then #date(2019,01,01) else
                              [Contract Start Date]
                        ,Replacer.ReplaceValue,
                        {"Contract Start Date"})
    

提交回复
热议问题