cancel
Showing results for 
Search instead for 
Did you mean: 
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
yingyinr
Community Support
Community Support

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

Community Support Team _ Rena
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

2 REPLIES 2
yingyinr
Community Support
Community Support

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

Community Support Team _ Rena
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

amitchandak
Super User IV
Super User IV

@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



Did I answer your question? Mark my post as a solution! Appreciate your Kudos!!
Dashboard of My Blogs !! YouTube Channel !! Connect on Linkedin

Proud to be a Super User!

Helpful resources

Announcements
PBI User Groups

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group!

MBAS on Demand

Microsoft Business Applications Summit sessions

On-demand access to all the great content presented by the product teams and community members! #MSBizAppsSummit #CommunityRocks

Get Ready for Power BI Dev Camp

Power BI Dev Camp - June 24th

Mark your calendars and join us for our next Power BI Dev Camp!

Top Solution Authors
Top Kudoed Authors