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 / Match Log function wit...
Power Automate
Unanswered

Match Log function within expression

(0) ShareShare
ReportReport
Posted on by 2
i would like to calculate log(body('HTTP_Request')?['value'][0]['Age']) but log function is not reconigzed. So how can i calculate with log function?
Categories:
I have the same question (0)
  • Chriddle Profile Picture
    8,443 Super User 2025 Season 2 on at
    There is no such function :{
     
    You can connect to an API (if you find one) or do this calculation within a Custom connector (similar to Microdofts Regex example)
    ...or you do the calculation yourself in PA ;)
  • Chriddle Profile Picture
    8,443 Super User 2025 Season 2 on at
    If your age is an integer, you can create an array like this (just extend it to index 150):
     
    To get Log(3), use this:
    outputs('Compose')[3]
     
    To create the array you can type the following Javascript into a browser console
    console.dir([...Array(151).keys()].map(x=>(x>0?Math.log10(x):null)))
    Then press Enter,
    right click on the result and copy to clipboard,
    paste into a Compose action
     
     
    For floats, you can create a hashmap, which represents an algorithm table.
  • CU19020709-0 Profile Picture
    2 on at
    i am gonna use Excel or maybe office function. thats easier and i can check excel to check the calculation also

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