Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
her_abs
Regular Visitor

How to add data to Power BI from newline delimited JSON file in blob storage?

I have telemetery data from KEPServerEX's MQTT client being published to the IoT Hub. This data is then queried in stream analytics to create individual JSON values from each message which can have up to 1000 individual tag values per message. My query in stream analytics is:


<start code>

SELECT
    event.timestamp as messageTS,
    val.ArrayValue.id,
    val.ArrayValue.v,
    val.ArrayValue.t as valueTS
INTO blobstorage
FROM
    mqtt AS event
CROSS APPLY GetArrayElements(event.[values]) AS val
</end code>

 

This provides a very nicely individually formatted JSON message like:
{"messageTS":1576108485408,"id":"example_Tag","v":910,"valueTS":1576108481860}

 

My blob storage is filled with these messages. Although they are properly formatted JSON message by themselves, they are part of a newline deliminted JSON file in my blob container (http://ndjson.org/).

 

How can I get these records into Power BI such that they were a complete list (i.e. had brackets on each end and were deliminted by commas)?

1 ACCEPTED SOLUTION
v-yuta-msft
Community Support
Community Support

@her_abs ,

 

I would suggest you to refer to similar thread below:

https://community.powerbi.com/t5/Power-Query/Change-JSON-Blob-data-during-import/td-p/32121

 

Community Support Team _ Jimmy Tao

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

1 REPLY 1
v-yuta-msft
Community Support
Community Support

@her_abs ,

 

I would suggest you to refer to similar thread below:

https://community.powerbi.com/t5/Power-Query/Change-JSON-Blob-data-during-import/td-p/32121

 

Community Support Team _ Jimmy Tao

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

Check out the June 2025 Power BI update to learn about new features.

June 2025 community update carousel

Fabric Community Update - June 2025

Find out what's new and trending in the Fabric community.