Builds client SSR approach, sunsets old cljs.
This commit is contained in:
8
resources/powerqueries/expected_deposits.txt
Normal file
8
resources/powerqueries/expected_deposits.txt
Normal file
@@ -0,0 +1,8 @@
|
||||
let
|
||||
Source = Json.Document(Web.Contents("https://app.integreatconsult.com/api/queries/%s/results/json", [Headers=[#"Accept-Encoding"="gzip"]])),
|
||||
rawtable = Table.FromList(Source, Splitter.SplitByNothing(), null, null, ExtraValues.Error),
|
||||
mytable = Table.FromRecords(Table.TransformRows(rawtable, (x) as record => Record.FromList(x[Column1], {"Date", "Total", "Fee"}))),
|
||||
#"Changed Type" = Table.TransformColumnTypes(mytable,{{"Total", Currency.Type}, {"Fee", Currency.Type}, {"Date", type date}}),
|
||||
#"Sorted Rows" = Table.Sort(#"Changed Type",{{"Date", Order.Ascending}})
|
||||
in
|
||||
#"Sorted Rows"
|
||||
8
resources/powerqueries/refunds.txt
Normal file
8
resources/powerqueries/refunds.txt
Normal file
@@ -0,0 +1,8 @@
|
||||
let
|
||||
Source = Json.Document(Web.Contents("https://app.integreatconsult.com/api/queries/%s/results/json", [Headers=[#"Accept-Encoding"="gzip"]])),
|
||||
rawtable = Table.FromList(Source, Splitter.SplitByNothing(), null, null, ExtraValues.Error),
|
||||
mytable = Table.FromRecords(Table.TransformRows(rawtable, (x) as record => Record.FromList(x[Column1], {"Date", "Type", "Total", "Fee"}))),
|
||||
#"Changed Type" = Table.TransformColumnTypes(mytable,{{"Total", Currency.Type}, {"Fee", Currency.Type}, {"Date", type date}}),
|
||||
#"Sorted Rows" = Table.Sort(#"Changed Type",{{"Date", Order.Ascending}})
|
||||
in
|
||||
#"Sorted Rows"
|
||||
8
resources/powerqueries/sales_category.txt
Normal file
8
resources/powerqueries/sales_category.txt
Normal file
@@ -0,0 +1,8 @@
|
||||
let
|
||||
Source = Json.Document(Web.Contents("https://app.integreatconsult.com/api/queries/%s/results/json", [Headers=[#"Accept-Encoding"="gzip"]])),
|
||||
rawtable = Table.FromList(Source, Splitter.SplitByNothing(), null, null, ExtraValues.Error),
|
||||
mytable = Table.FromRecords(Table.TransformRows(rawtable, (x) as record => Record.FromList(x[Column1], {"Date", "Category", "Name", "Total", "Tax", "Discount"}))),
|
||||
#"Changed Type" = Table.TransformColumnTypes(mytable,{{"Total", Currency.Type}, {"Tax", Currency.Type}, {"Discount", Currency.Type}, {"Date", type date}}),
|
||||
#"Sorted Rows" = Table.Sort(#"Changed Type",{{"Date", Order.Ascending}, {"Category", Order.Ascending}})
|
||||
in
|
||||
#"Sorted Rows"
|
||||
8
resources/powerqueries/sales_summary.txt
Normal file
8
resources/powerqueries/sales_summary.txt
Normal file
@@ -0,0 +1,8 @@
|
||||
let
|
||||
Source = Json.Document(Web.Contents("https://app.integreatconsult.com/api/queries/%s/results/json", [Headers=[#"Accept-Encoding"="gzip"]])),
|
||||
rawtable = Table.FromList(Source, Splitter.SplitByNothing(), null, null, ExtraValues.Error),
|
||||
mytable = Table.FromRecords(Table.TransformRows(rawtable, (x) as record => Record.FromList(x[Column1], {"Date", "Total", "Tax", "Tip", "Service Charge", "Discount", "Returns"}))),
|
||||
#"Changed Type" = Table.TransformColumnTypes(mytable,{{"Total", Currency.Type}, {"Tax", Currency.Type}, {"Discount", Currency.Type}, {"Service Charge", Currency.Type}, {"Returns", Currency.Type}, {"Tip", Currency.Type}, {"Date", type date}}),
|
||||
#"Sorted Rows" = Table.Sort(#"Changed Type",{{"Date", Order.Ascending}})
|
||||
in
|
||||
#"Sorted Rows"
|
||||
8
resources/powerqueries/tenders.txt
Normal file
8
resources/powerqueries/tenders.txt
Normal file
@@ -0,0 +1,8 @@
|
||||
let
|
||||
Source = Json.Document(Web.Contents("https://app.integreatconsult.com/api/queries/%s/results/json", [Headers=[#"Accept-Encoding"="gzip"]])),
|
||||
rawtable = Table.FromList(Source, Splitter.SplitByNothing(), null, null, ExtraValues.Error),
|
||||
mytable = Table.FromRecords(Table.TransformRows(rawtable, (x) as record => Record.FromList(x[Column1], {"Date", "Type", "Processor", "Total", "Tip"}))),
|
||||
#"Changed Type" = Table.TransformColumnTypes(mytable,{{"Total", Currency.Type}, {"Tip", Currency.Type}, {"Date", type date}}),
|
||||
#"Sorted Rows" = Table.Sort(#"Changed Type",{{"Date", Order.Ascending}})
|
||||
in
|
||||
#"Sorted Rows"
|
||||
Reference in New Issue
Block a user