我正在尝试在Power Query中添加自定义列,以输出特定日期范围的价格。尝试了以下M代码,但出现错误:
if [Date]<#date(08/12/2019) then "11.50"
else if [Date]>#date(08/11/2019) and [Date]<#date(10/14/2019) then "0.00"
else if [Date]>#date(10/13/2019) and [Date]<#date(12/30/2019) then "11.50"
else "2.50")