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

Community site session details

Session Id : UWOe2yQOhvGmms1PGsZQkv
Power Automate - Power Automate Desktop
Unanswered

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

Like (0) ShareShare
ReportReport
Posted on 24 Jun 2024 09:22:09 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?

Categories:
I have the same question (0)
  • Deenuji_Loganathan_ Profile Picture
    6,206 Super User 2025 Season 2 on 24 Jun 2024 at 17:12:58
    Re: How to convert Text Value tu Number in Data Table Column?

    @sashamasha 

     

    Have you checked as @eetuRobo suggested. If yes please check and take a screenshot of your current item of data type of your second column and share to assist further.

     


    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 24 Jun 2024 at 10:32:56
    Re: How to convert Text Value tu Number in Data Table Column?

    It seems that the decimal point is the issue.

  • eetuRobo Profile Picture
    4,007 Super User 2025 Season 2 on 24 Jun 2024 at 10:06:55
    Re: How to convert Text Value tu Number in Data Table Column?

    For me it seems to work

    eetuRobo_0-1719223503105.png

    Table before converting to number/sorting: 

    eetuRobo_1-1719223517428.png

    After Sorting:

    eetuRobo_2-1719223544617.png


    Only thing is that PAD seems to not like dot for decimal separator (it tries to make it date or it removes the dot when converting to number). Maybe Power Automate Desktops Datatable cant have float but only integer type numbers? And maybe if it is decimal the datatable item is just string type at that poin? Does anyone know if this is the case?

    To troubleshoot check the value after you have converted and updated the item in data table:
    Add variable that stores the just updated datatable item:

    eetuRobo_1-1719224073827.png

    Then open the variable and check its type that its numeric value

    eetuRobo_0-1719224031220.png

     

  • sashamasha Profile Picture
    10 on 24 Jun 2024 at 10:00:58
    Re: How to convert Text Value tu Number in Data Table Column?

    sashamasha_0-1719223248958.png

     

  • Deenuji_Loganathan_ Profile Picture
    6,206 Super User 2025 Season 2 on 24 Jun 2024 at 09:56:02
    Re: How to convert Text Value tu Number in Data Table Column?

    @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 24 Jun 2024 at 09:53:37
    Re: How to convert Text Value tu Number in Data Table Column?

    sashamasha_0-1719222799514.png

    it seems that it does not work

  • Deenuji_Loganathan_ Profile Picture
    6,206 Super User 2025 Season 2 on 24 Jun 2024 at 09:51:43
    Re: How to convert Text Value tu Number in Data Table Column?

    @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 24 Jun 2024 at 09:48:49
    Re: How to convert Text Value tu Number in Data Table Column?

    "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.

  • NathanAlvares24 Profile Picture
    1,694 Moderator on 24 Jun 2024 at 09:47:02
    Re: How to convert Text Value tu Number in Data Table Column?

    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.

  • eetuRobo Profile Picture
    4,007 Super User 2025 Season 2 on 24 Jun 2024 at 09:45:47
    Re: How to convert Text Value tu Number in Data Table Column?


    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

     

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

MS.Ragavendar – Community Spotlight

We are honored to recognize Ragavendar Swaminatha Subramanian as our September…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 725 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 363 Moderator

#3
Power Apps 1919 Profile Picture

Power Apps 1919 341

Last 30 days Overall leaderboard
Loading started
Loading complete