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!Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.
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.