如何在 Power Bi 高级编辑器中将今天的日期作为动态输入日期传递?
how to pass today date as dynamic input date in power bi advanced editor?
我正在尝试在高级查询编辑器中传递截止到今天的日值
let
Source = GoogleBigQuery.Database(null),
#"apple-5a221" = Source{[Name="apple-5a221"]}[Data],
analytics_187358390_Schema = #"apple-5a221"{[Name="analytics_187358390",Kind="Schema"]}[Data],
events_intraday_20200129_Table = analytics_187358390_Schema{[Name="events_intraday_20200129",Kind="Table"]}[Data]
in
events_intraday_20200129_Table
传递今日动态日期:
花了一个小时后我找到了解决方案[Name="events_intraday_
"&datetime&"
”并声明datetime = DateTime.ToText(DateTime.LocalNow(), "yyyyMMdd")
let
datetime = DateTime.ToText(DateTime.LocalNow(), "yyyyMMdd"),
Source = GoogleBigQuery.Database(null),
#"apple-5a221" = Source{[Name="apple-5a221"]}[Data],
analytics_187358390_Schema = #"apple-5a221"{[Name="analytics_187358390",Kind="Schema"]}[Data],
events_intraday_20200129_Table = analytics_187358390_Schema{[Name="events_intraday_"&datetime&"",Kind="Table"]}[Data]
in
events_intraday_20200129_Table
传递昨天动态日期:
日期时间 = Date.ToText(Date.AddDays(Date.From(DateTime.FixedLocalNow()),-1), "yyyyMMdd")
let
datetime = Date.ToText(Date.AddDays(Date.From(DateTime.FixedLocalNow()),-1), "yyyyMMdd"),
Source = GoogleBigQuery.Database(null),
#"prutopia-5a221" = Source{[Name="apple-5a221"]}[Data],
analytics_187358390_Schema = #"apple-5a221"{[Name="analytics_187358390",Kind="Schema"]}[Data],
events_datetime_Table = analytics_187358390_Schema{[Name="events_"&datetime&"",Kind="Table"]}[Data]
in
events_datetime_Table
我正在尝试在高级查询编辑器中传递截止到今天的日值
let
Source = GoogleBigQuery.Database(null),
#"apple-5a221" = Source{[Name="apple-5a221"]}[Data],
analytics_187358390_Schema = #"apple-5a221"{[Name="analytics_187358390",Kind="Schema"]}[Data],
events_intraday_20200129_Table = analytics_187358390_Schema{[Name="events_intraday_20200129",Kind="Table"]}[Data]
in
events_intraday_20200129_Table
传递今日动态日期:
花了一个小时后我找到了解决方案[Name="events_intraday_
"&datetime&"
”并声明datetime = DateTime.ToText(DateTime.LocalNow(), "yyyyMMdd")
let
datetime = DateTime.ToText(DateTime.LocalNow(), "yyyyMMdd"),
Source = GoogleBigQuery.Database(null),
#"apple-5a221" = Source{[Name="apple-5a221"]}[Data],
analytics_187358390_Schema = #"apple-5a221"{[Name="analytics_187358390",Kind="Schema"]}[Data],
events_intraday_20200129_Table = analytics_187358390_Schema{[Name="events_intraday_"&datetime&"",Kind="Table"]}[Data]
in
events_intraday_20200129_Table
传递昨天动态日期:
日期时间 = Date.ToText(Date.AddDays(Date.From(DateTime.FixedLocalNow()),-1), "yyyyMMdd")
let
datetime = Date.ToText(Date.AddDays(Date.From(DateTime.FixedLocalNow()),-1), "yyyyMMdd"),
Source = GoogleBigQuery.Database(null),
#"prutopia-5a221" = Source{[Name="apple-5a221"]}[Data],
analytics_187358390_Schema = #"apple-5a221"{[Name="analytics_187358390",Kind="Schema"]}[Data],
events_datetime_Table = analytics_187358390_Schema{[Name="events_"&datetime&"",Kind="Table"]}[Data]
in
events_datetime_Table