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 / How to use the modulus...
Power Automate
Unanswered

How to use the modulus function with variable in new interface

(0) ShareShare
ReportReport
Posted on by 3

I am new to power automate. However, I am trying to use the mod function to find the remainder of a variable called counter. I have tried different modifications but not going. The resources i saw online only talked about using mod in the old interface. Capture3.PNG

I have the same question (0)
  • UshaJyothiKasibhotla Profile Picture
    225 Moderator on at

    UshaJyothi20_2-1700484653148.png

     

     

    Hope this helps,

    Usha.

     

  • UshaJyothiKasibhotla Profile Picture
    225 Moderator on at

    I Assume this is your requirement

    In if activity

    First operand % mod counter/46%

    Equal to

    Second operand 0

  • UshaJyothiKasibhotla Profile Picture
    225 Moderator on at

    Try this Way

    UshaJyothi20_1-1700484608179.png

    Hope this helps

    Usha.

  • Agnius Bartninkas Profile Picture
    Most Valuable Professional on at

    The correct syntax for using mod in your case is as follows: %Counter mod 46%

     

    -------------------------------------------------------------------------
    If I have answered your question, please mark it as the preferred solution. If you like my response, please give it a Thumbs Up.

    I also provide paid consultancy and development services using Power Automate. If you're interested, DM me and we can discuss it.

     

  • habeeb1 Profile Picture
    3 on at

    I am afraid, Its still not working

     

  • Agnius Bartninkas Profile Picture
    Most Valuable Professional on at

    Can you please be more specific as to what doesn't work? Does it throw an error, or does it actually compile, but does not return the expected output? Have you tried the syntax I suggested above?

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!

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Vish WR Profile Picture

Vish WR 1,027

#2
Valantis Profile Picture

Valantis 815

#3
Haque Profile Picture

Haque 630

Last 30 days Overall leaderboard