| TX ID | Source | Dest | Amount | Type | GNN Score | Risk |
|---|
Set the following environment variables to embed a published Power BI report:
POWERBI_EMBED_URL
POWERBI_REPORT_ID
POWERBI_ACCESS_TOKEN
Click Get Data → Web to add a REST API data source.
Use one of the endpoints below, e.g.http://localhost:8081/api/powerbi/transactions
Power BI will parse the JSON array. Use Power Query Editor to expand columns, set data types (Amount → Decimal, Timestamp → DateTime).
Recommended visuals: Matrix (risk × type), Scatter (src_prob vs dst_prob, size=amount), Line chart (fraud trend by step), Card (total fraud count & rate).
Publish to Power BI Service and configure a Scheduled Refresh using a data gateway for automatic updates.
let
Source = Json.Document(
Web.Contents("http://localhost:8081/api/powerbi/transactions")
),
ToTable = Table.FromList(Source, Splitter.SplitByNothing(), null, null, ExtraValues.Error),
Expanded = Table.ExpandRecordColumn(ToTable, "Column1",
{"tx_id","timestamp","step","source","destination","amount",
"type","src_fraud_prob","dst_fraud_prob","risk_level",
"is_fraud_predicted","label"}),
TypedCols = Table.TransformColumnTypes(Expanded, {
{"amount", type number},
{"src_fraud_prob", type number},
{"dst_fraud_prob", type number},
{"step", Int64.Type},
{"is_fraud_predicted", type logical},
{"label", Int64.Type}
})
in
TypedCols
// Click an endpoint above to preview