Power BI dataset creation issue

Haris Papageorge 251 Reputation points
2021-08-26T06:59:45.447+00:00

Hi,

I am sending MQTT data from my device to my IoT Hub and would like to visualize the data for demonstration purposes.
I am following this tutorial and I am getting stuck because the dataset I create in my output (in the stream analytics job) is not present in Power BI.

Any ideas as to what I should do?

Also the data I sent is not json formatted. The data is sent raw via the paho MQTT library in C. Is that an issue?

Can MQTT data be visualized this way???

thanks

Azure IoT Hub
Azure IoT Hub
An Azure service that enables bidirectional communication between internet of things (IoT) devices and applications.
{count} vote

Answer accepted by question author
  1. QuantumCache 20,676 Reputation points Moderator
    2021-08-27T05:32:46.567+00:00

    Hello @NickWeliodro-9668

    Thanks for posting this issue. You may be interested in checking the telemetry received in the IoTHub side. Please try the steps similar in another document such as: https://learn.microsoft.com/en-us/azure/iot-hub/tutorial-routing-view-message-routing-results

    Step 1: Code to send the telemetry in the UTF8 encoded , .JSON format.

    Check the encoding of the telemetry message sent.

    C# code to send the encoded message as utf-8 instead of utf-32.
    Below are the properties I have used. Please try these in your code as well.

    message.ContentEncoding = "utf-8";  
    message.ContentType = "application/json";  
    

    image

    So when you read the telemetry messages from any tool, such as VS code or Device explorer, you will see the below format telemetry .

    [{"deviceId":"Contoso-Test-Device","temperature":21.319264327790247,"humidity":68.288192045077778,"pointInfo":"This is a normal message."}]Properties:  
    'level': 'normal'  
    

    Step 2: Provide the right info in the ASA job , Input

    image

    Step 3: Check the Dataset created in the PowerBi app.

    127042-image.png

    Finally, I was able to create a PowerBi report with the Dataset.
    image

    Please comment in the below section for further help in this matter.

    1 person found this answer helpful.

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.