Forum Discussion

SridharDasari's avatar
SridharDasari
Copper Contributor
Sep 12, 2020

Excel can Convert JSON data to Table in Excel

Hi,

 

Actually i am getting data from external source through API by using "From Web" option in excel & getting JSON data. But after getting data in excel, trying to transform that JSON data into Table by using power query. But, it is not working. JSON data is not transforming into proper table.

 

I have tried pivot, transpose options in power query, still not working. Attached Excel for reference that what is required & what i am getting.

 

Let me know if any solutions are available for this. Any insights are highly appreciated.

 

Thanks

Sridhar Dasari

6 Replies

  • Riny_van_Eekelen's avatar
    Riny_van_Eekelen
    Platinum Contributor

    SridharDasari Not sure how you connected to the JSON data, but I copied the table in columns A and B on the "Actual Data" sheet to columns E and F. then I created a fresh query on that table and loaded the end result into Sheet1. Looks like what you asked for. I hope this is helpful and trust you will be able to figure out what I did to create the output.

     

     

    • SridharDasari's avatar
      SridharDasari
      Copper Contributor

      Hi Riny_van_Eekelen ,

       

      I have got that JSON data by using an API, nothing more than that.

       

      Thanks for your solution, the solution you provided is exactly what i needed. But, i need to know why you copied the columns A & B to columns E & F. Why don't you do on the columns i have given.

       

      I have tried in original columns it is not working. Will you please elaborate how can i proceed with that. Let me know if any issues if we do on the same columns.

       

      Thanks

      Sridhar Dasari

       

      • Riny_van_Eekelen's avatar
        Riny_van_Eekelen
        Platinum Contributor

        SridharDasari When I worked on my initial answer I had some error messages form the original data. Can't remember exactly what. Didn't have much time so decided to just copy it to get a clean start, assuming you would be able to adopt my query to your own file.

         

        Now, I had a chance to apply the same steps to your original data, called "Table5".

Resources