Forum Discussion
Boycie92
Resolver I
5 years agoPower 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...
Boycie92
Resolver I
5 years agoHI lbendlin
I have somthing simialr built into the M code: CurrentDateRecord = Table.SelectRows(AddFY, each ([Date] = CurrentDate))
Would that not work?
If it has to be a caculated column then I would be ok with that.
what formual would I need to use for it?
Thanks,
Boycie92
lbendlin
Super User
5 years agoDoing 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.