在电源查询中列出日期和自定义表

发布于 2025-02-13 19:50:56 字数 677 浏览 0 评论 0原文

我正在尝试在电源查询中添加自定义列的目标,以从日期列表中返回表。

所使用的语法如下:

= Table.AddColumn(TypeDate, "AddTable", each Table.FromList(
    List.Dates([Date_begin],1,#duration(1,0,0,0)
    )))

其中:

  1. typedate是power查询“ addtable”的最后一步的名称
  2. ,是添加的自定义列的名称
  3. 是我列表的开始

[date_begin]是一列,该列是一个日期,尽管语法 似乎是正确的,电源查询返回一个错误所描述的错误:

Expression.Error: We could not convert the value #date(2021, 1, 1) on to Text.
Details:
    Value=01/01/2021
    Type=[Type]

有人知道如何解决这个问题吗? 我将显示一个图像,其中电源查询显示错误。

在此处进行选择以查看电源查询界面

I'm trying to Add Custom Column in Power Query with the objective to return a Table from a List of dates.

The syntax used is as follows below:

= Table.AddColumn(TypeDate, "AddTable", each Table.FromList(
    List.Dates([Date_begin],1,#duration(1,0,0,0)
    )))

where:

  1. TypeDate is the name of last step in Power Query
  2. "AddTable" is the name of added custom column
  3. [Date_begin] is a column with dates to be considered as the start of my list

Although the syntax seems correct, Power Query returns an error described as follows:

Expression.Error: We could not convert the value #date(2021, 1, 1) on to Text.
Details:
    Value=01/01/2021
    Type=[Type]

Does anyone know how to handle this problem?
I'll show an image where Power Query shows the error.

Select here to see Power Query interface

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

我只土不豪 2025-02-20 19:50:58

您的问题尚不清楚

您想使用date_begin和mes_final添加一个具有每行日期表的列?

#"Added Custom" = Table.AddColumn(TypeDate, "AddTable", each Table.TransformColumnTypes(Table.FromList({Number.From([Date_Begin])..Number.From([Mes_Final])}, Splitter.SplitByNothing(), {"date"}),{{"date", type date}}))   

Your question is unclear

You want to add a column that has a table of dates for each row, using Date_Begin and Mes_Final?

#"Added Custom" = Table.AddColumn(TypeDate, "AddTable", each Table.TransformColumnTypes(Table.FromList({Number.From([Date_Begin])..Number.From([Mes_Final])}, Splitter.SplitByNothing(), {"date"}),{{"date", type date}}))   

enter image description here

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文