Get certified for free when you join Fabric Data Days 2026 and dive into Fabric, Power BI, SQL, AI, and other essential data skills.
Join nowJuly 28 - August 9 | Final Round of the Power BI Dataviz World Championships. This is your chance. Learn more
Hi,
Can anyone help me in converting string column to record in query editor.
I am pulling from a source which has some values in JSON and some as string for same column.
Sample Dataset:
| TimeStamp | EventType | CapabilityType | CapabilityValue | CapabilityStatus |
| 4/18/2018 8:30:28 PM +05:30 | SYSTEM | BATTERY_STATUS | [Record] | ENABLED |
| 4/18/2018 8:30:29 PM +05:30 | SYSTEM | INTERNET_CONNECTION | ONLINE | ENABLED |
| 4/18/2018 9:47:53 PM +05:30 | SYSTEM | BATTERY_STATUS | [Record] | ENABLED |
| 4/18/2018 9:47:53 PM +05:30 | SYSTEM | INTERNET_CONNECTION | ONLINE | ENABLED |
| 4/18/2018 9:47:58 PM +05:30 | SYSTEM | DEVICE_USAGE | 14.86 | ENABLED |
| 4/19/2018 10:48:05 AM +05:30 | SYSTEM | BATTERY_STATUS | [Record] | ENABLED |
| 4/19/2018 10:48:06 AM +05:30 | SYSTEM | INTERNET_CONNECTION | ONLINE | ENABLED |
| 4/19/2018 10:48:08 AM +05:30 | SYSTEM | DEVICE_USAGE | 0.5 | ENABLED |
| 4/19/2018 11:13:54 AM +05:30 | SYSTEM | BATTERY_STATUS | [Record] | ENABLED |
| 4/19/2018 11:13:54 AM +05:30 | SYSTEM | INTERNET_CONNECTION | ONLINE | ENABLED |
| 4/19/2018 11:27:59 AM +05:30 | SYSTEM | BATTERY_STATUS | [Record] | ENABLED |
| 4/19/2018 11:27:59 AM +05:30 | SYSTEM | INTERNET_CONNECTION | ONLINE | ENABLED |
I need to convert these string values to record so that i can then expand the column properly.
Any suggestion will be appreciated.
@ImkeF You are an expert in Power Query M. Hoping a response from you.
Prateek Raina
Solved! Go to Solution.
Hi @prateekraina, you're welcome.
I've wrote a blogpost about it: http://www.thebiccountant.com/2017/07/25/how-to-expand-a-column-that-cannot-be-expanded-in-power-bi-...
Imke Feldmann (The BIccountant)
If you liked my solution, please give it a thumbs up. And if I did answer your question, please mark this post as a solution. Thanks!
How to integrate M-code into your solution -- How to get your questions answered quickly -- How to provide sample data -- Check out more PBI- learning resources here -- Performance Tipps for M-queries
Hi @prateekraina, you're welcome.
I've wrote a blogpost about it: http://www.thebiccountant.com/2017/07/25/how-to-expand-a-column-that-cannot-be-expanded-in-power-bi-...
Imke Feldmann (The BIccountant)
If you liked my solution, please give it a thumbs up. And if I did answer your question, please mark this post as a solution. Thanks!
How to integrate M-code into your solution -- How to get your questions answered quickly -- How to provide sample data -- Check out more PBI- learning resources here -- Performance Tipps for M-queries
If you love stickers, then you will definitely want to check out our community sticker challenge, Barcelona edition!
Check out the July 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 28 | |
| 28 | |
| 20 | |
| 19 | |
| 19 |
| User | Count |
|---|---|
| 43 | |
| 31 | |
| 18 | |
| 18 | |
| 16 |