web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Bug: Named formulas is...
Power Apps
Unanswered

Bug: Named formulas issue. It's returns previous values on an empty (i.e. Blank()) responce on Authoring version is: 3.23121.20

(0) ShareShare
ReportReport
Posted on by 19

I found similar topic - "Named Formulas Issue: Update cached value when dependent variables change",  and posted some reponces.

Initially I think it was related to the some Table/Collections functions.

But issue is more global - if formula has to return an empty value, by some reasons, in fact it will return a previous value, cached by unknown reasons.

There is a simple way to reproduce:

  • Create a new app;
  • Create a toggle named "ToggleSimple";
  • Create a two functions:

 

 

 

 

formulaSimpleOne = If(ToggleSimple.Value, Blank(), "Non-empty");
formulaSimpleTwo = If(ToggleSimple.Value, "Non-Blank", "Non-empty");​

 

 

 

 

  • And two Labels:
    • "LabelSimpleLocal" with Text: 

 

 

 

 

"Local: Check1 - '" & If(ToggleSimple.Value, Blank(), "Non-empty") & "', Check2 - '" & If(ToggleSimple.Value, "Non-Blank", "Non-empty") & "'"

 

 

 

 

  • "LabelSimpleFormula" with Text: 

 

 

 

 

"Formula: Check1 - '" & formulaSimpleOne & "', Check2 - '" & formulaSimpleTwo & "'"​

 

 

 

 

And simple run and toggle a toggle:

PetroVoronov_0-1702552355213.pngPetroVoronov_1-1702552398869.png

I.e., when both - local calculation and formulas returns any value (text strings "Non-Blank" or "Non-empty") everything is fine.
But when it has to return empty (Blank()) value - local calculation is done right way, i.e. empty, but formula returns previous value, i.e. "Non-empty".

 

In my production application I have a lot of formulas and calculations dependent on Blank() or non Blank() values. And now there is a real mess inside. I can't support it, due to can't edit it, as logic is broken.

Categories:
I have the same question (0)
  • PowerMykola Profile Picture
    6 on at

    try formula 

    If(ToggleSimple.Value = true, Blank(), "Non-empty")

    PowerMykola_1-1702555245459.png

     

  • PetroVoronov Profile Picture
    19 on at

    Please read carefully. The issue not in If function. Issue in a named formulas.
    And in code of any visual element everything is working fine.

    But when the same code is used in named formulas - it is working not right. 

    And when named formula has to return Blank() value, it is return the previous, i.e. non empty responce.
    Once more - issue in named formulas - Power Fx named formulas to ease development and improve performance - Power Platform Release Plan | Microsoft Learn

     

    P.S. And yes, with 

    ToggleSimple.Value = true

    the situation is not changed. 

  • PetroVoronov Profile Picture
    19 on at

    Looks like in version 3.23123.8 the issue is fixed.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Apps

#1
Kalathiya Profile Picture

Kalathiya 368 Moderator

#1
Kalathiya Profile Picture

Kalathiya 368 Moderator

#3
WarrenBelz Profile Picture

WarrenBelz 318 Most Valuable Professional

Last 30 days Overall leaderboard