Forum Discussion

Ski900's avatar
Ski900
Helper II
8 years ago

Custom number formatting for visual

I have a visual that shows Revenue. Prior to hanlding null values I had the auto format option selected and liked it. To handle (Blank) I used the following code with the format function.

RevYAGO_Viz = IF(ISBLANK([Rev_YAGO]), "-", FORMAT([Rev_YAGO],"$#,0"))

I have tried number was to replicate "$1.23bn", but come up short each time. Is this possible?

2 Replies

  • Greg_Deckler's avatar
    Greg_Deckler
    Community Champion

    Perhaps by dividing by a billion and concatenating with "bn" but this would likely turn it into text and that probably would not be optimal.

    • Ski900's avatar
      Ski900
      Helper II

      I appreciate the response. Unfortunately that wouldn't be optimal because my sales data does transition between hundreds of thousands to billions. I might just have to keep it as is then. Thanks!