Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
5 years ago

How to Format Currency number in Red when Negative

Hi,

Would you please help me to Format Currency number in Red when Negative. What should I add to the below

FORMAT([Measure]*VALUES(Currencies[Currency Rate]), "€ #,#"

Thanks in advance

lamia

16 Replies

    • Anonymous's avatar
      Anonymous
      Not applicable

      Thanks - but still this is not really helping in my case

  • Anonymous's avatar
    Anonymous
    Not applicable

    Hi Anonymous 

    You need to use the table chart type not Matrix and uder the conditional formatting select font color

    This will pop up a window and in the window choose as per below

    to get the desired result

     

     

     

    • Anonymous's avatar
      Anonymous
      Not applicable

      Thanks but I need to use FORMAT function because I have a currency formated values

    • Anonymous's avatar
      Anonymous
      Not applicable

      Thanks but this article is not helping as I need to use FORMAT fuction because I have a currency formated values

  • PaulDBrown's avatar
    PaulDBrown
    Icon for Community Champion rankCommunity Champion

    Anonymous 

    Why are you using the FORMAT function to convert it to currency (FORMAT converts it to type text)?

    You can simply format the measure as currency using the type options for columns in the ribbon:

     

    This way it remains a number and you can use conditional formatting as many have already suggested.

    • Anonymous's avatar
      Anonymous
      Not applicable

      Because I have differents Currencies - I have a slicer where I can select local currency/USD/EUR - I need the FORMAT fuction to display the currency symbol when the corresponding currecy is selected on the slicer. Every thing is working find except that I can not color the numbers when negative

       

      • PaulDBrown's avatar
        PaulDBrown
        Icon for Community Champion rankCommunity Champion

        Anonymous 

        Ok, a very good reason then!

        Create a measure along the lines of:

         

        Conditional format negative values = IF(CONTAINSSTRING([Currency], "-"), 1)

         

        (assuming your negative values contain a "-" sign)

        Now go into the Formatting pane, select the measure under Conditional Formatting, activate "font color":

         Select rules from the dropdown and follow the setting in the image below:

        And you will get this:

         

    • Anonymous's avatar
      Anonymous
      Not applicable