Push Data into Power BI Streaming Datasets with C#


  1. Thanks for a very good tutorial, Excellent level of detail, To the point and works first time. Thanks

    1. Author

      Thank you very much for the feedback!

      1. Dear CHRIS it is not working with me maybe because i am beginner to data pushed, i am using visual studio console application.

  2. Thanks for your explanation. Is there any post for streaming data from sql server in power bi using c#
    Thanks in advance.

  3. Hi Very useful code.
    need to add one code line for HttpPostAsync method as second line. Unless “HttpPostAsync” method not work.

    System.Net.ServicePointManager.SecurityProtocol = System.Net.SecurityProtocolType.Tls12;

    //—– Full code Part as bellow ——

    static async Task HttpPostAsync(string url, string data)
    HttpContent content = new StringContent(data);
    //allow SecurityProtocolType —–
    System.Net.ServicePointManager.SecurityProtocol = System.Net.SecurityProtocolType.Tls12;
    HttpResponseMessage response = await client.PostAsync(url, content);
    return response;

Leave a Reply (Markdown formatting available)

This site uses Akismet to reduce spam. Learn how your comment data is processed.