- Podcasts
- Microsoft Power BI Data Analyst Certification PrepCast
- Selecting Appropriate Column Data Types
Selecting Appropriate Column Data Types
Microsoft Power BI Data Analyst Certification PrepCast
- November 17, 2026
- 18 min
- Season 1, episode 15
About this episodeThis episode focuses on a practical PL-300 objective: Selecting Appropriate Column Data Types. Column data types affect storage…
Transcript
From the publisherThis transcript comes from the podcast’s own feed, as the publisher wrote it. It has no timestamps.
Selecting Appropriate Column Data Types
That choice can affect how Power BI stores the data, whether columns can participate correctly in relationships, which aggregations make sense, how values sort, and how Data Analysis Expressions, or DAX, behaves. A data type is therefore part of the model’s meaning. It isn’t merely a display choice.
Suppose Order Number contains values such as one hundred twenty thousand one and one hundred twenty thousand two. Those values use digits, but their business purpose is identification. The next number isn’t a larger amount of business, and the sum of all order numbers means nothing. Product Code may have the same property.
It identifies a product category or member rather than measuring a quantity. If a code has meaningful leading zeroes, treating it as a number can also undermine the identifier the business expects. The right question isn’t, “Does this look numeric?” It’s, “What does this column represent, and what must Power BI do with it?”
This is why the useful decision rule is to choose the narrowest correct type, then validate keys, dates, decimals, and categorical identifiers before loading the model. Narrowest correct doesn’t mean forcing data into the smallest-looking option. It means avoiding a type that permits or implies behavior the column doesn’t need while still preserving every legitimate value. A type is too narrow if it can’t represent valid data. It’s too broad or semantically wrong if it obscures the column’s real role and invites unsuitable behavior.
The decision usually starts in Power Query, Power BI’s data acquisition and transformation environment. Power Query prepares the incoming data at refresh time and produces the query output that will be loaded. If an incoming date column is text and the preparation requirement is to turn valid source values into dates consistently, that work belongs in the query process. You can inspect the resulting query output and verify that the values have the intended type before they enter the semantic model.
That isn’t the same as changing how a field looks in a report. Display formatting can make a value appear as currency, show fewer decimal places, or present a date in a friendlier form, but appearance doesn’t replace the underlying semantic choice. A text value that looks like a date is still not made into a date merely because a report label resembles one.
The semantic model is where prepared columns participate in relationships, aggregations, and DAX calculations. If two columns are intended to act as matching keys, their values and types need to support that role. A relationship problem shouldn’t be approached by changing an unrelated visual and hoping the symptom disappears. First inspect the columns that are supposed to match. Confirm that the query output contains the expected values, that the model received the intended types, and that the relationship behaves with representative records.
Report behavior gives you evidence, but it doesn’t always identify the cause by itself. Imagine that Order Date sorts as a sequence of text labels rather than in the expected date order. The visible symptom appears in the report, yet the cause may be upstream in the query output or semantic model. Reformatting the visual could hide part of the problem without correcting the meaning of the column. You need to follow the behavior back to the layer that owns it.
Now consider Product Code. An analyst notices that Power BI offers numeric treatment because every current code contains digits. Choosing a numeric type may appear reasonable during the first refresh. Then a later refresh includes a code that the business represents with leading zeroes, or the report exposes an aggregation that makes no sense for identifiers.
Do unexpected values fail, become blank, or remain text? The accepted requirement is not simply that one normal row can be displayed. The query output and downstream behavior should remain correct across the data conditions the business expects. If a refresh introduces a different value pattern and the result changes, reproduce that condition rather than diagnosing from the successful rows alone.
Apply that reasoning to the complete sales table before loading it. Begin with columns that will have strong downstream consequences. For Order Number and Product Code, confirm that they are identifiers rather than measures. For Order Date, establish that the values are dates, not labels that merely resemble dates.
For Quantity and Unit Price, confirm whether legitimate values can include fractional components. For Region, preserve its categorical role. This doesn’t require treating every column as equally risky. It means checking each one against its intended meaning instead of accepting an automatic guess as the business definition.
If a column currently contains the digits zero, one, and two, those values could represent quantities, status categories, priority codes, or identifiers. The same visible values can support very different decisions. Accepting the first available setting without identifying the column’s role confuses recognition of a pattern with understanding of the data.
Once you’ve assigned the intended types in Power Query, inspect the output rather than relying on the fact that the step completed. A completed transformation proves that Power Query applied a configuration. Correctness requires evidence from the working solution. Check whether the output type is what you intended.
Review representative values and known edge cases. Make sure valid identifiers remain intact, dates retain date meaning, and decimal values haven’t been forced into an unsuitable representation. If errors or unexpected blanks appear, capture which source values produced them and compare that result with the requirement.
Then trace the columns into the semantic model. For a key, examine whether it supports the expected relationship behavior. For a numeric measure, confirm that the expected aggregation is available and meaningful. For a date, test behavior that depends on it being recognized as a date rather than text.
If the product is already missing or altered in query output, investigate the preparation steps and incoming values. If query output is correct but the model doesn’t match the product to its related records, inspect the key columns and relationship behavior. If the model result is correct but one report interaction hides the product, then the type decision may not be the cause at all. Validation works in both directions. It confirms the intended configuration, and it prevents you from blaming data types for a symptom controlled elsewhere.
For the product identifier, that could mean testing both a familiar all-digit code and a valid code whose representation exposes the earlier mistake. For a date, test a value from the original successful pattern and one from the refresh condition that failed. Evidence from both conditions is stronger than a successful configuration message.
Check the prepared values, the model, and the calculation context that directly govern the result. Changing several unrelated settings at once makes it difficult to know which change mattered. Isolate the suspected column, predict the result you expect, make the justified correction, and compare the new result with that prediction.
Sorting deserves similar attention because it can expose a mismatch between appearance and meaning. Text values are treated as text, even when their characters resemble numbers or dates. If a report’s order is wrong for the business meaning, don’t assume the visual itself is defective. Determine whether the underlying column has the correct type and whether the expected order actually follows from that type.
Storage is another reason type choice isn’t cosmetic. The type forms part of how Power BI represents a column, so choosing an unnecessarily broad or inappropriate type has consequences beyond the field’s label. You don’t need to memorize one setting as universally best. Start with valid values and required behavior, then choose the narrowest correct representation. That rule scales better than a list of favorite defaults because it keeps storage and meaning connected to the requirement.
It doesn’t replace inspection of query output, relationships, calculations, and consumer behavior. Likewise, an access or role condition can change what a consumer sees without changing a column’s type. Verify a suspected issue in the context where it occurs rather than treating every visible difference as a data-preparation failure.
A dependable review therefore follows the data forward. At the query layer, verify the transformed output and identify any conversion errors or altered values. In the semantic model, verify relationships, useful aggregations, and DAX results that depend on the columns. In the report, verify sorting, filtering, and the categories or measures presented to the consumer.
This habit carries into later transformation work because each new or changed column needs the same question answered. What does the column represent, which layer should establish that meaning, and what observable result will prove the choice? When those answers are explicit, you can distinguish a preparation error from a model, report, refresh, or access issue. You can also explain why an apparently convenient alternative would produce different behavior instead of relying on a memorized sequence of clicks.
Choosing a column type is a decision about meaning, not decoration. Start with what the column represents and what Power BI must do with it. Then choose the narrowest type that preserves valid keys, dates, decimals, and categorical identifiers. Finally, prove the choice where its consequences appear.
Inspect the Power Query output, confirm relationship and DAX behavior in the semantic model, and test the sorting, filtering, or aggregation the consumer will use. A successful import or completed configuration is only a starting signal. When normal values and edge conditions both produce the expected result, you have evidence that the data is ready for modeling and a clear way to diagnose it if later conditions expose a problem.
Choose a data type for an identifier, a currency amount, and a date. Which downstream calculation, sort, or relationship problem would expose a bad choice? Open the matching episode reference for the exact labels, source-specific facts, and lab checks that support this decision. This lesson was produced by Bare Metal Cyber dot com.
