Introduction to Alteryx Designer

Hello everyone, it has been a long time since I have decided to write some technical detailed post with my in house commentary. This post will be about Alteryx Designer and how to calculated COGS and Ending Inventory using FIFO (First In First Out) method (with the Alteryx and Power Query Files), I will add LIFO and Weighted Average methods in next post. Some of you might be familiar with Alteryx Designer; here’s the brief intro to the software:

Alteryx Designer is a powerful data analytics tool that allows users to perform data preparation, blending, and analysis through a user-friendly drag-and-drop interface. It enables seamless data integration from multiple sources, including databases and cloud services, without the need for coding. The software supports advanced analytics such as predictive and spatial analysis and integrates with visualization tools like Tableau and Qlik. Users can automate repetitive tasks, enhancing workflow efficiency, and facilitate collaboration by sharing insights and workflo

Data Files for analysis

We will be performing analysis using following data files.

1. Beginning Inventory

This file contains the initial stock at the beginning of the accounting period. It typically includes columns such as:

  • ProductID: The unique identifier for each product.
  • OnHand: The quantity of each product available at the beginning.
  • Price: The cost per unit of each product.

2. Purchases

This file tracks the products purchased during the accounting period. It includes columns like:

  • ProductID: The unique identifier for each product.
  • Quantity: The number of units purchased.
  • PurchasePrice: The cost per unit of the purchased products.

3. Sales

This file records the products sold during the accounting period. It generally includes:

  • ProductID: The unique identifier for each product.
  • SalesQuantity: The number of units sold.

Data Types in Each File

Beginning Inventory:

ColumnData TypeDescription
ProductIDTextUnique identifier for each product
OnHandIntegerQuantity of each product on hand initially
PriceDecimalCost per unit of each product
Beginning Inventory Excel file data type

Purchases:

ColumnData TypeDescription
ProductIDTextUnique identifier for each product
QuantityIntegerNumber of units purchased
PurchasePriceDecimalCost per unit of purchased products
Purchases Excel file data type

Sales:

ColumnData TypeDescription
ProductIDTextUnique identifier for each product
SalesQuantityIntegerNumber of units sold
Sales Excel file data type

Overview of Data

The data in these files will be used to calculate the Cost of Goods Sold (COGS) and ending inventory for the accounting period. Here’s how they interact:

  1. Beginning Inventory: Provides the initial quantities and costs of products available at the start of the period.
  2. Purchases: Adds to the inventory, increasing the quantity of products available and impacting the average cost in the weighted average method.
  3. Sales: Reduces the inventory, and helps determine COGS based on the chosen inventory valuation method (FIFO, LIFO, Weighted Average).

By combining and processing these data sets, we can calculate the COGS and the ending inventory value using different inventory valuation methods.

But what is COGS and Ending Inventory?

Cost of Goods Sold (COGS) and Ending Inventory

Cost of Goods Sold (COGS):

  • COGS represents the direct costs attributable to the production of the goods sold by a company.
  • It includes the cost of the materials and labor directly used to create the good.
  • It excludes indirect expenses such as distribution costs and sales force costs.

Ending Inventory:

  • Ending Inventory is the value of goods available for sale at the end of the accounting period.
  • It represents the cost of inventory that is not sold during the period and is carried forward to the next period.

FIFO, LIFO and Weighted Average Methods

Inventory Valuation Methods

1. FIFO (First-In, First-Out):

  • Assumes that the oldest inventory items are sold first.
  • Ending inventory consists of the most recently purchased or produced items.
  • Commonly used when inventory costs are rising, as it results in lower COGS and higher profits.

2. LIFO (Last-In, First-Out):

  • Assumes that the newest inventory items are sold first.
  • Ending inventory consists of the oldest inventory items.
  • Commonly used when inventory costs are rising, as it results in higher COGS and lower profits.

3. Weighted Average Cost:

  • Assumes that all units have the same cost, calculated as the weighted average of the costs of all units available for sale.
  • Simplifies inventory management by averaging the cost of all items.

Perpetual vs Periodic Inventory system

Perpetual Inventory System:

  • Continuously updates inventory records after each purchase or sale.
  • Provides real-time inventory data and helps in better inventory management.
  • More expensive and complex to implement due to continuous tracking.

Periodic Inventory System:

  • Updates inventory records at the end of the accounting period.
  • Simplifies the accounting process but can result in less accurate inventory data during the period.
  • Less expensive and easier to implement compared to the perpetual system.

Major differences

Differences Between FIFO, LIFO, and Weighted Average

AspectFIFOLIFOWeighted Average
AssumptionOldest items sold firstNewest items sold firstAll items have the same average cost
COGS CalculationLower during inflationHigher during inflationBased on average cost
Ending InventoryHigher value during inflationLower value during inflationMid-range value
Impact on ProfitsHigher during inflationLower during inflationModerate
Implementation ComplexityModerateModerateSimplest
RealismReflects actual flow of goods in many casesLess realistic in terms of actual flow of goodsSimplified approach
Perpetual SystemRequires continuous trackingRequires continuous trackingRequires continuous tracking
Periodic SystemEasier to implementEasier to implementEasiest to implement
Table of differences
MethodCOGS CalculationEnding Inventory CalculationPerpetual System ImplementationPeriodic System Implementation
FIFOOldest items sold firstNewest items remain in inventoryContinuous tracking of inventoryEasier to implement
LIFONewest items sold firstOldest items remain in inventoryContinuous tracking of inventoryEasier to implement
Weighted AverageAverage cost of all items availableWeighted average cost of remaining itemsContinuous tracking of inventoryEasiest to implement
Summary

How to do FIFO method for COGS and Ending Inventory in Alteryx Designer?

Worry not, I will guide you through the process. But first understand, what is being done in the figure below. This is what your final workflow in Alteryx will look like.

FIFO Technique in Alteryx Designer

Steps in Alteryx

Steps in Alteryx Workflow

  1. Read Data:
    • Input the BeginningInventory, Purchases, and Sales data from the respective files.
  2. Sort Data:
    • Sort the beginning inventory and purchases by ProductID and Date.
  3. Summarize Data:
    • Summarize the total quantities and costs for each product.
  4. Join Data:
    • Join the beginning inventory and purchases on ProductID.
    • Join the combined inventory with sales data on ProductID.
  5. Calculate Running Totals:
    • Use running totals to keep track of inventory usage.
  6. Calculate COGS:
    • Compute the Cost of Goods Sold using the FIFO method.
  7. Calculate Ending Inventory:
    • Determine the remaining inventory quantities and their costs.

First thing first. load the data.

Then, select the variables and make sure they are as expected (dates should be foratted as dates, and numbers as numbers).

Then the running total.

Join the data.

Use formula in Alteryx to calculate the rest and save file.

FILES (Alteryx Workflow FIFO) that you need!!!!

Above link has files in Excel (Power Query way, I will add how I did this here later) and Alteryx Designer Workflow. Feel free to try and comment if there are any issues. Happy Learning!

Leave a Reply

Discover more from Technical Gamer

Subscribe now to keep reading and get access to the full archive.

Continue reading