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,
Thank you for posting your query in the Microsoft Fabric Community Forum, and thanks to pankajnamekar25 & danextian for sharing valuable insights.
Could you please confirm if your query has been resolved with the solutions provided? If they have, kindly mark the helpful response and accept it as the solution. This will assist other community members in resolving similar issues more efficiently.
Thank you.