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

The ultimate Microsoft Fabric, Power BI, Azure AI & SQL learning event! Join us in Las Vegas from March 26-28, 2024. Use code MSCUST for a $100 discount. Register Now

Reply
Vinod_G_245
Frequent Visitor

Conditional formatting based on fieldvalue in Advance Card

Hi Team,

we are using advanced card visual in Power BI, for that value we want to apply conditional formatting.

Example: If actual value > Buget value then the numbers should be in Green, if the actual value is between 95% to 100% of budget value then it is Amber, if the value is actual value is <95% then it is red.

Note: This can be achieved in  table and matrix visual by selecting field measue, for business requirement we are using advance card.

1 ACCEPTED SOLUTION
v-yiruan-msft
Community Support
Community Support

Hi @Vinod_G_245 ,

As checked the setting options of advanced card, there is no conditional formatting option for the card value. As an workaround, you can create a default card visual to replace it.

yingyinr_1-1675231564466.png

Then create a similar measure as below and apply the conditional formatting for the callout value of card as below screenshot...

Conditional formatting =
IF (
    [Actual] > [Budget],
    "Green",
    IF ( [Actual] >= 0.95 * [Budget] && [Actual] <= [Budget], "Amber", "Red" )
)

yingyinr_0-1675231541167.png

Best Regards

Community Support Team _ Rena
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

2 REPLIES 2
v-yiruan-msft
Community Support
Community Support

Hi @Vinod_G_245 ,

Whether your problem has been resolved? If yes, could you please mark the helpful post as Answered? It will help the others in the community find the solution easily if they face the same problem as yours. Thank you.

Best Regards

Community Support Team _ Rena
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
v-yiruan-msft
Community Support
Community Support

Hi @Vinod_G_245 ,

As checked the setting options of advanced card, there is no conditional formatting option for the card value. As an workaround, you can create a default card visual to replace it.

yingyinr_1-1675231564466.png

Then create a similar measure as below and apply the conditional formatting for the callout value of card as below screenshot...

Conditional formatting =
IF (
    [Actual] > [Budget],
    "Green",
    IF ( [Actual] >= 0.95 * [Budget] && [Actual] <= [Budget], "Amber", "Red" )
)

yingyinr_0-1675231541167.png

Best Regards

Community Support Team _ Rena
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
Fabric Community Conference

Microsoft Fabric Community Conference

Join us at our first-ever Microsoft Fabric Community Conference, March 26-28, 2024 in Las Vegas with 100+ sessions by community experts and Microsoft engineering.

February 2024 Update Carousel

Power BI Monthly Update - February 2024

Check out the February 2024 Power BI update to learn about new features.

Fabric Career Hub

Microsoft Fabric Career Hub

Explore career paths and learn resources in Fabric.

Fabric Partner Community

Microsoft Fabric Partner Community

Engage with the Fabric engineering team, hear of product updates, business opportunities, and resources in the Fabric Partner Community.