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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
powerAveryBI
Frequent Visitor

Visual CARD RED on Negative Value.

Hi, I am seeking help on this:  How can I ensure that the font color is red if the "DELTA" field is NEGATIVE?

 

powerAveryBI_1-1715286932286.png

 

 

1 ACCEPTED SOLUTION
Bipin-Lala
Solution Supplier
Solution Supplier

Hi @powerAveryBI,

 

To change the font color based on the value in the card, you would have to use "Conditional Formatting" available for Callout Value in the card.

  • Select the Card visual and open the Format Visual settings
  •  Navigate to Callout Value -> Color
  • Click on the Conditional Formatting Option

BipinLala_0-1715288464982.png

  • In the conditional formatting dialog box, select Format Style =  Rules. Subsequently, select the field (Delta value in your case) which will be used for setting up the color rules
  • Now set up the rules based on the values of the field i.e. if Delta < 0 then RED color, otherwise some other color etc. (Example is shown below)

BipinLala_2-1715288664490.png

 

Voila! The card should now be displaying the value with the color as per the rules you set.

BipinLala_3-1715288719012.png

 

Please refer to the following Microsoft Documentation for more details: https://learn.microsoft.com/en-us/power-bi/create-reports/desktop-conditional-table-formatting

 

Do let me know if you face any issues!

View solution in original post

2 REPLIES 2
powerAveryBI
Frequent Visitor

thank you , perfect solution

Bipin-Lala
Solution Supplier
Solution Supplier

Hi @powerAveryBI,

 

To change the font color based on the value in the card, you would have to use "Conditional Formatting" available for Callout Value in the card.

  • Select the Card visual and open the Format Visual settings
  •  Navigate to Callout Value -> Color
  • Click on the Conditional Formatting Option

BipinLala_0-1715288464982.png

  • In the conditional formatting dialog box, select Format Style =  Rules. Subsequently, select the field (Delta value in your case) which will be used for setting up the color rules
  • Now set up the rules based on the values of the field i.e. if Delta < 0 then RED color, otherwise some other color etc. (Example is shown below)

BipinLala_2-1715288664490.png

 

Voila! The card should now be displaying the value with the color as per the rules you set.

BipinLala_3-1715288719012.png

 

Please refer to the following Microsoft Documentation for more details: https://learn.microsoft.com/en-us/power-bi/create-reports/desktop-conditional-table-formatting

 

Do let me know if you face any issues!

Helpful resources

Announcements
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

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.