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

Try your skills in the Power BI Dataviz World Championship! Round one ends June 26. Join 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
Fabric Data Days is here Carousel

Fabric Data Days 2026

Don't miss out on Data Days, June 15 through August 7. Learn Fabric, Power BI, SQL, AI and more.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.