CrissBird News

How to Change Number to Currency in Tableau: The Fix That Feels Wrong

To change a number to currency in Tableau, right-click the field in the Data pane, choose Default Properties > Number Format, and select Currency (Standard) or Currency (Custom). Currency (Standard) takes its symbol and separators from the selected locale; Tableau's help describes it as adding a dollar sign and two decimal places in a US English locale. Currency (Custom) lets you set decimal places, how negatives display, units, a prefix or suffix, and whether thousands separators appear. In both cases the field keeps its data type, Number (decimal), and the stored value is untouched. Tableau has no currency data type and no FORMAT() function.

That last sentence is the part that feels wrong. You asked to change a number to currency, and the correct answer is that nothing about the number changes.

Why there is no currency data type

Tableau's data types documentation lists text (string), date, date and time, numerical values, boolean, geographic values, plus the image role and cluster group. Money is not on that list. There is no type to switch to, which is why the field icon still reads # after you apply a currency format.

Tableau is equally direct about the other half. Its help page "FORMAT() Function Workarounds in Tableau" states flatly that Tableau "has no FORMAT() function for formatting fields." If you came from Excel or DAX hunting for a function that turns 1234.5 into $1,234.50 inside a calculation, it does not exist here. You can fake it with "$" + STR(ROUND(SUM([Sales]), 2)), and the moment you do, the result is a string: no aggregation, no numeric sort. It will sort $1, $100, $2 in that order.

I spend my working hours with quarter-inch reels whose boxes carry grease-pencil writing from sessions nobody alive attended. The box says MASTER, TAKE 3. The tape holds whatever the tape holds. Archive work comes down to one habit: read the label, then verify the contents separately. A dollar sign in Tableau is grease pencil on the box lid.

Two places to set the format, and which one wins

The format scope is where most currency problems actually live.

Field level. Right-click the field in the Data pane, then Default Properties > Number Format. Tableau saves this with the workbook and exports it with the connection information. Every worksheet built afterwards inherits it.

Worksheet level. Right-click a number in the view, choose Format, open the Numbers drop-down in the Format pane. Tableau's help states the precedence without hedging: "Formatting numbers using the Format pane overrides any number formatting applied elsewhere."

My order is fixed. Default properties first, worksheet overrides only for a real exception, such as an axis that needs whole dollars while the tooltip needs cents. A workbook where thirty sheets carry local overrides is a workbook where nobody can answer "what format is this measure?" without opening thirty sheets. Same failure as a shelf of reels labelled by whoever was in the room.

The full procedure:

  1. Right-click the measure in the Data pane and choose Default Properties > Number Format.
  2. Select Currency (Standard) to inherit the locale's symbol, or Currency (Custom) to control it yourself.
  3. Set decimal places to the currency's ISO 4217 minor unit: 2 for USD and EUR, 0 for JPY, 3 for KWD.
  4. Set Units and any prefix or suffix, or type a custom format string.
  5. Check File > Workbook Locale so viewers elsewhere see the symbol you intended.
  6. Confirm the stored value is unchanged by comparing an unformatted SUM against the formatted display.

Which of the four options to pick

The table may extend past the visible area. Scroll across it to find the remaining columns.

OptionSymbol comes fromYou controlFollows the viewer's localePick it when
AutomaticThe data source or the field's dataNothingPartlyYou are still exploring
Currency (Standard)The selected localeLocale onlyYes, unless lockedOne currency, and you want native conventions per region
Currency (Custom)A prefix or suffix you typeDecimals, negatives, units, separators, affixesNo, the affix is literalThe data is in one fixed currency regardless of who opens it
Custom (format string)Your string, quoted or notEverything, including per-sign sectionsOnly if $ is unquotedYou need different treatment for positive, negative and zero

A custom format string uses the structure Positive number format;Negative number format;Zero values, semicolon-separated, so $#,##0.00;($#,##0.00);"—" renders negatives in accounting parentheses and zeros as a dash.

Here is the second thing that feels wrong and is right. In a custom format string, an unquoted $ is not a dollar sign. It is a placeholder Tableau resolves against the Workbook Locale, so one format code renders £ under English (United Kingdom) and € under Spanish (Spain). Quote it as "$" and it stays literal. If your ledger is genuinely in US dollars, quote the symbol or lock File > Workbook Locale away from Automatic, which means the locale matches whoever opens the workbook. A viewer in Madrid should not see euro signs on dollar amounts. Per Tableau's Language and Locale documentation, a fixed locale holds even after publishing to Server or Cloud.

Currency formatting versus currency conversion

These are different operations, and conflating them is the expensive mistake.

Formatting changes zero bytes of stored data and one hundred percent of what the reader sees. Conversion changes the number itself and cannot be done without an exchange rate carrying a date. Tableau ships no exchange rates. There is no menu item and no version in which applying a euro symbol to a dollar figure performs an FX calculation.

Conversion is a data transformation, so it belongs in a calculated field or upstream:

[Amount] * [Rate to USD]

The rate has to arrive as data. A rate table keyed on the ISO 4217 three-letter code and the transaction date is the minimum honest structure. ISO 4217, maintained by SIX Financial Information on behalf of the Swiss Association for Standardization, defines the alphabetic and numeric codes — USD is 840, EUR 978, JPY 392, KWD 414 — and the minor unit giving each currency's decimal count: 2 for USD and EUR, 0 for JPY, 3 for KWD, BHD and OMR. Formatting a yen total to two decimals invents precision the currency does not possess.

