cancel
Showing results forย 
Search instead forย 
Did you mean:ย 

Converting value of input schema to distinct columns

darshthakkar
Valued Contributor

Hi Team,

Iโ€™m reading a text file and wanted to fetch DISTINCT columns out of the data itself, screenshot below for your reference.

.txt file:
image

When I read the above data in snaplogic, the format is:
image

Tried with $.merge(), GroupByN, CSV parse (contains headers) and Aggregrate (Concat) but didnโ€™t find any luck.

Any suggestions over here?
Thank you.

Regards,
Darsh

1 ACCEPTED SOLUTION

koryknick
Employee
Employee

Assuming it is always 8 properties, here is an example pipeline
Community 16940 - Converting value to distinct columns_2023_06_20.slp (6.3 KB)
Community-16940.txt (177 Bytes)

View solution in original post

10 REPLIES 10

darshthakkar
Valued Contributor

Thank you for sharing the additional details, @koryknick.
Yup, my feed will only have 8 rows so all good over there but I was exploring the documentation, thought of bringing it to your notice so that you can help me understand it better.

As always, thank you so much for the additional details and tips.