Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.
Hi,
Is it possible to change the color of the data value in "card component" based on some condition.
Eg: if the count is 0, color is black. If > 0, color is red?
Thanks in advance!
Solved! Go to Solution.
Try the Card with States Custom Visual
Problem A Measure = IF ( HASONEVALUE ( 'Table'[Project] ), CONCATENATEX ( 'Table', 'Table'[Problem A], ",", 'Table'[Problem A], ASC ), "Select a Project" )
Good Luck!
Try the Card with States Custom Visual
Problem A Measure = IF ( HASONEVALUE ( 'Table'[Project] ), CONCATENATEX ( 'Table', 'Table'[Problem A], ",", 'Table'[Problem A], ASC ), "Select a Project" )
Good Luck!
Hi Team,
What if I need to change the colour of the value displayed on the card with respect to other column value?
Eg: Actual Value should be"Red" if the value is > Target value2, "Green" if Actual value1 < Target value2
Thanks in advance
Hi,
below are the steps:
- Add "Advance card" from market place
- Use Conditions property to add conditions
Note: By default this property is disabled. If enabled, this property will be used to apply conditional formatting to visual.
Thanks,
Satya
I use the Card With States.
When the value is higher than 0, it should color red. This works, but as you can see, it doesn't fill the whole visual.
I want to fill the whole Visual.
I can remove the border, but If the number is zero then there is no border....
Any way to fix this? Thanks in advance!
I believe you could use the KPI visualization for this, and set your goal as your condition.