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

Data Days is here! Join us now for 60+ days of learning, challenges, and connection. Learn more

Reply
admin11
Memorable Member
Memorable Member

Advanced card how to make Postfix label change red when value -ve ?

Hi All

Recently @VijayP intro me advance card , i have manage to display YTD sales with Growth % with the help from @v-robertq-msft , now working fine .

Now i need to make the Vari % change red color when -ve value. 

admin11_0-1614601929893.png

https://www.dropbox.com/s/w79t44y0xkrp0ow/PBT_V2021_350%20ask%20advance%20card%20set%20condition%20f...

Above link is my PBI 

 

Paul

 

Paul

1 ACCEPTED SOLUTION
PhilipTreacy
Super User
Super User

@admin11 

 

Download PBIX file

 

Hi Paul,

That visual doesn't support conditional formatting.  Why not just use 2 cards,1 for each value?

You can then create a measure for the _Vari % Colour

 

_Vari_%_REV_HONEY1 Color = IF(CONTAINSSTRING([_Vari_%_REV_HONEY1],"-") , -1 , 1)

 

and create a CF rule

cfrule1.png

 

To give this

cfrule3.png

 

Regards

Phil



Did I answer your question? Then please mark my post as the solution.
If I helped you, click on the Thumbs Up to give Kudos.


Blog :: YouTube Channel :: Connect on Linkedin


Proud to be a Super User!


View solution in original post

1 REPLY 1
PhilipTreacy
Super User
Super User

@admin11 

 

Download PBIX file

 

Hi Paul,

That visual doesn't support conditional formatting.  Why not just use 2 cards,1 for each value?

You can then create a measure for the _Vari % Colour

 

_Vari_%_REV_HONEY1 Color = IF(CONTAINSSTRING([_Vari_%_REV_HONEY1],"-") , -1 , 1)

 

and create a CF rule

cfrule1.png

 

To give this

cfrule3.png

 

Regards

Phil



Did I answer your question? Then please mark my post as the solution.
If I helped you, click on the Thumbs Up to give Kudos.


Blog :: YouTube Channel :: Connect on Linkedin


Proud to be a Super User!


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.

May Power BI Update Carousel

Power BI Monthly Update - May 2026

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

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.