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 / How to convert Text Va...
Power Automate
Unanswered

How to convert Text Value tu Number in Data Table Column?

(0) ShareShare
ReportReport
Posted on by 10

sashamasha_0-1719220538379.png

I want to sort the data table in descending order. However, the data in the column is text. How can I convert it to a number?

I have the same question (0)
  • eetuRobo Profile Picture
    4,204 Super User 2025 Season 2 on at

    You could loop the datatable with for each loop and use convert text to number -action

    eetuRobo_0-1719221118236.png

    For each loop generates CurrentItem. Reference the "procent" column like so %CurrentItem['procent']%

    eetuRobo_1-1719221219107.png

     

  • sashamasha Profile Picture
    10 on at

    It stored a separate value.

    But I want to update the column value. I need to change the column data type.

    Thank you for the suggestion

     

  • Deenuji_Loganathan_ Profile Picture
    6,250 Super User 2025 Season 2 on at

    @sashamasha 

     

    You just use "convert text to number" action where it will automatically takes conversion string to number in background.

     

    Please refer the below example with screenshot:

    Checking value and type after executing my first line code:

    Deenuji_0-1719222331226.png

     

    After conversion:

    data type automatically changed from text to string.

    Deenuji_1-1719222371623.png

     

     


    Thanks,
    Deenuji Loganathan 👩‍💻
    Automation Evangelist 🤖
    Follow me on LinkedIn 👥

    -------------------------------------------------------------------------------------------------------------
    If I've helped solve your query, kindly mark my response as the solution ✔ and give it a thumbs up!👍 Your feedback supports future seekers 🚀

  • eetuRobo Profile Picture
    4,204 Super User 2025 Season 2 on at


    You can use Update data table item -action. Set variable that counts the current row. It starts from 0 and increases every loop.

    eetuRobo_0-1719222314801.png

    eetuRobo_1-1719222345474.png

     

  • NathanAlvares24 Profile Picture
    1,714 Moderator on at

    Hi @sashamasha !

     

    Try this flow.

    NathanAlvares24_0-1719222343638.png

     

    Use a "Loop" action to get loop index so that you can then use "Update data table item" action.

    NathanAlvares24_1-1719222394938.png

     

    I hope this helps.

  • sashamasha Profile Picture
    10 on at

    "Converting text to a number" works for text, but I need to change the data table column type to a number so that I can sort the data table.

  • Deenuji_Loganathan_ Profile Picture
    6,250 Super User 2025 Season 2 on at

    @sashamasha 

     

    Then follow above @eetuRobo  suggested solution for the same. Use some counter variable and increment it on each iteration.

     


    Thanks,
    Deenuji Loganathan 👩‍💻
    Automation Evangelist 🤖
    Follow me on LinkedIn 👥

    -------------------------------------------------------------------------------------------------------------
    If I've helped solve your query, kindly mark my response as the solution ✔ and give it a thumbs up!👍 Your feedback supports future seekers 🚀

  • sashamasha Profile Picture
    10 on at

    sashamasha_0-1719222799514.png

    it seems that it does not work

  • Deenuji_Loganathan_ Profile Picture
    6,250 Super User 2025 Season 2 on at

    @sashamasha 

     

    Sort your data table with index value not with name.

     


    Thanks,
    Deenuji Loganathan 👩‍💻
    Automation Evangelist 🤖
    Follow me on LinkedIn 👥

    -------------------------------------------------------------------------------------------------------------
    If I've helped solve your query, kindly mark my response as the solution ✔ and give it a thumbs up!👍 Your feedback supports future seekers 🚀

  • sashamasha Profile Picture
    10 on at

    sashamasha_0-1719223248958.png

     

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

#2
Tomac Profile Picture

Tomac 323 Moderator

#3
abm abm Profile Picture

abm abm 237 Most Valuable Professional

Last 30 days Overall leaderboard