Skip to content

Mohammed Khaled

Conditional formatting in PowerApps

Estimated reading time: 3 minutes

Creating Dynamic and Interactive Apps with Conditional Formatting in Office365 PowerApps: A Guide with Formulas Examples

Conditional formatting in Office365 PowerApps is a feature that allows users to highlight or change the appearance of data in a app based on specific conditions.

This can be used to make important information more prominent, or to help users quickly identify patterns or trends in their data.

In this article, we will cover how to use conditional formatting in PowerApps and provide some examples of formulas that can be used to create different formatting conditions.

To use conditional formatting in PowerApps, you first need to select the control that you want to format.

This can be a text box, a label, a table, or any other control that can display data.

Once you have selected the control, you can access the formatting options by clicking on the “Format” tab in the ribbon.

In the formatting options, you will see a section called “Conditional formatting”.

This is where you can set the conditions that will trigger the formatting changes.

For example, you can set a condition that says “if the value in this field is greater than 100, then make the text red”.

You can also set multiple conditions for the same control, and choose different formatting options for each condition.

For example, you could set one condition that says “if the value in this field is greater than 100, then make the text red”, and another condition that says “if the value in this field is less than 50, then make the text blue”.

In addition to changing the color of text, conditional formatting can also be used to change the font, font size, background color, and more.

You can also use conditional formatting to hide or show controls based on certain conditions.

To create a conditional formatting rule in PowerApps, you need to use formulas that evaluate to true or false. Here are some examples of formulas that can be used for conditional formatting:


To format a text box if the value is greater than 100:

If(Value > 100, Red)

To format a text box if the value is less than 50:

If(Value < 50, Blue)

To format a text box if the value is between 50 and 100:

If(Value >= 50 && Value <= 100, Green)

To format a text box if the value is blank:

If(IsBlank(Value), Gray)

To format a text box if the value is a specific string:

If(Value = “Completed”, Green)

To change the color of a text box to green if the value is a specific string:

If(Value = “Completed”, Green)

To change the color of a text box to green if the value is between 50 and 100:

If(Value >= 50 && Value <= 100, Green)

To make a field “field1” visible if the value of “field2” is a specific string:

If(field2.Value = “Completed”, true, false)

To change the color of a field “field1” to green if the value of “field2” is a specific string:

If(field2.Value = “Completed”, Green)


As you can see, these formulas use the “If” function to evaluate the condition and apply the corresponding formatting if the condition is true.

The value inside the parantheses is the condition that needs to be met, and the color that follows is the formatting that will be applied if the condition is met.

In conclusion, conditional formatting in PowerApps allows you to create more interactive and user-friendly apps by highlighting important information and making patterns and trends in your data more obvious.

Using formulas, you can create different formatting conditions and make your data more visually appealing.

Leave a Reply

Your email address will not be published. Required fields are marked *

error: Content is protected !!