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

Transform and Visualize COVID-19 Data

ptaylor
Employee
Employee

This sample pipeline is explained in detail by a SnapLogic Blog post to appear shortly.

COVID-19 Example_2020_04_08.slp (12.8 KB)

3 REPLIES 3

ptaylor
Employee
Employee

The SnapLogic Blog post is forthcoming, but you can see the content now on Medium.

Hereโ€™s an updated pipeline to fix an issue related to sorting by date. For example, after sorting, โ€œ10/1/20โ€ should be after โ€œ9/30/20โ€ but was before it.
COVID-19 Example_2021_04_15.slp (14.4 KB)

In this version, Iโ€™ve inserted a new Mapper to reformat the dates so that they sort correctly:
Screen Shot 2021-04-19 at 2.40.01 PM

Hereโ€™s the expression as text:
Date.parse($Date,"MM/dd/yy").toLocaleDateString({"format":"yyyy/MM/dd"})