Don't miss your chance to take the Fabric Data Engineer (DP-600) exam for FREE! Find out how by attending the DP-600 session on April 23rd (pacific time), live or on-demand.
Learn moreNext up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. Register now
I have an Azure SQL DB that is storing JSON data in one of the columns. Long story on why it is structured this way, but the short answer is "No, I can't change the way the data is stored." This is what the data looks like:
Each variable has a four digit label [e.g. "7x3d"], and then has either a single value [e.g. "12"] or an array of two nested variables, each with their own values or array of values [e.g.{"choice_values":["ABC", "123"], "other_values": ["XKCD"]}.
The challenge I am facing is how to convert the JSON String of data into useable values. My approach is to use some mix of split by delimiter, filter, and or replace characters to split the "form_values" column into two columns (like an unpivoted table) attribute name ["7x3d"] and then values ["12"]. What I cannot figure out is the right mix of steps in Power Query to transform the column.
Two Questions:
Solved! Go to Solution.
Hi @bhmann,
To recognize the JSON string embedded in a SQL table, please add a custom column like this:
Custom=Json.Document([ColumnName])
Then, you can expand the new column to extract your desired values.
Regards,
Yuliana Gu
Hi @bhmann,
To recognize the JSON string embedded in a SQL table, please add a custom column like this:
Custom=Json.Document([ColumnName])
Then, you can expand the new column to extract your desired values.
Regards,
Yuliana Gu
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
| User | Count |
|---|---|
| 45 | |
| 43 | |
| 39 | |
| 19 | |
| 15 |
| User | Count |
|---|---|
| 68 | |
| 65 | |
| 31 | |
| 28 | |
| 24 |