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

Vote for your favorite vizzies from the Power BI Dataviz World Championship submissions. Vote now!

Reply
AllanBerces
Post Prodigy
Post Prodigy

Visual Calculation Formatting

Hi Good day,

How to turn red if negative and green if greaterthan 0 on the visual calculation.

AllanBerces_0-1723377044604.png

 

Thank you

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @AllanBerces ,

 

Thanks to Greg_Deckler  and NaveenGandhi  for their quick replies. As Greg_Deckler said, due to limitations you can't apply conditional formatting on visual calculations.


But you can create a table visual object and then set the conditional formatting.

(1) This is my test data.

vtangjiemsft_0-1723532625741.png

(2) Create a column.

Delta = [Actual]-[Plan]

(3) Create a measure.

Color = SWITCH(TRUE(),
SELECTEDVALUE('Table'[Delta])>0,"green",
SELECTEDVALUE('Table'[Delta])<0,"red")

(4) Setting the Conditional Format.

vtangjiemsft_1-1723532819136.png

 

vtangjiemsft_2-1723533083478.pngvtangjiemsft_3-1723533099963.png

Best Regards,

Neeko Tang

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

3 REPLIES 3
Anonymous
Not applicable

Hi @AllanBerces ,

 

Thanks to Greg_Deckler  and NaveenGandhi  for their quick replies. As Greg_Deckler said, due to limitations you can't apply conditional formatting on visual calculations.


But you can create a table visual object and then set the conditional formatting.

(1) This is my test data.

vtangjiemsft_0-1723532625741.png

(2) Create a column.

Delta = [Actual]-[Plan]

(3) Create a measure.

Color = SWITCH(TRUE(),
SELECTEDVALUE('Table'[Delta])>0,"green",
SELECTEDVALUE('Table'[Delta])<0,"red")

(4) Setting the Conditional Format.

vtangjiemsft_1-1723532819136.png

 

vtangjiemsft_2-1723533083478.pngvtangjiemsft_3-1723533099963.png

Best Regards,

Neeko Tang

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

Greg_Deckler
Community Champion
Community Champion

@AllanBerces Visual calculations are a preview feature and currently formatting is limited to non-existent. To the best of my knowledge there is no conditional formatting for visual calculations at this time. You'll probably have to wait until Fabric Desktop is released.



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...
NaveenGandhi
Memorable Member
Memorable Member

Hi @AllanBerces 

You can use conditional formatting. Below document is a good start.

https://learn.microsoft.com/en-us/power-bi/create-reports/desktop-conditional-table-formatting

If you still have difficulty, please share sample file or data and expected output as screenshot to understand the problem better.

If this post helps, then please consider Accept it as the solution to help the others find it more quickly. Appreciate you kudos!!

Follow me on LinkedIn!!!

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

Vote for your favorite vizzies from the Power BI World Championship submissions!

Sticker Challenge 2026 Carousel

Join our Community Sticker Challenge 2026

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

January Power BI Update Carousel

Power BI Monthly Update - January 2026

Check out the January 2026 Power BI update to learn about new features.

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.