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

The Power BI Data Visualization World Championships is back! It's time to submit your entry. Live now!

Reply
alvinyong
Frequent Visitor

Conditional Formatting

I have created a measure that calculates the Year on Year % Growth of Revenue. I have formatted the measure as percentage.

 

I am trying to have conditional formating where if it is a positive number, it is highlighted in green and red if it is negative. However, I am just not finding the dropdown option of "Percentage" and "Number"

Missing Percentage and Number Dropdown Options.PNG

I tried to alternate by of formatting by field value instead of rule, however there is no option within the field value dropdown.

 

Please help. Thanks

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @alvinyong ,

You can create a measure as below for the setting of backgroud color first:

Background color = IF([YoY YTD Revenue Growth %]<0,"Red","Green")

cretae background color.JPG

Then set the conditional formatting for the measure "YoY YTD Revenue Growth %" just like the one in below screen shot:

format.JPG

Best Regards

Rena

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

Hi @alvinyong ,

You can create a measure as below for the setting of backgroud color first:

Background color = IF([YoY YTD Revenue Growth %]<0,"Red","Green")

cretae background color.JPG

Then set the conditional formatting for the measure "YoY YTD Revenue Growth %" just like the one in below screen shot:

format.JPG

Best Regards

Rena

amitchandak
Super User
Super User

@alvinyong , You can create a colo measure and use it

Example. : Color sales = if(AVERAGE(Sales[Sales Amount])<170,"green","red")

In this UI use the field in the first option and use this kind of measure

https://radacad.com/dax-and-conditional-formatting-better-together-find-the-biggest-and-smallest-num...

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

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.