DAX FORMAT Function Explained: Customizing Data Display in Power BI
top of page

DAX FORMAT Function Explained: Customizing Data Display in Power BI

hands typing on a keyboard

Overview

The FORMAT function in DAX (Data Analysis Expressions) is used to convert a value to text according to a specified format string. It allows you to define how numbers, dates, or other values should be displayed by applying formatting templates. The function returns the formatted value as a text string.

The syntax.

FORMAT(<value>, <format_string> [, <locale_name>])
  • <value>: The value or expression to format (number, date, etc.).

  • <format_string>: A string specifying how to format the value (e.g., date patterns like "MMM YYYY" or numeric patterns like "#,##0.00").

  • [locale_name] (optional): Locale settings to use for formatting.

In summary, the FORMAT function helps you customize the display of data for reports and dashboards, such as formatting dates to "December 2024," numbers to currency, or percentages to a specific decimal format etc.

Use Cases

1. Customizing Number Formats

For example.

  • FORMAT( 12345.77, "General Number") = 12345.77 (Displays number with no thousand separators.)

  • FORMAT( 12345.77, "Currency") = $12,345.77 (Displays the number with your currency locale formatting. The sample here shows the default United States currency formatting.)

  • FORMAT( 12345.77, "Fixed") =12345.77 (Displays at least one digit to the left of the decimal separator and two digits to the right of the decimal separator.)

  • FORMAT( 12345.77, "Standard") = 12,345.77 (Displays at least one digit to the left of the decimal separator and two digits to the right of the decimal separator and includes thousand separators.)

  • FORMAT( 12345.77, "Percent") =1234577.00 % (Displays the number as a percentage (multiplied by 100) with formatting and the percent sign at the right of the number separated by a single space.)

  • FORMAT( 12345.77, "Scientific") = 1.23E+04 (Displays the number in scientific notation with two decimal digits.)

  • FORMAT( 12345.77, "#,##0.00") = 12,345.77 (Displays the number with two decimal places and comma separators.)

2. Formatting Dates for Readability

For Example.

  • FORMAT( 02/08/2025, “ddd”) = Sat (Displays the day as an abbreviation.)

  • FORMAT( 02/08/2025, “dddd”) = Saturday (Displays the day as a full name.)

  • FORMAT( 02/08/2025, “mmm”) = Aug (Displays the month as an abbreviation.)

  • FORMAT( 02/08/2025, “mmmm”) = August (Displays the month as a full month name.)

  • FORMAT( 02/08/2025, “\Qq”) = Q3 (Displays the quarter.)

  • FORMAT( 02/08/2025, “mmm yyyy”) = Aug 2025 (Displays month as an abbreviation and year.)

  • FORMAT( 02/08/2025, “\Qq yyyy”) = Q3 2025 (Displays the quarter and year.)

Conclusion

The FORMAT function in DAX is more than just a cosmetic tool - it’s a strategic asset for enhancing the clarity, professionalism, and user-friendliness of your Power BI reports. By converting raw data into well-structured, readable text, FORMAT empowers report designers to tailor the presentation of numbers, dates, and other values to suit specific audiences and business contexts.

Whether you're displaying currency values with precision, localizing date formats for international stakeholders, or creating dynamic labels for visuals, FORMAT offers the flexibility and control needed to elevate your data storytelling. However, it's important to remember that FORMAT returns text, which can limit its use in calculations or aggregations. As such, it should be used thoughtfully - primarily for presentation purposes rather than analytical logic.

Incorporating FORMAT into your DAX toolkit not only improves the aesthetics of your reports but also enhances their interpretability and impact. As Power BI continues to evolve as a leading business intelligence platform, mastering functions like FORMAT ensures that your insights are not only accurate but also compelling and accessible.

If you like the work we do and would like to work with us, drop us an email on our contacts page and we’ll reach out!

Thank you for reading!

Original.png

We Support You Deliver Business-Focused Solutions That Enable Data-Driven Decision Making.

  • Tableau profile
  • YouTube
  • White LinkedIn Icon
  • Facebook
  • X

QUICK LINKS

CONTACT US

WhatsApp: +254 738 307 495

East Gate Mall, Donholm

3rd Floor Suite No. 3i

Nairobi, Kenya

Join our mailing list

bottom of page