Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
Hi all,
How can I return a Formatted Number as a value instead of text?
I tried wrapping Format() inside Value() but that returns an error.
//Format Numbers
Formatted Result =
VAR __Amount = 'Table'[Dollar Amount]
Return
SWITCH(
TRUE(),
__Amount < 1000, FORMAT( __Amount,"$###" ),
__Amount < 1000000, FORMAT( __Amount,"$#,.0K" ),
__Amount < 1000000000, FORMAT( __Amount,"$#,,.00M" ),
__Amount < 1000000000000, FORMAT( __Amount,"$#,,,.0B" )
)
Thanks,
-w
@UncleLewis You can't with the FORMAT command. That's the purpose of Custom Format Strings but those aren't going to allow that much logic.
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
Check out the November 2025 Power BI update to learn about new features.
| User | Count |
|---|---|
| 59 | |
| 46 | |
| 42 | |
| 23 | |
| 18 |
| User | Count |
|---|---|
| 193 | |
| 123 | |
| 99 | |
| 67 | |
| 49 |