Skip to main content

How to See What a Formula Returns in Power Apps Studio

· 8 min read
Jagdish Kumawat
Founder @ Dewiride

Power Apps Studio can show what a formula returns without running the app. Select the formula's text in the formula bar, and a strip under it shows the formula, an equals sign and the result, with the result's data type beside it. It's the quickest way to check a formula while you write it.

The examples are from the Overtime Timesheet app's My Overtime screen, which shows a month of a person's overtime with its totals.

Prerequisites​

  • An app open for editing in Power Apps Studio, with a control whose formula you want to check.
  • Microsoft's overview of the formula bar, if it's new to you: the property list on the left, the formula on the right.

Step 1: Select the Formula​

Select the control, choose the property in the list on the left of the formula bar, then click in the formula and select all of its text: Ctrl+A on Windows, Cmd+A on a Mac. After a moment, a strip appears under the formula bar.

In the example, a text control's Text was Sum(locEntriesMO, Hours), which adds up the hours of the month's entries (How to Add Up a Column in Power Apps with Sum). The strip read Sum(locEntriesMO, Hours) = 11, with Data type: number, and the control on the canvas showed the same 11:

The formula bar with Sum(locEntriesMO, Hours) selected, the strip under it reading Sum(locEntriesMO, Hours) = 11 with Data type number, and the text control on the My overtime screen showing 11

The strip has two parts:

  • On the left, the formula, an equals sign and its result. A long formula is shortened with …; the result after the equals sign was shown in full in every example here.
  • On the right, Data type: the kind of value, such as number, text, boolean or Date.

Step 2: Read the Result and Its Type​

The type tells you as much as the value. Some results from the same app:

FormulaThe strip showedData type
Sum(locEntriesMO, Hours)11number
MondayOf(Date(2026, 11, 8)), a user-defined function02/11/2026, 00:00:00Date
The month's total, a text with the month and its hoursTotal for September 2026: 0.00 hourstext
A button's DisplayMode, an If that returns DisplayMode.Disabled this monthdisabledtext

A Date is shown with a time of midnight, and a DisplayMode as a word. Here's the DisplayMode of the screen's next-month button, which is disabled in the current month (How to Add Previous and Next Month Buttons in Power Apps):

The formula bar with the DisplayMode of the next-month button selected, an If that compares locMonthMO with the first day of this month, the strip reading = disabled with Data type text, and the month bar on the canvas with November 2026 and a greyed-out next-month button

Step 3: Spot a Blank​

A formula that returns nothing shows Blank in italics, with the type it would have had. On the My Overtime screen, the total for a month with no entries read Total for September 2026: hours, with no number. Checking the Sum on its own showed why:

The formula bar with the Sum of the Hours of the entries that aren't rejected selected, the strip reading = Blank with Data type number, and the My overtime screen on the canvas for September 2026 with an empty total control under the month

Sum of no rows returned Blank, not 0: Fixed: Sum Returns Blank Instead of 0 for an Empty Table in Power Apps.

To check one part of a long formula like that, I put the part on its own in the property for a moment, selected it, read the strip, and then put the whole formula back with the fix.

Step 4: Check a Long Formula​

A long formula wraps in the formula bar, and its first line can be half hidden. Select the arrow at the right end of the formula bar to expand it, select the formula, and the strip shows under the expanded editor and its Format text, Remove formatting and Find and replace buttons:

The expanded formula bar with the month's total formula selected, Coalesce around the Sum with 0, the Format text, Remove formatting and Find and replace buttons under it, and the strip reading Total for September 2026: 0.00 hours with Data type text

Where the Values Come From​

The strip works out the formula with the app's values as they are in Studio at that moment. Variables keep what the app last gave them: after a preview that ended on September, the strip used September's entries, the empty month in Step 3.

A screen's OnVisible doesn't run when you select the screen in Studio, so variables it sets are empty until you preview the app and go to that screen (How to Run a Formula When a Screen Opens in Power Apps with OnVisible). A Blank in the strip can mean that the screen hasn't loaded yet in this session, not that the formula is wrong.

What It Can't Work Out​

A formula that uses ThisItem, such as one inside a gallery's row, depends on the row it's shown in. The strip says so instead of guessing: This formula uses scope, which is not presently supported for evaluation.

The Visible property of btnEditMO set to a formula that is true when ThisItem.Status.Value is not Approved, the strip reading This formula uses scope, which is not presently supported for evaluation, with Data type boolean, and the Edit button selected in the first gallery row

It still shows the Data type. Check the result in the rows on the canvas, or in Preview (How to Use ThisItem in a Power Apps Gallery).

Behavior formulas, such as a button's OnSelect, do something when they run rather than return a value. With the Edit button's OnSelect selected, no strip appeared at all.

Common Mistakes​

MistakeWhat happensDo this instead
Reading a Blank as a broken formulaThe variables it uses may not be set yet in this sessionPreview and go to the screen first, then check again
Checking only the whole formulaThe strip shows the final result, not where it went wrongPut the part you doubt on its own for a moment
Leaving a part on its own after checking itThe control keeps the part, not the whole formulaPut the whole formula back
Expecting a result for ThisItem formulasThe strip shows a message insteadCheck the rows on the canvas or in Preview

Troubleshooting​

SymptomLikely causeFix
No strip under a selected formulaIt's a behavior formula, such as OnSelectCheck what it does by running it in Preview
The formula's first line is cut offIt wraps in the collapsed formula barExpand the formula bar
This formula uses scope, which is not presently supported for evaluation.The formula uses ThisItemCheck it on the canvas or in Preview
Blank for a variable you know is setThe screen that sets it hasn't been opened in Preview in this sessionPreview and go to that screen

FAQ​

Does it change anything in the app?​

No. Selecting the formula only shows its result. The app changes only if you edit the formula.

Why does a date show 00:00:00?​

A Date is shown with a time of midnight. It's still a date: the Data type says Date.

Conclusion​

Select a formula's text and Studio shows its result and data type under the formula bar. Read the type as well as the value, treat Blank as a clue, check one part at a time when a long formula goes wrong, and look at ThisItem formulas on the canvas or in Preview.

Additional Resources​