Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
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.
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
109 | |
99 | |
77 | |
66 | |
54 |
User | Count |
---|---|
144 | |
104 | |
102 | |
87 | |
64 |