Forum Discussion

Syndicate_Admin's avatar
Syndicate_Admin
Administrator
4 years ago
Solved

Power Query Nested JSON (Registry-> Record List -> Registry)

Hello I'm dealing with a JSON from a survey app that has the answers to each survey question nested. I have this raw data in the table: questions_answers ...
  • v-yalanwu-msft's avatar
    4 years ago

    Hi, Syndicate_Admin ;

    You could change it to excel table like below:

    questions_answers submitted_on spent_time
    {
                "QuestionId":"16306365464751",
                "Question":"¿Qué tan probable es que recomiendes tu experiencia de cambio de equipo a un colega?",
                "Answer":"10",
                "type":"range"
             }
    2021-10-04T16:19:36.570Z 28
    {
            "QuestionId": "16306366720030",
            "Question": "¿Qué tan fácil fue realizar el cambio de tu equipo?",
            "Answer": "5",
            "type": "range"
          }
    2021-10-04T16:19:36.570Z 28
     {
            "QuestionId": "16306365464752",
            "Question": "¿Cómo calificas tu experiencia en general? ",
            "Answer": 5,
            "type": "webform_rating"
          }
    2021-10-04T16:19:36.570Z 28
    {
            "QuestionId": "16312899762243",
            "Question": "¿Por qué nos das esta calificación?",
            "Answer": "La persona que me ayudo con el cambio de mi equipo fue muy amable y el cambio fue muy rápido ",
            "type": "textfield"
          }
    2021-10-04T16:19:36.570Z 28
    {
            "QuestionId": "16327629594800",
            "Question": "Tipo de RollOut (HP/MAC/OTRO)",
            "Answer": "HP",
            "type": "hidden"
          }
    2021-10-04T16:19:36.570Z 28
    {
            "QuestionId": "16306365464751",
            "Question": "¿Qué tan probable es que recomiendes tu experiencia de cambio de equipo a un colega?",
            "Answer": "10",
            "type": "range"
          }
    2021-10-04T16:48:54.886Z 75
    {
            "QuestionId": "16306366720030",
            "Question": "¿Qué tan fácil fue realizar el cambio de tu equipo?",
            "Answer": "5",
            "type": "range"
          }
    2021-10-04T16:48:54.886Z 75
    {
            "QuestionId": "16306365464752",
            "Question": "¿Cómo calificas tu experiencia en general? ",
            "Answer": 5,
            "type": "webform_rating"
          }
    2021-10-04T16:48:54.886Z 75
    {
            "QuestionId": "16312899762243",
            "Question": "¿Por qué nos das esta calificación?",
            "Answer": "La anticipación y los webinars para respaldo fueron útiles ",
            "type": "textfield"
          }
    2021-10-04T16:48:54.886Z 75
    {
            "QuestionId": "16327629594800",
            "Question": "Tipo de RollOut (HP/MAC/OTRO)",
            "Answer": "HP",
            "type": "hidden"
          }
    2021-10-04T16:48:54.886Z 75
    {
            "QuestionId": "16306365464751",
            "Question": "¿Qué tan probable es que recomiendes tu experiencia de cambio de equipo a un colega?",
            "Answer": "10",
            "type": "range"
          }
    2021-10-04T16:55:04.245Z 40
    {
            "QuestionId": "16306366720030",
            "Question": "¿Qué tan fácil fue realizar el cambio de tu equipo?",
            "Answer": "5",
            "type": "range"
          }
    2021-10-04T16:55:04.245Z 40
    {
            "QuestionId": "16306365464752",
            "Question": "¿Cómo calificas tu experiencia en general? ",
            "Answer": 5,
            "type": "webform_rating"
          }
    2021-10-04T16:55:04.245Z 40
    {
            "QuestionId": "16312899762243",
            "Question": "¿Por qué nos das esta calificación?",
            "Answer": "Por qué el ingeniero que me ayudó sabía bien lo que hacia",
            "type": "textfield"
          }
    2021-10-04T16:55:04.245Z 40
    {
            "QuestionId": "16327629594800",
            "Question": "Tipo de RollOut (HP/MAC/OTRO)",
            "Answer": "HP",
            "type": "hidden"
          }
    2021-10-04T16:55:04.245Z 40

    2.Then import to Power BI.

    3.click the questions_answers column then tranform JSON.

    4.Expand it 

    The final output is shown below:

    https://www.youtube.com/watch?v=ipI6mrWLQKA

    https://www.youtube.com/watch?v=6A55DmIHqBY

     

    Best Regards,
    Community Support Team_ Yalan Wu
    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.