If you need a simple on/off flag in a Power Apps Dataverse table, like “Is this laptop still in service?”, use a Yes/No column. In your app, treat it as true or false: compare it to a toggle, flip it with !, and save it with Patch.
Here’s where people get stuck. Dataverse shows the column as a choice with Yes and No labels, so many guides compare it to text or to a choice value. That leads to formulas that look right but never match a row.
In this tutorial, we’ll create a power apps dataverse yes/no column, filter a gallery with a toggle, list Yes and No in a dropdown with Choices, and update the value with Patch. Every formula ran in my own app on 10/22/2026.
The Sample Table We’ll Use
Every example uses one Dataverse table called Asset in my Power Platform developer environment. Dataverse is Microsoft’s database for the Power Platform. New to it? Start with what Microsoft Dataverse is.
A table holds rows (records), and each column has a data type. Asset has 11 rows, and the column we care about is In Service, a Yes/No column.
| Asset Tag | Asset Name | Assigned To | In Service |
|---|---|---|---|
| ASSET-1000 | Dell Latitude 7450 | Megan Bowen | Yes |
| ASSET-1002 | Dell UltraSharp U2724D | Alex Wilber | Yes |
| ASSET-1003 | iPhone 16 | Adele Vance | Yes |
| ASSET-1004 | Surface Dock 2 | Lee Gu | No |
Ten assets are in service, and one isn’t: Surface Dock 2, assigned to Lee Gu. That one odd row makes it easy to see whether a filter works.
How to Create a Yes/No Column in Dataverse
If you haven’t built a table yet, follow my guide to create a table in Microsoft Dataverse first. Then add the column like this:
- Go to make.powerapps.com and pick your environment at the top right.
- Select Tables in the left pane and open your table (mine is Asset).
- Select + New > Column, then type a display name, like In Service.
- Open Data type, point to Choice, and pick Yes/no from the submenu.
The Yes/no option sits under Choice, right below the regular Choice type. That’s why many people miss it.

Next, check the settings panel. Behavior stays Simple, and Required defaults to Optional. Under Choices, the labels are No (value 0) and Yes (value 1).
You can rename the labels, like Active and Retired, but the values stay grayed out. Default choice is No for a new Yes/no column.

Select Save. In Microsoft’s docs this type is called Yes/No in Power Apps, Two Options in the classic solution explorer, and BooleanType in the API. Same column, three names.
Pro Tip: Pick the default on purpose. My In Service column defaults to Yes, because a new asset is almost always in use. A wrong default quietly fills every new row with the wrong answer.
Add the Table to a Canvas App
Now let’s use the column in a canvas app. In make.powerapps.com, select Create > Blank canvas app, give it a name, and choose the Tablet format.
In Power Apps Studio, select Data in the left bar > Add data, search for your table, and select it. Notice the name turns plural in Studio: my Asset table shows up as Assets.
Formulas go in the formula bar at the top. Select a control, pick the property (like Items) in the dropdown left of the fx sign, then type. Press F5 to run the app in Preview and Ctrl+S to save.
Power Fx is the Excel-like formula language Power Apps uses. If you want the bigger picture first, browse our Power Apps tutorials.
Method 1: Filter a Gallery With a Toggle (Recommended)
Use this when people need to switch between in-service and retired items. From the Insert menu I added a toggle named tglInService and a vertical gallery named galAssets. More toggle settings are in my Power Apps toggle control guide.
Select the gallery, pick Items, and paste this formula:
Filter(Assets, 'In Service' = tglInService.Value)
Studio showed no delegation warning, and the gallery listed only the matching assets.

In Preview, with the toggle on Yes, the counter label showed 10 assets.

Switch it to No, and you get 1 assets: Surface Dock 2, assigned to Lee Gu.

How does this work?
A toggle’s Value is true when it’s on and false when it’s off. Microsoft’s docs say a toggle works the same way as a check box.
The Yes/No column holds true or false too. So 'In Service' = tglInService.Value compares two booleans, and Filter keeps the rows where they match.
Want only in-service rows with no toggle at all? Compare to a literal instead: Filter(Assets, 'In Service' = true).
So here’s the catch: don’t compare to text like "Yes". The column holds true or false, so compare it to a boolean, never to a label. For bigger tables, see my notes on Power Apps delegation warnings.
Method 2: Show Yes and No in a Dropdown With Choices
Use this when you want the label text in the UI, or when you’d like an “All” option later. I added a dropdown named drpYesNo and set its Items to:
Choices(Assets.'In Service')

In Preview, the dropdown lists exactly two options: Yes and No.

