Forum Discussion
Subset of dates from a table using Power query
- 1 year ago
Hello Judy,
You can try below M script
let
Today = Date.From(DateTime.LocalNow()),
StartDate = Date.StartOfMonth(Date.AddMonths(Today, -26)),
DateList = List.Dates(StartDate, Duration.Days(Today - StartDate) + 1, #duration(1,0,0,0)),
DateTable = Table.FromList(DateList, Splitter.SplitByNothing(), {"Date"}, null, ExtraValues.Error)
in
DateTable
Thanks,
PankajIf this solution helps, please accept it and give a kudos, it would be greatly appreciated.
Hi Judy101,
I wanted to check if you had the opportunity to review the information provided. Please feel free to contact us if you have any further questions. If my response has addressed your query, please accept it as a solution and give a 'Kudos' so other members can easily find it.
Thank you.