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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

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
v-yiruan-msft
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
v-yiruan-msft
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.
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

Helpful resources

Announcements
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.