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 / Trying to Match Variab...
Power Automate
Unanswered

Trying to Match Variable to a Single Line text field number

(0) ShareShare
ReportReport
Posted on by 167

I have a variable, let's say it contains the number 5

Next, I have a condition to ask if the variable is equal to the SharePoint item. SharePoint is displaying 5 in the list

 

However, when the flow runs it fails. They don't match.

I check my variable -it is displaying 5

I check the SharePoint column, and it is displaying 5.000000000000000 Guessing this is why they don't equal.  

 

I tried setting the SharePoint (Calculated field type) to Number and decimal is 0, but when I check the flow compose, it's still seeing 5.000000000000 in the workflow. 

 

Looking for help please. 

Categories:
I have the same question (0)
  • yashag2255 Profile Picture
    24,769 Super User 2024 Season 1 on at

    Hi @Portland 

     

    You can use the format number action in Flow and pass the calculated column from sharepoint to this action as an input and then select the output format. Based on this, you can then compare with the variable values. 

     

    Hope this Helps!

     

    If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!

  • Verified answer
    v-alzhan-msft Profile Picture
    on at

    Hi @Portland ,

     

    You could save the calculated column value in a Compose, then refer to screenshot below to create the flow:

    1.png

    int(first(split(outputs('Compose'),'.')))

     

    Best Regards,

    Alice

     

    Community Support Team _ Alice Zhang
    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

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 462 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 456 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard