- Podcasts
- Microsoft Power BI Data Analyst Certification PrepCast
- Cleaning Text, Numeric, and Date Columns
Cleaning Text, Numeric, and Date Columns
Microsoft Power BI Data Analyst Certification PrepCast
- November 17, 2026
- 18 min
- Season 1, episode 17
About this episodeThis episode focuses on a practical PL-300 objective: Cleaning Text, Numeric, and Date Columns. Text cleanup, numeric precision, and date…
Transcript
From the publisherThis transcript comes from the podcast’s own feed, as the publisher wrote it. It has no timestamps.
Cleaning Text, Numeric, and Date Columns
The current Power BI Data Analyst certification scope includes creating and transforming columns. That’s broader than knowing where to find a command in the interface. You need to understand what the requested outcome is, which layer should produce it, how one transformation affects the next, and what evidence will demonstrate that the result is correct. Text, number, and date operations are especially useful for developing that judgment because a transformation that looks harmless can change grouping, comparison, calculation, and reporting behavior downstream.
Suppose a sales and operations team receives files from several regional offices. The customer field contains values such as Northwind Traders, NORTHWIND TRADERS, and Northwind Traders followed by an unwanted space. A product reference combines a family code and an item code in one text value. Sales amounts contain more decimal precision than the business wants to display in its reporting categories.
Its transformations shape the query output that continues into the semantic model. That differs from defining a calculation in Data Analysis Expressions, or DAX, inside the model, changing how a report visual presents a field, or controlling access in the Power BI service. Those layers can all affect what someone eventually sees, but they don’t perform the same job.
Changing case doesn’t remove a trailing space, and trimming doesn’t make capitalization consistent. If both defects exist, using only one operation leaves the other irregularity in place. The required result therefore determines which transformations are needed, rather than the availability of a familiar text command.
Sequence matters because every later transformation receives the values and types produced by the earlier steps. Imagine splitting a product reference around a delimiter, then extracting a component from one of the resulting text columns. The extraction step depends on the split having produced the expected pieces. If the source includes an edge value without the delimiter, that row may not behave like the typical rows. Looking only at well-formed product references could make the transformation seem correct even though the query output contains an unexpected result for the unusual value.
It’s to arrange the transformations so each step receives predictable values and an appropriate type. If a later operation doesn’t produce the expected result, inspect what actually arrived from the preceding step. Don’t assume that a column’s appearance proves that Power Query is treating it as the kind of value you intended.
Now compare that query-time preparation with a nearby alternative. Suppose the business needs the cleaned customer name to be reused throughout the model by reports that consume the prepared data. Producing that standardized column in Power Query addresses the irregularity before the query output enters the model.
If someone instead adjusts a label in one report visual, the presentation may look better in that visual, but the underlying prepared column hasn’t been standardized. Another report or another use of the field can still encounter the original inconsistency. The visual change and the query transformation may look similar to one consumer, but they operate at different layers and have different reach.
If the task is to regularize incoming text, split a source field, round a numeric source value for a prepared attribute, or derive reusable date parts during preparation, examine Power Query. If the requirement concerns a calculation whose behavior depends on the semantic model or report filter context, that points toward a different mechanism. Picking a feature because you remember its interface location skips the most important decision.
Return to the regional sales data. The analyst applies the required text operations, separates the product reference, rounds the designated numeric field, and derives year and month from the order date. A normal row now looks correct. Before accepting the result, the analyst checks values that challenge the assumptions.
Suppose the customer field still produces what appear to be duplicate names. The wrong response is to begin changing unrelated visuals, relationships, or report filters. First reproduce the symptom in the layer that owns the transformation. Compare the expected cleaned value with the actual Power Query output.
Then inspect the sequence of relevant text steps. Perhaps case was standardized but whitespace wasn’t trimmed. Perhaps the edge value contains an irregularity that the chosen operation didn’t address. Correct the responsible transformation, refresh the query result, and test both the original normal value and the value that exposed the failure.
A changed date operation could produce the desired month for one row while another date exposes a false assumption. Verification needs at least the condition that first worked and the condition that failed. You’re looking for evidence that the rule now handles the intended range of values without introducing an obvious side effect.
For text transformations, testable evidence is the resulting text. Check whether case is consistent where the requirement calls for consistency. Check whether unwanted outer spaces are gone. After splitting or extracting, compare the resulting components with known input examples, including an irregular one.
Compare the actual query output with the expected business result. If the requirement and the observed output disagree, determine whether the wrong operation was chosen, the sequence supplied an unsuitable value or type, or the requirement itself needs clarification. Don’t hide that uncertainty by accepting whatever result the interface produced.
Dates need the same discipline. If the requirement calls for year and month attributes, verify dates from more than one month and more than one year. A single date can’t demonstrate that both parts are derived consistently. Inspect the query output and confirm that each date produces the expected components.
Once the prepared columns enter the semantic model, downstream behavior offers another form of evidence. Consistent customer values should no longer be separated merely because of the text irregularities the transformations were meant to remove. Product components should support the intended use as distinct attributes.
This layer-based approach prevents a common troubleshooting mistake. An analyst sees an unexpected report result and changes the first accessible setting. If the defect is in Power Query output, rearranging a visual doesn’t repair the prepared data. If the prepared data is correct but a model calculation behaves unexpectedly under a filter, repeating the text or date transformation may not address the real cause.
For this episode’s sales solution, imagine that year and month look correct in a simple report view, but a newly refreshed batch produces missing or unexpected date components. The earlier visual result isn’t sufficient evidence because the data condition has changed. Reproduce the issue in the query output for the affected rows. Check what value and type reach the date operation.
The same reasoning applies when a transformation works under one report filter but the consumer reports a different outcome elsewhere. A filter can change which rows are visible, exposing data values that weren’t present in the original check. That doesn’t automatically mean the filter is defective.
Be cautious about the idea that one preferred feature must be right for every text, number, or date requirement. Power BI provides multiple places where data can be prepared, calculated, displayed, and governed because those activities solve different problems. Even within Power Query, two valid operations may serve different requirements. Standardizing case doesn’t replace trimming.
What observation would convince you that normal and unusual rows both satisfy the requirement? For the regional sales data, those questions lead to concrete checks of cleaned customer names, separated product components, rounded numeric outputs, and derived year and month values. They also tell you where not to make the correction when the result is wrong.
Predictable text, numeric, and date values make those downstream decisions easier to interpret and test. Unexamined irregularities can survive a successful refresh and only become visible when a different row, filter, or consumer exposes them. That’s why the final check belongs in the actual query output and in the downstream context where the prepared attributes are used.
Text, number, and date transformations are correct when they produce the values the business asked for, not merely when Power BI accepts the configuration. Start with the required outcome, place reusable data preparation in the layer that owns it, and order the steps so each operation receives predictable values and types. Then inspect the evidence.
Check cleaned text, separated components, rounded numbers, and derived date parts in the query output, including rows that challenge your assumptions. Follow those results into the semantic model and report when necessary. That combination of requirement, mechanism, and observable verification lets you distinguish a dependable transformation from one that only appeared to work on the first example.
Describe one text, one numeric, and one date transformation without naming menu clicks. How would you test locale, blanks, and boundary values before accepting the result? Use the episode reference to review precise terminology and the checks that are easier to inspect than to hear. This lesson was produced by Bare Metal Cyber dot com.
