Skip to main content
100%

DAX measure that formats a measure `[Quantity]` into a roman numeral

✓ Published0🌍 Public
HHugoberry
Last edited Mar 6, 2023
Created on Mar 6, 2023

This example shows a Power BI table where the `[Quantity]` measure is transformed into a roman numeral representation, displayed alongside the original numeric values for brands like A. Datum and Adventure Works. The DAX measure uses `GENERATESERIES` and `FLOOR` to extract each digit’s position, then `LOOKUPVALUE` against a static `DATATABLE` that maps powers of ten (1, 10, 100, up to 300,000) to their corresponding roman numerals, including overline notation for values above 3,999. The `CONCATENATEX` function concatenates these digit-specific roman strings in descending order of place value, producing outputs like `V̅I̅DCCCXCVII` for 6,897. The approach relies entirely on DAX’s table functions and does not use any external JavaScript libraries or rendering APIs.

AI-generated description

Similar vizzes