Home / How-to / Prepare your data
Prepare data with steps
Fix a raw table one small step at a time, and see what each step does to your rows while you build it.
The short version
- A Stepped Transform Prep reads one source element and runs a list of steps over it, from the top down. Each step works on the table the step above it gave.
- Pick a step type in Step Management and click Add. Drag a step to move it, or press Alt+Up and Alt+Down. Hover a step to see its type.
- The Schema and Data tabs show the result up to the step you pick. At the right of the tabs is the number of rows the result has in all; the Data tab shows the first 100 of them.
- The Data tab shows the result up to the selected step, so you can check every step as you go.
- The steps cover columns, text, values, rows and new columns. Joins, unions, pivots and Group By have their own guide.
- When the data the prep reads is in SQL Server, the whole prep runs on the server.
In this guide
What it is
Data rarely arrives ready to use. A date comes in as text, a code has spaces at the end, and cancelled orders sit next to shipped ones. A Stepped Transform Prep is where you fix that, before the data reaches your model.
A prep reads one element, its source, and runs a list of steps over it. Each step does one small job: remove a column, change a type, keep some rows, add a calculated column. The steps run from the top of the list down, and each one works on the table that the step above it gave. The result is a new table, which grains, dimensions and other preps can use like any other element's.
The source itself never changes. If a step turns out wrong, change it or delete it, and the table is back to what it was.
If you have used Power Query in Excel or Power BI, the idea will feel familiar: the step list plays the part of its Applied Steps.
Before you start
You need:
- An element to prepare. This guide uses
Orders, an Excel Acquisition of the Orders sheet inSales.xlsx. See Bring in Excel workbooks. - That element processed at least once, so the preview has rows to show. The steps work without it, but the Data tab stays empty until the source has rows. See Processing and schedules.
The Orders sheet has these columns:
| Column | Example |
|---|---|
| Order ID | SO-1001 |
| Order Date, Ship Date | 2026-03-14, 2026-03-17 (Ship Date is empty until the order ships) |
| Site Code, Product Code, Customer ID | E01, A-1020, C-104 |
| Channel | Online or Store |
| Units, Unit Price, Cost, Discount | 12, 24.50, 180.00, 0.10 (Discount can be empty) |
| Status | Shipped, Open or Cancelled |
| ana@northwind.com |
Create Orders Prep
This takes about five minutes.
- In the element list, click the + on the Preps group. You can also right-click the group and pick Add Stepped Transform Prep.
- In Add element, type
Orders Prepas the Name and click OK. - Open
Orders Prepin the Preps group, if it isn't open already. - Next to Source element, pick
Orders. Its columns now enter the prep, and the Schema tab at the bottom lists each one with its type. - In Step Management, pick Remove Columns from the list and click Add. The step appears in the list, and its settings open in the Step Designer beside it.
- Tick Remove next to Email. No report needs your customers' email addresses.
- Open the Data tab. Above the rows it says "Result up to step: Remove Columns", and Email is gone.
- Add a Custom Column step named Revenue, with the value
[Units] * [Unit Price]. The Hu++ guide walks through it. - Save the prep.
That is the whole pattern: add a step, set it in the Step Designer, check the Data tab, and go on to the next one.
Work with steps
The step list lives in Step Management, on the left of the editor.
| To do this | Do this |
|---|---|
| Add a step | Pick its type in the list at the top and click Add. It goes right after the selected step, or at the end when no step is selected |
| Change a step | Select it. Its settings show in the Step Designer |
| Name a step | Type in Step name, for example Drop email. The list shows your name, or the step type while the name is blank |
| Move a step | Drag it up or down the list. A line shows where it will land. Or select it and press Alt+Up or Alt+Down |
| Remove a step | Select it and click Delete step |
Order matters. A step only sees the columns that the steps above it leave. A step that uses Revenue has to come after the Custom Column that makes it, and a step placed after Remove Columns can't use Email. After you move a step, click through the steps and check the Data tab.
Tip: Name each step after what it does: "Drop email", "Fix status", "Revenue". Months later, the list still reads like a recipe.
Check each step in the preview
The bottom of the editor shows the table as it stands after the selected step, not after the whole list. Click any step to see its result. When you open a prep, the last step is selected, so you start with the end result.
- The Schema tab lists each Column name and Column type.
- The Data tab shows the rows, up to 100 of them.
- Above both, a caption says what you are looking at: "Result up to step: Fix status", or "Source (no step selected)" while no step is selected.
The preview follows every edit and undo, and reads the rows again when a processing run finishes.
When your data is in SQL Server, the preview runs the steps there and shows the first 100 rows of the result. Otherwise it runs them on your computer over the source's first 100 processed rows, so after a filter step you may see only a few.
When the preview can't show rows
A note above the rows says why:
| The note says | What it means |
|---|---|
| "Bind a source to see its rows here." | No Source element is picked yet |
| "The source hasn't been processed, so there are no rows to show yet: process it, and they appear here when the run finishes." | Process the source element |
| "No rows pass these steps." | A filter step drops every row. Click the steps one at a time to find the one that does it |
| "Showing the processed rows in memory: the SQL preview couldn't run (…)." | The rows come from your computer instead of SQL Server. The text in brackets is the first line of SQL Server's error |
| "The SQL preview couldn't run (…), and the source hasn't been processed for rows to show in its place." | Neither way worked. Fix what the brackets name, or process the source |
| "The preview couldn't be built: …" | Something else went wrong, and the rest of the note says what |
Steps for columns
Most step designers list the columns entering the step, with their types. You tick or type beside the ones the step should change.
Remove Columns and Remove Other Columns
Remove Columns drops the columns you tick under Remove, and keeps the rest. Remove Other Columns is the reverse: tick Keep beside the columns you want, and every other column goes.
Remove Other Columns suits a wide source where you need only a few columns, but it also drops any column added to the source later.
Rename Columns
Type a New name beside any column. A blank leaves the name as it is.
If your sheet calls the column Qty, rename it to Units to match the rest of the project. When two columns would share a name, one gets a number after it, as in Units 2.
Change Type
Pick a New type beside a column. A blank leaves it as it is. The types are:
| Type | Holds |
|---|---|
| Number, Big Number | Whole numbers. Big Number holds larger ones |
| Decimal | Numbers with decimals |
| Text, Paragraph, Book | Text of up to 100 characters, up to 4,000, or any length |
| Date, Date & Time | A date, or a date with a time |
| True or False | Yes or no |
A value that won't convert becomes empty: "n/a" in a Number column, for example. Text longer than its type holds is cut short. If Order Date arrives as text, change it to Date here, above any step that needs a date.
Combine Columns
Pick a First column and a Second column, type the Join value that goes between them, and give a New column name. The result is a text column at the end, called Combined if you leave the name blank. An empty value counts as empty text. Tick Remove the two source columns to keep only the result.
Order ID and Product Code joined by - give an order line key, SO-1001-A-1020: one value for each row of the Order Lines grain.
Split Column By Delimiter
Pick the Source column, type the Delimiter, and choose a Split mode. The delimiter can be one character or several, and it must match exactly, capitals included. The new columns are text and go at the end. The source column stays unless you tick Remove the source column.
| Split mode | Gives |
|---|---|
| Left and right of the first delimiter | Two columns: the value before the first delimiter, and everything after it |
| Left-most value | One column: the value before the first delimiter, or the whole value when there is none |
| Right-most value | One column: the value after the last delimiter, or the whole value when there is none |
| By position | One column: the value at the Position you pick, 1 for the first. Empty for a row with fewer values |
| All values, shown with a count such as All 3 values | A column for each value. The count comes from your data |
The name boxes show the names the step will use — after the source column: Product Code Left and Product Code Right, Product Code 2 for position 2, or Product Code 1, 2 and 3 for all values. Click a box and type to replace its name. Empty a box and its default comes back, and follows the source column if you change it. Split Email at @ with Right-most value for the domain, northwind.com, or Product Code at - with Left-most value for the product family, A.
All values counts the most values any row has in the source's first 100 processed rows, and keeps that number. When the prep runs, a value past it is dropped. Until the source is processed, you type the Number of values yourself.
Split Column By Position
This step cuts a value at a character Position, counting from 1. The left column gets the characters before the position, and the right column gets the rest. Position 4 splits SO-1001 into SO- and 1001.
Name the parts in Left column name and Right column name, or leave them blank for Order ID Left and Order ID Right. Tick Remove the source column to keep only the parts.
Steps for text
The text steps change only columns typed as Text, Paragraph or Book. Change a column's type first if it came in as something else.
Change Text Format
Pick a Format, Upper Case or Lower Case. Under Apply to, choose All text fields, or Selected text fields and tick Apply beside the ones to change. Site codes typed by hand as e01 or E01 all become E01 with Upper Case on Site Code.
A step from an older version may show a format that is no longer offered, such as Proper Case. See When something goes wrong.
Trim Whitespace
This step takes the spaces off both ends of text values, in All text fields or in the Selected text fields you tick. Spaces inside a value stay.
A join already ignores spaces at the end of a key, but not at the start. A Customer ID of C-104, with a space in front, won't match C-104 in Customers. Trim it before you join the two.
Find & Replace
Type the Find text and the Replace with text, and choose All text fields or Selected text fields. The step replaces the text wherever it appears inside a value, not only where it is the whole value. Capitals don't matter unless you tick Match case.
- Find
Canceledand replace it withCancelledin Status, so every cancelled order reads the same. - Leave Replace with blank to delete the text. Find
-with nothing turnsA-1020intoA1020.
Steps for values
Replace Nulls
A missing value, an empty cell, gets the value you type in Replace nulls with, in All columns or the Selected columns you tick. A new step starts with all columns, so pick yours. The value is converted to each column's type. Where it won't convert, such as n/a in a Decimal column, the cells stay empty, and the designer names those columns while you can still change the value.
Replace nulls with 0 in Discount, so revenue after discount has a number to work with. In a single calculation, COALESCE does the same.
Round Number
The designer lists the Number, Big Number and Decimal columns. Beside each one, pick a Rounding: Leave as is, Round, Ceiling or Floor. Round keeps the places you pick under To, from 3 decimal places down to thousands, and a half goes away from zero: 2.345 to 2 places is 2.35. Ceiling rounds up and Floor rounds down, to a whole number. Each column keeps its name and type.
Round Unit Price to 2 decimal places, so 24.4999 becomes 24.50. A number held as text needs a Change Type step first.
Format Date
This step writes the Date and Date & Time columns you tick as text, in the Format you pick: MM/dd/yyyy, yyyy-MM-dd, MMMM d, yyyy and 16 more. Each format in the list shows 31 January 2024 written that way. Month and day names are in English. To read the letters, see Dates in Custom formats.
The column keeps its name but becomes Text, and a Date Dimension needs a real date. So format a copy:
- Add a Custom Column named Order Month, with the value
[Order Date]. - Add a Format Date step, tick Order Month, and pick
MMM yyyy.
Order Month now reads Mar 2026, and Order Date is still a date. A date held as text needs a Change Type step to Date first.
Steps for rows
Filter Rows
The simple filter: one Column, one Operator and one Value. The list names the operators Equals, NotEquals, Contains, StartsWith, EndsWith, GreaterThan, GreaterOrEqual, LessThan, LessOrEqual, IsBlank and IsNotBlank. The last two need no value.
Capitals don't matter. Values compare as numbers when both read as numbers, then as dates, and otherwise as text. An empty cell never meets a comparison: only IsBlank keeps it.
Status NotEquals Cancelled keeps the shipped and open orders. It also drops orders with no status at all.
Row Filter
For more than one column and one test, use Row Filter. It keeps the rows that meet a condition written in Hu++:
[Status] != "Cancelled" AND [Units] > 0The Hu++ guide shows how to write one, from your first condition to dates and missing values.
Remove Duplicate Rows
This step keeps one row of each set of repeated rows. Under Duplicate =, choose All columns match for rows that repeat in full, or Selected key columns match and tick Key beside the columns that should be unique together.
An order line exported twice shows up as two identical rows, and All columns match keeps one of them. If each Order ID and Product Code pair should appear once, tick those two as the key.
Two things to know:
- With a key, the rest of the row comes from the one row kept. The designer says it keeps the first of each. When the prep runs in SQL Server, any one of them can be the one kept.
- Values that differ only in capitals, or in spaces at the end, count as the same, whether the prep runs in memory or in SQL Server.
Group By
Group By, which rolls the rows up to one row per group, is in the next guide, beside Pivot.
Add a calculated column
Custom Column adds a column at the end, with a value written in Hu++ for each row. Type the Column name, write the value in the code window, and look beside Type: the designer says what the value gives, such as Gives Decimal. Pick another type and the value is converted to it.
Revenue for Orders Prep:
[Units] * [Unit Price]A value can also be text, a date or a CASE choice. The Hu++ guide covers them all, with recipes.
Joins, unions and pivots
Five more steps bring in other data or change the shape of the table: Join Element, Union, Pivot, Unpivot and Group By. They have a guide of their own: Joins, unions and pivots.
Where the prep runs
At the top of the editor, Process Mode decides what happens to the prep's result:
- Persist, the default, processes the prep like any other element and stores its result. Elements that read the prep read that stored result.
- Design never stores it. Each element that reads the prep runs its steps as part of its own processing instead.
Design suits a prep that only one element reads, such as Orders Prep feeding the Order Lines grain: nothing extra is stored. When several elements read the prep, Persist works the steps out once for all of them.
Where the steps run depends on where your data is. A project stores its data in memory or in SQL Server, set for each environment. See Environments and variables.
- When the source and every element a step reads are stored in SQL Server, the whole prep runs on the server as one query.
- Otherwise, ConradBI reads the rows and runs the steps on the computer doing the processing.
The same steps also work in a Stepped Definition Grain, which shapes the rows of a fact. See Define the grain.
When something goes wrong
| What you see | What to do |
|---|---|
| "Nothing enters this step yet: bind the source element, and the columns can be named.", or a designer with no columns | Pick the Source element at the top of the editor |
| "The input has no Date or Date & Time column to format." | Add a Change Type step above it that makes the column a Date |
| "The input has no Number, Big Number or Decimal column to round." | Add a Change Type step above it that makes the column a number |
| "'0' won't convert for 2 of the 12 columns this step applies to …" in Replace Nulls | Choose Selected columns and tick only the columns the value suits |
| A text step changes nothing | Text steps only change Text, Paragraph and Book columns. Check the column's type on the Schema tab |
| Filter Rows drops the rows with an empty value | Use a Row Filter instead: [Status] != "Cancelled" OR [Status] = [NULL]. See the Hu++ guide |
| A column you just added to the source is missing or empty in the Data tab | Process the source again. The preview shows its rows as they were last processed |
| Bulk Copy Only shows at the upper right of the editor | A step can't run in SQL Server, so the prep runs on the processing computer and its rows are copied into SQL Server afterwards. Click it to see which step: a Change Text Format step with an older format such as Proper Case. Change it to Upper Case or Lower Case if either will do |
Reference
The steps as the list in Step Management names them:
| Step | What it does |
|---|---|
| Change Text Format | Upper or lower case |
| Change Type | New column types |
| Combine Columns | Two columns into one |
| Custom Column | A column with a Hu++ value |
| Filter Rows | One column, one test |
| Find & Replace | Replaces text inside values |
| Format Date | Dates written as text |
| Group By | One row per group |
| Join Element | Another element's columns |
| Pivot | Values into columns |
| Remove Columns | Drops the ticked columns |
| Remove Duplicate Rows | One row of each repeat |
| Remove Other Columns | Keeps the ticked columns |
| Rename Columns | New column names |
| Replace Nulls | Fills empty values |
| Round Number | Rounds number columns |
| Row Filter | A Hu++ condition |
| Split Column By Delimiter | Splits at a delimiter |
| Split Column By Position | Splits at a character position |
| Trim Whitespace | Spaces off both ends |
| Union | Other elements' rows |
| Unpivot | Columns into rows |
Missing something?
Tell us what you were trying to do and what this guide didn't answer. We update it with every release.
Write to usWhat changed in this guide
- November 21, 2026: Updated for 1.2.59: spaces at the end and capitals compare alike in memory and in SQL Server, and a key with a space in front still doesn't match.
- October 31, 2026: First edition, written for ConradBI 1.2.52.
