The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.
Is it possible to get a "Card Visual" text colour to display red if the content contains the word "Closed".
I have looked at conditional formatting, but that only seems to be based on numerical values and not test.
Solved! Go to Solution.
Hi @StuartSmith ,
We can use a color measure and condition format to meet your requirement:
1. Create a measure to show color:
FontColor = IF(CONTAINSSTRING([AddressToShowMeasure],"Closed"),"#FF0000","#000000")
Change the [AddressToShowMeasure] to the measure which you used in card visual.
2. Set the condition format for card visual:
3. Then you can make the card visualdisplay red if the content contains the word "Closed"
BTW, pbix as attached.
Best regards,
Community Support Team _ Dong Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @StuartSmith ,
We can use a color measure and condition format to meet your requirement:
1. Create a measure to show color:
FontColor = IF(CONTAINSSTRING([AddressToShowMeasure],"Closed"),"#FF0000","#000000")
Change the [AddressToShowMeasure] to the measure which you used in card visual.
2. Set the condition format for card visual:
3. Then you can make the card visualdisplay red if the content contains the word "Closed"
BTW, pbix as attached.
Best regards,
Community Support Team _ Dong Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Thank you, this helped me, too!
Thank you so much, been searching high and low for this. Was able to change background of my Card colour based on text value of the measure.
That worked great and what I was trying to do, but was unsure how to do it.
User | Count |
---|---|
65 | |
60 | |
55 | |
54 | |
31 |
User | Count |
---|---|
180 | |
88 | |
70 | |
46 | |
45 |