Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

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.

Reply
Anonymous
Not applicable

red for negative numbers and stad for positive numbers

Hi Experts (note i am using a live connection in power bi and conditonal formating option is out)

 

How would you amend the current measure using HEX Code or an alternative method to show negative number as red and postive as standard colour.

 

Measure:

$NSvPY4% (NOE @ AOP Rate) = FORMAT([Net Sales @ AOP Rate BM - NOE]-[Budget Sales BM Reported AOP],"#,##0.0);(#,##0.0)") 

 

1 ACCEPTED SOLUTION
v-yuta-msft
Community Support
Community Support

Hi Route11,

So your requirement is to achieve different color based on condition, right? Please refer to link below:

https://docs.microsoft.com/en-us/power-bi/desktop-conditional-table-formatting.

 

Regards,

Jimmy Tao

View solution in original post

2 REPLIES 2
v-yuta-msft
Community Support
Community Support

Hi Route11,

So your requirement is to achieve different color based on condition, right? Please refer to link below:

https://docs.microsoft.com/en-us/power-bi/desktop-conditional-table-formatting.

 

Regards,

Jimmy Tao

Anonymous
Not applicable

Hi Jimmy

 

becasue this is a "(note i am using a live connection in power bi and conditonal formating option is out)"

 

i cannot use that link or method, need a work around.

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.