cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
acepeda
Helper I
Helper I

PowerApps for Teams Text color formatting on Choice field - How to?

Hello,

I'm trying to apply text color formatting to a choice field in a gallery using PowerApps for teams.  

I applied these 2 options that actually works on PowerApps Standard Tenancy but none of them works in PowerApps for Teams:

 

Option1:

If(ThisItem.'Project Complexity'.Value="High", Red, This.Item.'Project Complexity.Value="Medium", Yellow, Green)

 

Option2:

Swicth(ThisItem.'Project Complexity'.Value, "High", Red, "Medium", Yellow, Green)

 

I appreciate your help in advance,

 

 

Regards.

 

1 ACCEPTED SOLUTION

Accepted Solutions

I finally solve it... i had to use Text function prior ThisItem statement.

Switch(Text(ThisItem.'Project Complexity'),"High", Red,"Medium",Orange,Green)

 

View solution in original post

2 REPLIES 2
v-xiaochen-msft
Community Support
Community Support

Hi @acepeda ,

 

Could you tell me:

What control did you use in the gallery?

What property of this control do you want to change the color?

 

Could you use some pictures to describe the problem you encountered?

 

Thanks.

Best Regards,
Wearsky

I finally solve it... i had to use Text function prior ThisItem statement.

Switch(Text(ThisItem.'Project Complexity'),"High", Red,"Medium",Orange,Green)

 

View solution in original post

Helpful resources

Announcements
PA User Group

Welcome to the User Group Public Preview

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

MBAS Attendee Badge

Claim Your Badge & Digital Swag!

Check out how to claim yours today!

secondImage

Are Your Ready?

Test your skills now with the Cloud Skill Challenge.

Top Solution Authors
Top Kudoed Authors
Users online (71,510)