另一个表的两个日期之间的日期列表
我从另一个表格和今天的表格中创建了两个日期(最小值和最大值)之间的日期列表。
let
first = List.Min(#"Mizan (Banka&Kasa)"[Tarih]),
last = List.Max(
{(List.Max(#"Mizan (Banka&Kasa)"[Tarih])), Date.From(DateTime.LocalNow())}
),
howmanydays = Number.From(last) - Number.From(first) + 1,
Source = List.Dates(first, howmanydays, #duration(1, 0, 0, 0))
in
Source
但是我敢肯定,必须有一种更简单的方法来获得此列表。
有什么想法吗?
I created the list of the dates between two dates (minimum and maximum) from another table where i compare the max date and today.
let
first = List.Min(#"Mizan (Banka&Kasa)"[Tarih]),
last = List.Max(
{(List.Max(#"Mizan (Banka&Kasa)"[Tarih])), Date.From(DateTime.LocalNow())}
),
howmanydays = Number.From(last) - Number.From(first) + 1,
Source = List.Dates(first, howmanydays, #duration(1, 0, 0, 0))
in
Source
But I am sure there must be an easier way to achieve this list.
Any ideas ?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
这几乎是它,除非您更喜欢省略howmanydays并使用,
然后扩展和转换格式到迄今为止
Thats pretty much it, unless you prefer to omit howmanydays and use
then expand and convert format to date
如果要使用另一个表的日期创建一个表,也许最好的是:
table_name
是您要选择的表table_name [date]
是您要获得最后日期的单元格If you want to create a table with the dates of another table maybe the best is:
table_name
is the table you want to selecttable_name[Date]
is the cell you want to get the last date