Data Types in Power BI
Data Types in Power BI
Introduction
As you may know by now, Microsoft Power BI connects with a range of data sources and works with many
different data types. Data types in Power BI are used to classify values to ensure a better organized and
structured dataset.
Data types are defined at the column level. The values contained within a given column are configured to
align with the designated data type of the column.
Every data type has some specific transformations and options that can be applied. As mentioned before,
the Transform and Add column tabs and the column filter options are primarily used for these
transformations.
You can use this reading as a cheat sheet of data types available in Power BI. Additionally, the linked pages
in this reading provide additional valuable information about Power BI data types. By the end of this
reading, you’ll be able to identify data types in Power BI.
When examining data types, the best approach is to categorize them into groups such as number types,
date or time types, and other types such as text types. This way, you can easily identify the unique
properties of each data type and recognize differences between types.
Data types
Number types
Decimal number: This data type can handle numbers with fractional values as well as whole numbers.
The maximum precision (number of digits in a number after the decimal point) that the decimal
number type can represent is 15 digits. The decimal separator can be anywhere in the number. For
example, 99, 99.50, and 99.20930 are all valid decimal numbers. One example could be the price of a
watch, $99.99. In another example, you could use the 15 digits of the decimal number data type to
store the first 15 digits of the mathematical constant pi, which is 3.141592653589793.
Fixed decimal number: The decimal separator always has four digits to its right and allows for 19 digits
of significance. This data type is useful in cases where rounding might introduce errors. For instance,
99.0000, 99.5000, and 99.2093 are all valid fixed decimal numbers.
Whole number: This is an integer type that has no digits to the right of the decimal place. It has 19
digits of positive or negative whole numbers, such as -10, 0, and 103. Its range is between -2^63+1 and
2^63-2.
Text: This is a Unicode character data string. This can be strings, numbers, or dates represented in a
text format. The maximum length of this data type can be 536,870,912 bytes. Or 268,435,456 Unicode
characters. Unicode is an international character encoding standard that assigns a unique number to
every character across languages and scripts.
True/false: This is also known as Boolean data type, which has either a True or a False value.
Binary: This represents any data with a binary format. For example, a non-human readable format is
represented by ones and zeros. Binary files can contain diverse types of data. For instance, image or
video files serve as binary files that are intended for computer systems to interpret.
Conclusion
In this reading, you explored some common data types in Power BI, including number types, date and time
types, text, true or false, and binary data types. You should now be able to identify these different data
types in Power BI.
You can also refer to the following Microsoft Learn article on data types in Power BI for more details about
Power BI data types, type conversions, automatic type detections, and comparison operations.