Forum Discussion
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
Thanks in advance
lamia
16 Replies
- Portrek
Resolver III
You can do that through conditional formating.
look this video below, maybe this help you
https://www.youtube.com/watch?v=lhf2tJeiwYw&feature=emb_logo
Best regards.
- AnonymousNot applicable
Thanks - but still this is not really helping in my case
- AnonymousNot 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
- AnonymousNot applicable
Thanks but I need to use FORMAT function because I have a currency formated values
- Tahreem24
Super User
Anonymous use the below article to set the red format when negative.
- AnonymousNot applicable
Thanks but this article is not helping as I need to use FORMAT fuction because I have a currency formated values
- PaulDBrown
Community 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.
- AnonymousNot 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
Community 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:
- AnonymousNot applicable