Forum Discussion
Power Query Date Table: Current 6 Months
"This should be dynamic and adjust to the day/date you look at the data"
That means you would need a measure
HI 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
- lbendlin5 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.
- Boycie925 years agoResolver I
Hilbendlin,
My dataset would be getting refreshed everyday. So I am not concenred about that. I am just confused as to how I can build that flag in and get it to work the way I want.
Thanks,
Boycie92
- lbendlin5 years agoSuper User
When does your fiscal year start, in April or October?