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 Automate / Flow with a condition ...
Power Automate
Unanswered

Flow with a condition checking a calcualted true/false value always returns false

(0) ShareShare
ReportReport
Posted on by

I have a list with a column [Approval%] which calculates a variation +/- 20% of other columns and the output is Yes/No formatted. The Approval% column produces the correct result when the values are changed (i.e. Yes/No), so I know the formula in the list is working.

 Capture3.PNG

Capture2.PNG
The flow I set up has a 'get item' action which pulls the list values and a condition: 

@equals(body('Get_item')?['Approval_x0020__x0025_'], 'yes') which evaluates if the variation is outside the range. If Approval% value is = 'yes' it should kick off an approval. If = no, it should send an email.

Capture4.PNG

 

Not matter what expression I put the condition ALWAYS produces a 'false' output and sends the email, not the approval.
I've tried [Yes] in single quotes, double quotes, bool(true), bool(1), yes, true, 1, and every varation thereof.  No matter how I format it the expression always produces a false

Capture1.PNG
Am I missing an action step to retrieve the column values? Does the fact that the column is calcuated effect it? Is there a different trigger I should use? I'm losing my mind....

Categories:
I have the same question (0)
  • v-yuazh-msft Profile Picture
    on at

    Hi @ kmmesrob,

     

     

    The output of a calcualted column in a sharepoint list would be "0" or "1" instand of "No" or "Yes".

     

    So you could use expression in the Condition as below:

    @equals(items('Apply_to_each')?['Approval_x0020__x0025_'], '1')

    I have made a test on my side and have created a flow as below:

    Capture.PNG

     

    The flow would run successfully as below:

    Capture.PNG

     

    Please let me know if your problem could be solved.

     

     

    Regards,
    Alice Zhang

  • Verified answer
    kmmesrob Profile Picture
    on at

    Hi Alice! Thanks for the qucik reply. I actually got it work last night with a different method. I changed the calcuation for the Approval % column to be an =IF statement with Yes,No as the output and then changed the flow to recognized a boolean Yes string. Seems to be working but if it crashes I'll try your method! 

    Thanks!!!

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…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 522 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 364 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard