> ## Documentation Index
> Fetch the complete documentation index at: https://parabola.io/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Transforming data

<Frame>
  <iframe src="https://www.youtube.com/embed/nvzGZwGsZWI" title="Transforming data" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" referrerpolicy="strict-origin-when-cross-origin" allowfullscreen />
</Frame>

In this lesson, you'll learn the three broad categories of data transformations — calculations, business logic, and formatting — and see how to apply them in your flow.

***

<Card icon="sparkles" title="Building challenge">
  With your shipments and delivery data combined, calculate expected delivery dates, flag late shipments, and filter down to only the shipments that missed their SLA by 2 or more days. Copy and paste this prompt into Parabola:

  ```text wrap theme={null}
  First, calculate a new column called "Expected Delivery" by adding "SLA_Days" days to "Order_Date".

  Then calculate a new column called "Days Late" as the number of days between "Expected Delivery" and "Delivery Date".

  Next, add a "Delivery Status" column:
  * If "Days Late" is greater than 0, set it to "Late"
  * Otherwise set it to "On Time"

  Finally, filter to only keep rows where "Delivery Status" is not blank.
  ```
</Card>

<Accordion title="Check your work">
  <Note>The steps added to your canvas and their exact documentation may differ from what you see below — every AI response is unique. The important thing is that your resulting data set matches what you see here.</Note>

  <Frame>
    <img src="https://mintcdn.com/parabola-7119dfb0/4oJXhMkpxpea7fKi/images/freight-logistics-transform-canvas.png?fit=max&auto=format&n=4oJXhMkpxpea7fKi&q=85&s=ad0c224d7ddac49f3193faa2e54a0db8" alt="Transform data canvas view" width="3456" height="1916" data-path="images/freight-logistics-transform-canvas.png" />

    <img src="https://mintcdn.com/parabola-7119dfb0/4oJXhMkpxpea7fKi/images/freight-logistics-transform-data.png?fit=max&auto=format&n=4oJXhMkpxpea7fKi&q=85&s=3270db8a93f7a743b348db9b014caca6" alt="Transform data step results" width="3456" height="1916" data-path="images/freight-logistics-transform-data.png" />
  </Frame>
</Accordion>
