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

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Compose action to remo...
Power Automate
Unanswered

Compose action to remove Text and only store number value

(1) ShareShare
ReportReport
Posted on by

Hello. 

 

I have a several Compose Actions that have an output that look like this

1.
[
  {
    "[KPI]": 0.9333333333333333
  }
]

 

2. 

[
  {
    "[KPI Delivery Value]": 0.9090909090909091
  }
]
 
3.
[
  {
    "[KPI_Value]": 0.9215686274509803
  }
]
 
I need to store these values into Excel , which i have done, however, i just need the value storing, not the text. At the moment, i am dropping the value of compose in the excel field.
 
How can i have so that only the Number Value of the output is stored?
 
Thanks 
Categories:
I have the same question (0)
  • trice602 Profile Picture
    15,892 Super User 2026 Season 1 on at

    Hi @dafdsafdsaf ,

     

    You can use this for any of these values, to get the data after ": ",

     

    split(outputs('Compose'), ' ')[sub(length(split(outputs('Compose'), ' ')), 1)]

     

    trice602_0-1694448733195.png

     

     

  • Michael E. Gernaey Profile Picture
    53,928 Moderator on at

    Hello,

     

    In his case since it looks like this

     

     

    [
     {
     "[KPI_Value]": 0.9215686274509803
     }
    ]

     

     

    I would do it like this

     

     

    split(trim(split(string(outputs('Compose')),':')[1]),'}')[0]

     

     

    Where it first turns it into a string, so it can be split by the :, and then again split by the }

    FLMike_0-1694449534752.png

    And it only shows the input as the same as the output because the input is based on the code I have so thats expect.


    Cheers
    If you like my answer, please Mark it as Resolved, and give it a thumbs up, so it can help others
    Thank You
    Michael Gernaey MCT | MCSE | Ex-Microsoft
    https://gernaeysoftware.com
    LinkedIn: https://www.linkedin.com/in/michaelgernaey

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Automate

#1
trice602 Profile Picture

trice602 237 Super User 2026 Season 1

#2
David_MA Profile Picture

David_MA 173 Super User 2026 Season 1

#3
Kalathiya Profile Picture

Kalathiya 95 Super User 2026 Season 1

Last 30 days Overall leaderboard