MSDN : タイム インテリジェンス関数 (DAX)ファクトテーブル"受注"の "受注日" と "締切日" は 受注と請求に関連する日付とみなしていくつかの集計を行えるようにしてみる。
Office.com : Power Pivot in Excel のタイム インテリジェンス
ここで必要になるのは 日付テーブル。なので、データモデルにテーブル"カレンダー"を追加する。
MSDN : タイム インテリジェンス関数 (DAX)ファクトテーブル"受注"の "受注日" と "締切日" は 受注と請求に関連する日付とみなしていくつかの集計を行えるようにしてみる。
Office.com : Power Pivot in Excel のタイム インテリジェンス
Power BI Desktop からの発行Power BI Service で[データの取得] をする場合、
let
Table1 = #table(type table [F01 = text, F02 = Int64.Type], {{"a", 10}, {"b", 20}}),
Table2 = #table(type table [F01 = text, F02 = text], {{"c", "30"}, {"d", "40"}}),
Table3 = #table(type table [F01 = text, f02 = Int64.Type], {{"e", 50}, {"f", 60}}),
Table4 = #table(type table [F01 = text, F03 = Int64.Type], {{"g", 70}, {"h", 80}})
in
Table.Combine({Table1, Table2, Table3, Table4})
// Table1 & Table2 & Table3 & Table4
であるとき、Microsoft PowerApps: power your business with appsからリクエストしてみてください。そのうち案内が届くと思います。
Web.Contents(url as text, optional options as nullable record) as binary引数 "options" を使ってリクエスト時に Content などを渡すとよい。そこで、Zabbix を使うことがあったので、Power Query + Zabbix API を試してみた。なお、Zabbix API は JSON-RPC というプロトコルなので、JSON 形式のパラメータを送信 / JSON 形式で結果を受信する。Content-Type は application/json-rpc。
{
"jsonrpc": "2.0",
"method": "apiinfo.version",
"params": [],
"id": 1
}
こんな感じなので、Power Query ではlet
ZabbixServer = "http://Server/zabbix/api_jsonrpc.php",
RequerstJSON = Text.Format(
"{""jsonrpc"":""2.0"",""method"":""apiinfo.version"",""id"":#{0}}",
{Number.Round(Number.RandomBetween(1,9999))}
),
Options = [Headers = [#"Content-Type" = "application/json-rpc"],
Content = Text.ToBinary(RequerstJSON)],
Response = Web.Contents(ZabbixServer, Options),
ImportedJSON = try Json.Document(Response),
Result = if ImportedJSON[HasError]
then ImportedJSON[Error]
else if ImportedJSON[Value][id] = null
then ImportedJSON[Value][error]
else ImportedJSON[Value]
in
Result
MSDN:Power Query (informally known as "M") Formula referenceメインはこれでよいかと。 ただし、日本語訳はまだないのでこんな感じで見ることはできる。
New ways to get the Excel business analytics features you needの通りで、
新規に "新しいPower BI" だけを使えるようにしてみたということ。