Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
Hi,
I have JSON in a column that I have to parse. Unfortunately JSON I have isn't good quality one - there are quotations missing. I tried to parse it with R but I got to know it's not supported in MS Cloude Service, where the report is supposed to be published to, so I have to deal with it any other way. What my coworkers already did is to replace in M every occurance of certain keys and delimiters but it doesn't work all the time. I suspect it's inserting double quotes sometime.
Here is how the data look in general:
[{key:"DigitsOnlyValue",anotherKey:"StringValue",yetAnotherKey:datetime,oneMoreKey:null},{<anotherElementOfArray>}]
As you can see no keys have quotations. When it comes to values it's slightly better, as most of them is wrapped but datetime ones aren't. Few examples ot them (including space in the middle):
Nulls seem okay for me and I haven't encounered any true/false values in my dataset.
What would be the best way to handle this? Doing it in Power Query would be the best!
@MarcelBeug, maybe you could help me? I've seen lots of your great responses.
Solved! Go to Solution.
Hi,
I wasn't permited to post JSON. There is a decision taken that we shall create an SSIS import to SQL and make it our source so the data will be already in Power BI friendly format (tables only). Thank you for your commitment, unfortunately we won't be able to solve this problem here together.
Hi FAM_USER,
It seems that you want to use M code to modify your JSON datasource, right? If possible, could you please inform me your JSON file and your expected output, then I will test and reproduce this in my environment.
Please do mask sensitive data before uploading.
Thanks for your understanding and support.
Best Regards,
Zoe Zhi
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi,
I wasn't permited to post JSON. There is a decision taken that we shall create an SSIS import to SQL and make it our source so the data will be already in Power BI friendly format (tables only). Thank you for your commitment, unfortunately we won't be able to solve this problem here together.
Hi,
I wasn't permited to post JSON. There is a decision taken that we shall create an SSIS import to SQL and make it our source so the data will be already in Power BI friendly format (tables only). Thank you for your commitment, unfortunately we won't be able to solve this problem here together.
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
102 | |
53 | |
21 | |
13 | |
11 |