I am converting a Spotfire report to Power BI and am stuck with one of the calculated column. I have the below calculation in Spotfire:
when
([Target Date]>=DateAdd("day",-DayOfWeek(DateTimeNow()),DateTimeNow())) and
([Target Date]<=DateAdd("Week",8,DateTimeNow()))
then First([Start of Week]) OVER ([WeekNum],[Year])
else NULL
END
Here I do not understand how to write the then clause
First([Start of Week]) OVER ([WeekNum],[Year])
in Power Query or DAX
Would appreciate any help or guidance.