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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Create a Constant Valu...
Power Automate
Answered

Create a Constant Value to Loop

(0) ShareShare
ReportReport
Posted on by 997 Super User 2024 Season 1

Hi, I have this Leave Balance list with the initial and increment value for Annual Leave. I have a requirement that Annual Leave increases per month according to their initial value.

 

For example, 

In January,

Employee Name Annual Leave
Leo 1.17
Mike 1.33

 

In February,

Employee Name Annual Leave
Leo 2.34
Mike 2.66

 

In March, 

Employee Name Annual Leave
Leo 3.51
Mike 3.99

 

It increases based on the values in January (the initial values).

syhrh_0-1661846455714.pngsyhrh_1-1661846477660.pngsyhrh_2-1661846540678.png

My flow runs differently than I want. It updates based on the column Annual Leave.

For example, January is the same as the above example.

In February,

Employee Name Annual Leave
Leo 2.34
Mike 2.66

 

In March, 

Employee Name Annual Leave
Leo 4.68
Mike 5.32

 

It increases based on the current Annual Leave. I don't know how how to create a constant value for the Annual Leave. Can anyone please help me?

 

Thank you.

 

Categories:
  • Verified answer
    DamoBird365 Profile Picture
    8,942 Microsoft Employee on at

    Hi @syhrh 

     

    Two options:

    1. Add a column to support the increment value OR

    2. Divide the Annual Leave Amount by the current month-1 i.e.

    sub(int(formatdatetime(utcnow(),'MM')),1)

    Cheers
    Damien

    Please take a look and subscribe to my YouTube Channel for more Power Platform ideas and concepts. Thanks
  • syhrh Profile Picture
    997 Super User 2024 Season 1 on at

    @DamoBird365 I added a column to support it and it works. Thanks for the suggestion!

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Automate

#1
Mohsin Ali Profile Picture

Mohsin Ali 355

#2
11manish Profile Picture

11manish 336 Super User 2026 Season 2

#3
M Bilal Khan Profile Picture

M Bilal Khan 308

Last 30 days Overall leaderboard