Parsing a Simple Field with Single Level JSON data using From_field()

แชร์
ฝัง
  • เผยแพร่เมื่อ 12 ธ.ค. 2024

ความคิดเห็น • 13

  • @CotisoHanganu
    @CotisoHanganu ปีที่แล้ว +2

    Very inspired and important clarification regarding the CustID field pre-existing in the json. Tx

  • @pauljohansson4809
    @pauljohansson4809 4 หลายเดือนก่อน +1

    very useful, thanks

  • @sabka_answer
    @sabka_answer ปีที่แล้ว +1

    Very informative and useful. will use this field in my current project. we are dealing with json data and for that we had written python script to convert single column value into multi column.

    • @QlikOfficial
      @QlikOfficial  ปีที่แล้ว

      Awesome - thanks for sharing!

  • @dineshnandan5101
    @dineshnandan5101 ปีที่แล้ว +1

    Wow, very informative, will try morrow.

  • @CotisoHanganu
    @CotisoHanganu ปีที่แล้ว +1

    Tx for sharing !
    Do have some questions, Mike:
    1. Where and how did you defined the customer_id as a key field between the original table and the new table ?
    2. It seems to me that in case the JSON field has various subfields in different rows, there will be separate resident tables for each subset of subfields, while there is no more key to the main table. Is it the right behaviour to be expected ?
    3. It seems to me that in case one row has the JSON cell empty , there will be a "file not found error" => perhaps the error handling need some improvements ?
    4. Should FROM_FIELD work in Qlikview, as well ?
    Tx

    • @QlikOfficial
      @QlikOfficial  ปีที่แล้ว +1

      Hi Cotiso - let's continue this conversation in the qlik community - please send me the thread when you are ready and I can address.

    • @CotisoHanganu
      @CotisoHanganu ปีที่แล้ว +3

      First question has the answer in the video, actually: in the demo, the JSON contains, redundantly, the CustID that is also as a structured field within the original table.What should be done in case it's not!? First idea was to add to JSON also the extra Key(s) , with a replace of the ending }, during the fist load.

  • @eduardochild9944
    @eduardochild9944 ปีที่แล้ว +1

    Can i use the From_Field to parse XML files?

    • @QlikOfficial
      @QlikOfficial  ปีที่แล้ว +1

      Hi Eduardo - yes there should be identifier "XmlSimple"
      check this out:
      community.qlik.com/t5/New-to-Qlik-Sense/Loading-an-XML-field-in-SQL-Server-into-Qlik-Sense/td-p/25978

    • @eduardochild9944
      @eduardochild9944 ปีที่แล้ว

      it worked perfectly ty@@QlikOfficial

  • @pauljohansson4809
    @pauljohansson4809 2 หลายเดือนก่อน +1

    @pauljohansson4809
    16 seconds ago (edited)
    from_field is very easy to use. In my case though, the performance was simply to poor. Do you have performance issues when unwraping using from_field? - look into doing on the DB side.

    • @QlikOfficial
      @QlikOfficial  2 หลายเดือนก่อน +1

      Hi Paul - from_field using JSON is sort of experimental and is not meant to be used large data prep or transformations. Depending on what you are doing there may be a better way.