Then point the gallery at the dropdown instead of the toggle:
Filter(Assets, 'In Service' = drpYesNo.Selected.Value)
Yes gave 10 assets and No gave 1, the same numbers as the toggle.
How does this work?
Choices returns a table of the possible values for a column. It needs a direct column reference like Assets.'In Service', not a control or a variable.
Microsoft’s docs map a Dataverse Yes/No column to the Power Apps Choice type. That’s why Choices works here, and why drpYesNo.Selected.Value compares cleanly with the column.
Choices itself can’t be delegated, but that’s fine: it only returns two rows. For regular choice columns, see Dataverse choices in Power Apps and filtering a gallery by a Dataverse choice column.
Method 3: Update a Yes/No Value With Patch
Use Patch when a button should change the flag without a form. Patch updates a record you pass it. I added a button named btnFlip inside the gallery and set its OnSelect to:
Patch(Assets, ThisItem, {'In Service': !ThisItem.'In Service'})

I clicked Flip on Surface Dock 2. With the toggle on Yes, the gallery now showed 11 assets, and Surface Dock 2 was in the list.

How does this work?
ThisItem is the gallery row the button sits in. ! means Not, so !ThisItem.'In Service' turns false into true and true into false.
Patch writes that one column back to Dataverse and leaves every other column alone. The dropdown on No then showed 0 assets. I flipped Surface Dock 2 back to No afterward.
To set a fixed value, pass true or false with no quotes. This Retire button formula marks the selected asset as out of service:
Patch(Assets, galAssets.Selected, {'In Service': false})
For a new row, use Defaults(Assets) as the second argument. I cover that in adding data to a Dataverse table, and patching a Dataverse number field uses the same pattern.
Show a Yes/No Value in a Label or Checkbox
Inside a gallery, a label can turn the flag into any text you like with If:
If(ThisItem.'In Service', "Yes", "No")
For a checkbox, set its Default to the column. It shows checked for Yes rows and unchecked for No rows:
ThisItem.'In Service'
Here’s a surprise from my test. Joining the column to text shows the label, not true or false. This formula displayed “Yes” or “No”:
"In Service raw value: " & galAssets.Selected.'In Service'
So text output follows the choice labels, while comparisons and If still treat the value as true or false. More checkbox patterns are in Power Apps checkbox value.
Which Method Should You Use?
| You need | Use | Tested result |
|---|---|---|
| An on/off filter for a gallery | Filter(Assets, ‘In Service’ = tglInService.Value) | Yes 10, No 1, no delegation warning |
| Yes/No labels in a dropdown | Choices(Assets.’In Service’) | Lists Yes and No |
| Flip one row from a button | Patch(Assets, ThisItem, {‘In Service’: !ThisItem.’In Service’}) | Surface Dock 2 changed to Yes |
| Custom text in a label | If(ThisItem.’In Service’, “Yes”, “No”) | Shows Yes or No |
Building the same flag in SharePoint instead? A SharePoint Yes/No column behaves a little differently, so check Power Apps with a SharePoint Yes/No column for that side.
Things to Keep in Mind
- The column holds true/false, not text. Fix: compare it to true, false or a toggle’s Value, never to “Yes”.
- A new Yes/no column defaults to No. Fix: set Default choice when you create it, before rows pile up.
- Choices needs a direct column reference. Fix: use Choices(Assets.’In Service’), not a gallery or variable.
- Text output shows the label, not true/false. Fix: wrap it in If() when you need your own wording.
- “true” in quotes is text, not a boolean. Fix: patch true or false with no quotes.
If you build Dataverse apps at work, our Power Apps training course walks through these patterns on real projects.
Working on more Dataverse columns? These guides pair well with this one:
Frequently Asked Questions
What is a Yes/No column in Dataverse?
It’s a column that stores one of two values, true or false, with Yes and No as the default labels. Power Apps calls it Yes/No, the classic solution explorer calls it Two Options, and the API calls it BooleanType.
How do I filter a Dataverse Yes/No column in Power Apps?
Compare the column to a boolean, for example Filter(Assets, ‘In Service’ = tglInService.Value) or Filter(Assets, ‘In Service’ = true). In my test on 11 rows it returned the right rows with no delegation warning.
How do I patch a Yes/No column in Dataverse from Power Apps?
Pass true or false without quotes, like Patch(Assets, galAssets.Selected, {‘In Service’: false}). To flip the current value, use the not operator: {‘In Service’: !ThisItem.’In Service’}.
Why does Choices() work on a Dataverse Yes/No column?
Power Apps maps Dataverse Yes/No columns to its Choice type, so Choices(Assets.’In Service’) returns the Yes and No labels for a dropdown. See Connect to Microsoft Dataverse on Microsoft Learn.
Is filtering on a Dataverse Yes/No column delegable?
Yes. The = and comparisons are delegable for this column type in Dataverse, so Dataverse runs the filter on the server. IsBlank on it isn’t delegable, so avoid that in large tables.

Hey! I’m Bijay Kumar, founder of SPGuides.com and a Microsoft Business Applications MVP (Power Automate, Power Apps). I launched this site in 2020 because I truly enjoy working with SharePoint, Power Platform, and SharePoint Framework (SPFx), and wanted to share that passion through step-by-step tutorials, guides, and training videos. My mission is to help you learn these technologies so you can utilize SharePoint, enhance productivity, and potentially build business solutions along the way.