For the rate itself, the European Central Bank publishes euro foreign exchange reference rates around 16:00 CET each working day except TARGET closing days, from a concertation procedure among European central banks that normally runs around 14:10 CET. Major currencies are quoted to four decimal places. Which source you pick matters less than recording which one, and on what date, the way a mastering sheet records the machine and the alignment tape. A converted figure without a dated rate is unverifiable.

Decimal places, display units, and the precision underneath

Setting decimal places to 0 does not round your data. Tableau rounds the display; SUM, AVG and every downstream calculation still operate on the stored value. This is why a column of rounded figures can miss its own total by a cent or two.

Real precision limits sit below Tableau. Numeric values ride on IEEE 754 double-precision, where 53 bits of significand yield roughly 15 to 17 significant decimal digits, with round-trip fidelity guaranteed only through 15. Tableau's data types page warns that a floating-point field interpreted as an integer before extract creation "will have some of its precision truncated," and that a precision warning appears in the status bar. Long account identifiers belong in a string field. They are labels, not quantities.

For display units, Tableau's Units menu writes the format for you, and a comma with no digit placeholder to its right divides the displayed value by 1,000 for each comma present:

  • $#,##0,"K" shows 1,500,000 as $1,500K
  • $#,##0.0,,"M" shows the same figure as $1.5M

Tableau expects the scaling commas before the decimal point, which is where Excel-trained authors trip. The trap with fixed units is the small row: set a field to Millions and a real value of 900 renders as 0.0M, wrong in every practical sense while arithmetically defensible.

Recent versions add a [scale] token that scales each value individually and appends, in Tableau's words, "the appropriate International System of Unit (SI) suffixes based on their magnitude," using k, M, G and T upward and m, µ and n downward. Note the collision with financial convention: SI gives you G for 10⁹, not B. Tableau's framing is that Display Units are "Best for enforcing uniform units across all numbers" while [scale] is "Best for adaptive, value-level formatting within a single field." I have not tested it across every connection type, so check your version first.

When the number is text

Sometimes the field will not take a currency format because it is not a number. Tableau maps mixed-value columns "by the data types of the first 10,000 rows in an Excel data source, and the first 1,024 rows in a CSV data source," so a single $ or a stray thousands comma anywhere in that sample sends the entire column in as a string.

If the column is clean, change the type on the Data Source page by clicking the type icon. If symbols or separators block it, clean then cast in one calculated field:

FLOAT(REGEXP_REPLACE([Amount], '[^0-9.-]', ''))

This keeps digits, the decimal point and the minus sign, discarding the rest, including non-breaking spaces that survive TRIM. European-formatted values need the separators swapped first, or 35,5 nulls out. REGEXP_REPLACE requires an extract or a source that supports it; nested REPLACE calls are the fallback when it is greyed out.

Convert first, format second, and never build a currency string you intend to sum. I will not tell you which symbol placement reads better on your dashboard. I will tell you which version can be audited: the one where the number in the cell and the number in the data are the same number, and the label is documented separately.

FAQ

Why does a currency format not convert the underlying amount?

A number format in Tableau is a display property attached to a field, not a transformation of the data. The stored value keeps its Number (decimal) data type and its full precision, so SUM and AVG still aggregate the original figures. Converting between currencies requires a calculated field that multiplies the amount by a dated exchange rate.

When should a Tableau field use a default number format?

Set a default whenever a measure means the same thing in every worksheet, such as a licensing fee or a royalty balance. Right-click the field in the Data pane and choose Default Properties > Number Format. Tableau stores the format with the workbook and exports it with the connection information, so new worksheets inherit it automatically.

How do I change the number format in Tableau?

Right-click a number in the view and select Format, then open the Numbers drop-down in the Format pane and choose Automatic, Number, Currency, Scientific, Percentage or Custom. This applies to that worksheet only, and Tableau's help notes it overrides number formatting applied elsewhere. For a workbook-wide default, use Default Properties instead.

How do I change a cell to currency in Numbers?

In Apple Numbers on Mac, select the cells, open the Format sidebar, click the Cell tab, then choose Currency from the Data Format pop-up menu. Type the decimal places you want in the Decimals field, tick Thousands Separator, and tick Accounting Style to show negatives in parentheses. Numbers rounds the displayed value, not the stored one.

How do I use a custom number format for thousands and millions in Tableau?

Choose Custom in the Numbers drop-down and add commas with no digit placeholder to their right; each comma divides the displayed value by 1,000. $#,##0,"K" shows 1,500,000 as $1,500K, and $#,##0.0,,"M" shows it as $1.5M. Tableau expects the scaling commas before the decimal point. The stored value is unchanged.

How do I convert a string to a number in Tableau?

Change the data type on the Data Source page if the column is clean. If currency symbols or separators block the change, build a calculated field: FLOAT(REGEXP_REPLACE([Amount], '[^0-9.-]', '')) strips everything except digits, the decimal point and the minus sign. Then apply a currency number format to the numeric result.

Carolyn Tsakiris
CrissBird News
About · Contact · Privacy
© CrissBird News