Forum Discussion
JSON and Direct Query
- Anonymous8 years ago
Anonymous,
Instead of parsing JSON in Power BI Desktop, using SQL statement to combine relational rows and JSON elements with CROSS APPLY and OPENJSON() functions during the import process, then import all the data.
For moredetails about query JSON data using T-SQL, please review the following articles.
https://docs.microsoft.com/en-us/sql/t-sql/functions/openjson-transact-sql
https://sqlwithmanoj.com/2015/11/02/store-json-data-in-a-table-openjson-and-json_value-functions-sql-server-2016-part-4/
Regards,
Lydia
Anonymous,
Instead of parsing JSON in Power BI Desktop, using SQL statement to combine relational rows and JSON elements with CROSS APPLY and OPENJSON() functions during the import process, then import all the data.
For moredetails about query JSON data using T-SQL, please review the following articles.
https://docs.microsoft.com/en-us/sql/t-sql/functions/openjson-transact-sql
https://sqlwithmanoj.com/2015/11/02/store-json-data-in-a-table-openjson-and-json_value-functions-sql-server-2016-part-4/
Regards,
Lydia
Hi,
I have same problem but we are using DirectQuery into BigQuery tables, which I don't have access to how the column is parsed. Is there some other solution to working with JSON in a DirectQuery column, apart from string manipulation in DAX?