> ## 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 inventory data combined, calculate discrepancies, flag which SKUs are out of sync, and sort the results so discrepancies appear first. Copy and paste this prompt into Parabola:

  ```text wrap theme={null}
  First, calculate a new column called "Inventory Discrepancy" by subtracting "Shopify Quantity" from "NetSuite Quantity".

  Then add a column called "Discrepancy Status":
  - If "Inventory Discrepancy" equals 0, set it to "✅ No Discrepancy"
  - Otherwise, set it to "❌ Discrepancy"

  Then sort the data so that rows where "Discrepancy Status" is "❌ Discrepancy" appear at the top.

  Finally, filter out any rows where "SKU" contains the word "RETIRED".
  ```
</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/-8HaJzuyyzC_BGUC/images/brand-operators-transform-canvas.png?fit=max&auto=format&n=-8HaJzuyyzC_BGUC&q=85&s=423a4cce1500a77537141120396e01cc" alt="Transform data canvas view" width="3448" height="1908" data-path="images/brand-operators-transform-canvas.png" />

    <img src="https://mintcdn.com/parabola-7119dfb0/-8HaJzuyyzC_BGUC/images/brand-operators-transform-data.png?fit=max&auto=format&n=-8HaJzuyyzC_BGUC&q=85&s=5b78f466a914a494b1782a6caa1786b9" alt="Transform data step results" width="3456" height="1914" data-path="images/brand-operators-transform-data.png" />
  </Frame>
</Accordion>
