Data Types & Formatting

Understanding data types and formatting is essential in Power BI because it ensures that data is interpreted correctly and calculations are accurate. Power BI provides options to define, change, and format data according to its type.

What are Data Types

A data type specifies the kind of data a column contains. Common data types in Power BI include:

  • Text: Letters, words, or alphanumeric characters.
  • Whole Number: Integer values without decimals.
  • Decimal Number: Numbers with decimal points.
  • Date/Time: Dates, times, or both.
  • Boolean: True/False values.
  • Currency: Monetary values with currency symbols.

Setting the correct data type ensures that Power BI can perform calculations, aggregations, and visualizations accurately.

Changing Data Types

To change a column’s data type in Power BI:

  1. Open Power Query Editor or Data View in Power BI Desktop.
  2. Select the column you want to modify.
  3. Go to the Transform tab in Power Query or Column tools in Data View.
  4. Choose the appropriate Data Type from the dropdown menu.

Formatting Data

Formatting adjusts how data is displayed without changing the underlying value. Common formatting options include:

  • Number formatting: Set decimal places, thousand separators, or display as percentage.
  • Date formatting: Show dates in different styles like dd/mm/yyyy, mm/dd/yyyy, or Month-Year.
  • Currency formatting: Add currency symbols like $, €, or PKR.
  • Text formatting: Capitalize, lowercase, or trim text for consistency.

Formatting improves the readability of reports and ensures data is presented clearly in visuals.

Best Practices

  • Always check and set the correct data type after importing data.
  • Use consistent formatting across similar columns to avoid confusion.
  • Apply formatting before building visuals to ensure numbers, dates, and text display correctly.
  • Combine data types and formatting with data cleaning for accurate and professional dashboards.

Conclusion

Understanding and applying data types and formatting in Power BI ensures accurate calculations, effective reporting, and visually clear dashboards. Correct data types combined with proper formatting make your data reliable, consistent, and ready for analysis.

Home » Power BI Fundamentals > Data Import & Transformation > Data Types & Formatting