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
jtemes
Helper I
Helper I

Color gradient, dynamic minimum and maximum values

Hi all

I am using Gradient conditional formatting over a Matrix vith values and subtotals. 

When I select Apply to Values and Totals, the minimum and maximum have to be fixed. Is there any way to make this dinamyc according to the value of the field?

Thanks for your help

2 ACCEPTED SOLUTIONS
amitchandak
Super User
Super User

@jtemes , I doubt that. But using field value you can use a measure. But creating a gradient using measure , means you need to create that many conditions

 

example 

Color =

Switch(True(),

[Measure]< .1, "Light green",

[Meausre] <.5, "Green",

"Dark Green")

 

You can use hexcode with #

 

Use the color measure in conditional formatting using field value option

 

View solution in original post

Ritaf1983
Super User
Super User

Hi @jtemes 
This can be accomplished using Dex formulas.
Here is a link to a video that explains how to do this:
https://www.youtube.com/watch?v=s9ck7xx85mA

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
Ritaf1983
Super User
Super User

Hi @jtemes 
This can be accomplished using Dex formulas.
Here is a link to a video that explains how to do this:
https://www.youtube.com/watch?v=s9ck7xx85mA

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

@jtemes , I doubt that. But using field value you can use a measure. But creating a gradient using measure , means you need to create that many conditions

 

example 

Color =

Switch(True(),

[Measure]< .1, "Light green",

[Meausre] <.5, "Green",

"Dark Green")

 

You can use hexcode with #

 

Use the color measure in conditional formatting using field value option

 

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.