Forum Discussion
Boycie92
5 years agoResolver I
Power Query Date Table: Current 6 Months
Hi, I am hoping someone can help. I have created a date table in Power Query using the following code: let fnDateTable = (StartDate as date, EndDate as date, optional FYStartMonthNum as n...
lbendlin
5 years agoSuper User
Doing it in M code is the same (sort of) as doing it in a calculated column. It is only computed once during the dataset refresh. If you do not refresh your dataset frequently then the meaning of "CurrentDate" will get skewed as you move on from the date when the dataset was last refreshed.
So yes, your approach would work, but it would not be dynamic.