Hello,
I want to set a dynamic format for Card that shows Revenue amount.
Revenue =
VAR _sumRev =
CALCULATE ( SUM ( 'Fact'[Revenue] ) )
RETURN
FORMAT (
_sumRev,
SWITCH ( TRUE (),
LEN ( _sumRev ) + 1 - 1 > 8,
//"#,##0.##",
LEN ( _sumRev ) + 1 - 1 < 8,
//"#,##0.##"
)
)
If value is in billions, to display 1 000 000 K if it's less than billion, full number.
Thanks for help!
Solved! Go to Solution.
@Dom87326 , you should check like
return
Switch( True(),
_sumRev >1000000000, format(_sumRev/1000, "### ### ### \K")
_sumRev&""
)
@Dom87326 , you should check like
return
Switch( True(),
_sumRev >1000000000, format(_sumRev/1000, "### ### ### \K")
_sumRev&""
)
Hey @amitchandak ,
Thanks for you reply, however format functions doesn't recognize specified format string "### ### ### \K" and I get text type result below for number <1000000000:Is it possible to amend that and by adding currency symbol in the beginning and removing decimals?
My locale is set to English (UK)
@Dom87326 , Add currency symbol in the format or append as string before
Come together to explore latest innovations in code and application development—and gain insights from experts from around the world.
Put your data visualization and design skills to the test! This exciting challenge is happening now through May 31st!
At the monthly call, connect with other leaders and find out how community makes your experience even better.
User | Count |
---|---|
400 | |
105 | |
68 | |
55 | |
49 |
User | Count |
---|---|
379 | |
118 | |
82 | |
67 | |
54 |