This is a C# sample for sending your data into Streaming Dataset of Microsoft Power BI.
これは Microsoft Power BI の ストリーミングデータセットにデータを POST する C# のサンプルプログラムです。
This sample needs a Streaming Dataset of Microsoft Power BI. So before you execute this sample, you must create Streaming Dataset of Microsoft Power BI. Read the following link:
Real-time streaming in Power BI
このサンプルは Microsoft Power BI のストリーミングデータセットが必要です。事前にストリーミングデータセットを作成しておく必要があります。以下のリンクを参照してください。
-
Download this project.
-
Open Visual Studio 2017.
-
Open a file "PBIRealtimeStreaming.cs", and in the following code, input a Power BI REST API URL of your Streaming Dataset.
string realTimePushURL = "This is a Power BI REST API URL of your Streaming Dataset";
-
Open a file "Program.cs", and in the following code, input your category name as you like.(anything OK, example : Test-20180625)
var category = "Input your category name";
-
Build your application and exeute debug. So the application sends data into your Streaming Dataset of Power BI Service.
ここから日本語。
-
このプロジェクトをダウンロード
-
Visual Studio 2017 で開く
-
"PBIRealtimeStreaming.cs" を開き, ソースコードの下記の部分に Streaming Dataset の URL を入力する
string realTimePushURL = "This is a Power BI REST API URL of your Streaming Dataset";
-
"Program.cs" を開いて、ソースコードの下記の部分に、何でもよいのでカテゴリ名を入力する(例: Test-20180625 など)
var category = "Input your category name";
-
ビルドして、デバッグ実行すると、Power BI Service のストリーミングデータセットにデータが送られる