A DAX measure definition that formats the Revenue numbers in a wordly way. It spells out numbers 1,812,343,434,567,812 like to `one quadrillion eight hundred and twelve trillion three hundred and forty-three billion four hundred and thirty-five million five hundred and sixty-eight thousand eight hundred and twelve`
✓ Published0🌍 Public
HHugoberry
Last edited Mar 3, 2023
Created on Mar 3, 2023
This example demonstrates a DAX measure that converts a numeric Revenue value into its fully spelled-out English text, such as rendering 1,812,343,434,567,812 as “one quadrillion eight hundred and twelve trillion…” The measure uses the `CONCATENATEX` iterator with `GENERATESERIES` to break the number into groups of three digits, then applies nested `SWITCH` and `LOOKUPVALUE` functions against three lookup tables—`DigitWords`, `NumberWords`, and `Magnitude`—to map each group to its word form. The code also relies on `ADDCOLUMNS` for intermediate calculations and `ROUND` and `MOD` for digit extraction. The visualization shows the formatted result directly as text, with the lookup tables defined via the `DATATABLE` function.
AI-generated description