cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
admin11
Post Prodigy
Post Prodigy

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

@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 III
Super User III

@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

Helpful resources

Announcements
PBI User Groups

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

March Update

Check it Out!

Click here to read more about the March 2021 Updates!

secondImage

The largest Power BI virtual conference

100+ sessions, 100+ speakers, Product managers, MVPs, and experts. All about Power BI. Attend online or watch the recordings.

secondImage

Experience what’s next for Power BI

See the latest Power BI innovations, updates, and demos from the Microsoft Business Applications Launch Event.