06:42
First I have created two parameters. `dBaseIP ` and `dBase` and the in blank query I have added
let Source = (Query as text) => let Source = Sql.Database(dBaseIP, dBase , [Query=Query, CreateNavigationProperties=false])
in Source
in Source
let Source = (Query as text) => let Source = Sql.Database(dBaseIP, dBase , [Query=Query, CreateNavigationProperties=false])
in Source
in Source
let
tdy = Date.From(DateTime.LocalNow()),
yest = Date.AddDays(tdy , - 1),
sQuery = Table.FromRecords({
[sQuery = "execute ED_DS_TRANS_DETAIL01 @DateFrom ='" & Date.ToText(yest,[Format="yyyy-MM-dd"]) & "', @DateTo = '" & Date.ToText(tdy,[Format="yyyy-MM-dd"]) & "'"
]}),
#"Invoked Custom Function" = Table.AddColumn(sQuery, "Query2", each #"Fnc Query"([sQuery]))
in
#"Invoked Custom Function"
tdy = Date.From(DateTime.LocalNow()),
yest = Date.AddDays(tdy , - 1),
sQuery = Table.FromRecords({
[sQuery = "execute ED_DS_TRANS_DETAIL01 @DateFrom ='" & Date.ToText(yest,[Format="yyyy-MM-dd"]) & "', @DateTo = '" & Date.ToText(tdy,[Format="yyyy-MM-dd"]) & "'"
]}),
#"Invoked Custom Function" = Table.AddColumn(sQuery, "Query2", each #"Fnc Query"([sQuery]))
in
#"Invoked Custom Function"
« first day next day → last day (24 days later) »
Transcript for
Sep27
Sep '2228
Oct7
Discussion between Moeez and Umut K
Imported from a comment discussion on stackoverflow.com/questi...