Skip to main content
Announcements
Accelerate Your Success: Fuel your data and AI journey with the right services, delivered by our experts. Learn More
cancel
Showing results for 
Search instead for 
Did you mean: 
RenanDRN
Contributor
Contributor

Pivot in Script?

How i can transform this table:

Product_Name code Date
AAA1234 6601;6602;6603;6604 10/10/2022 00:01:49;11/10/2022 00:30:00;12/10/2022 01:23:15; 12/10/2022 02:56:02
BBB1234  6605;6606;6607;6608 12/10/2022 00:01:49;13/10/2022 00:30:00;12/10/2022 01:23:15; 12/10/2022 02:56:02


Into this:
OBS: Separated into pairs on the same line

Product_Name code Date Product_Name code Date
AAA1234 6601 10/10/2022 00:01:49 AAA1234 6602 11/10/2022 00:30:00
AAA1234 6603 12/10/2022 01:23:15 AAA1234 6604 12/10/2022 02:56:02
BBB1234 6605 10/10/2022 00:01:49 BBB1234 6606 11/10/2022 00:30:00
BBB1234 6607 12/10/2022 01:23:15  BBB1234 6608 12/10/2022 02:56:02
Labels (2)
1 Reply
BrunPierre
Partner - Master
Partner - Master

Use the subfield() function like this to split a field into multiple records.

SubField(code,';') as code
SubField(Date,';') as Date