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

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more

Reply
Anonymous
Not applicable

JSON - Remove Specific Row/Column

Dear Power BI Community,

 

I was hoping to see if anyone had worked around this issue before. I am making an API call through Python to get data from a service that is in the JSON format.

 

I am having trouble with a specific column called "customer_notes" - it can cause the parse to error out sometimes.

 

Is there any way to remove the "customer_notes": "(whatever the customer types in)", before I use the power query parser?

 

Basically need a way to say remove "customer_notes": to the next comma

 

Thank you!

1 ACCEPTED SOLUTION
Anonymous
Not applicable

@Anonymous  not sure if this answers your question as I might need more context. Are you just trying to parse the JSOn object and only return the elements except for "customer notes". If so I recommend trying the json-normalize library. Try "from pandas.io.json import json_normalize" then "json_normalize(#API Response JSON Object#)" to convert the json object into a DF you want. From there simply parse the DF and do not extract the values of "customer notes" and feed this data into a new data structure that you can feed into Power BI via CSV or however else you are doing it. Apologies if I totally misunderstood the context or what you were asking for. Best!

View solution in original post

4 REPLIES 4
Anonymous
Not applicable

table.deleteRow(15)
.then(function(){
    //Call your api to delete from JSON file 
})
.catch(function(error){
    //handle error deleting row
});row.delete()
.then(function(){
    //run code after row has been deleted
})
.catch(function(error){
    //handle error deleting row
});
Anonymous
Not applicable

@Anonymous  not sure if this answers your question as I might need more context. Are you just trying to parse the JSOn object and only return the elements except for "customer notes". If so I recommend trying the json-normalize library. Try "from pandas.io.json import json_normalize" then "json_normalize(#API Response JSON Object#)" to convert the json object into a DF you want. From there simply parse the DF and do not extract the values of "customer notes" and feed this data into a new data structure that you can feed into Power BI via CSV or however else you are doing it. Apologies if I totally misunderstood the context or what you were asking for. Best!

Anonymous
Not applicable

Yes exactly, I am trying to return all the elements except customer notes!

 

Let me look into that getting this all to even work was a whirlwind so I appreciate the help.

Anonymous
Not applicable

@Anonymous no worries. let me know if you need further help with normalizing the JSON or parsing the DF you create. I can possibly send over snippets of the Python code I used to pull data from the Google Maps Distance matrix API if it would help you. Best!

Helpful resources

Announcements
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

60 days of Data Days Carousel

Data Days 2026

Join Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Top Solution Authors