Skip to main content
Announcements
Introducing a new Enhanced File Management feature in Qlik Cloud! GET THE DETAILS!
cancel
Showing results for 
Search instead for 
Did you mean: 
amit_n
Contributor
Contributor

how to filter the column data using Tmap or using any other component.?

how to filter the column data using Tmap or using any other  component.?

Please find the attached sample screen shot.

 

 How to  filter the column which is having InstanceID inside the dimension column. filter the InstabceID based in  ID available .

eg: InstanceID  = 1ccc219a-db2f-4877-87e0-f19cd8d31420  ---> one file

      InstanceId = e339090a-0c18-49de-993f-0c8c3fc57721  ---> to another file.

 

Labels (3)
1 Solution

Accepted Solutions
Anonymous
Not applicable

Hi,

 

    Please refer the below job flow for results.

0683p000009M1dD.png

 

The component screenshots are as below.0683p000009M1RN.pnginput excel read

 

0683p000009M1eZ.pngJson extract

 

0683p000009M1ee.pngremove empty rows

 

0683p000009M1ej.pngtFlowtoIterate

 

0683p000009M1eo.pngtrowgenerate

 

0683p000009M1et.pngoutput in separate files

 

Please refer the output files below.

 

0683p000009M1Za.png0683p000009M0rE.png0683p000009M0rF.png

 

 

Could you please mark the topic as resolved since solution has been provided? Kudos are also welcome 🙂

 

Warm Regards,

 

Nikhil Thampi

View solution in original post

9 Replies
Anonymous
Not applicable

Hi,

 

     The data in that column is in JSON format. Please use tExtractJSONFields component to extract the data to separate columns. Once the data is available for instance ID in separate column, you can filter using expression column in tMap for downstream activities.

 

     Please refer the below link for details about component.

 

https://help.talend.com/reader/mjoDghHoMPI0yuyZ83a13Q/LcNrhqdlyheCLpwyUwgJQw

 

    If the answer has helped you, could you please mark the topic as resolved? Kudos are also welcome 🙂

 

Warm Regards,

 

Nikhil Thampi

amit_n
Contributor
Contributor
Author

As i m using Talend open source . The dimension column will be keep on changing every time, the columns inside the dimension its not constant. So i have kept it in single column.

 

after converting the json to csv file these are the columns data has.

 

I need to filter the dimension column which is having InstanceID based on the ID.

Anonymous
Not applicable

Hi,

 

    Could you please provide the sample data in a csv file and file share it to Talend community?

 

    It is very difficult to setup and data from screen shots. 

 

Warm Regards,

 

Nikhil Thampi

amit_n
Contributor
Contributor
Author

Could you please share ur mail ID. so can send u the sample file to ur mail.

Anonymous
Not applicable

Hi,

 

     Please post it in community as attachment after removing confidential details. The aim of the community is that everyone can learn together. So if the attachment is available in community, it will help everyone to learn 🙂

 

Warm Regards,

 

Nikhil Thampi

amit_n
Contributor
Contributor
Author

Please find the attached sample file for ur reference. We need to filter the column based on InstanceID.


sample_file.xlsx
Anonymous
Not applicable

Hi,

 

    Please refer the below job flow for results.

0683p000009M1dD.png

 

The component screenshots are as below.0683p000009M1RN.pnginput excel read

 

0683p000009M1eZ.pngJson extract

 

0683p000009M1ee.pngremove empty rows

 

0683p000009M1ej.pngtFlowtoIterate

 

0683p000009M1eo.pngtrowgenerate

 

0683p000009M1et.pngoutput in separate files

 

Please refer the output files below.

 

0683p000009M1Za.png0683p000009M0rE.png0683p000009M0rF.png

 

 

Could you please mark the topic as resolved since solution has been provided? Kudos are also welcome 🙂

 

Warm Regards,

 

Nikhil Thampi

amit_n
Contributor
Contributor
Author

Thank you so much for the solution. I ll implement it in my job. If  get any doubt i will reply back.

amit_n
Contributor
Contributor
Author

Hi Nikhil,

 

I have one more requirement . I have to split the columns which are inside the column,

I have attached the file. Please let me know how to split property column furthur.

 

  


split_property.txt