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 :
Power Platform Community / Forums / Power Automate / How to use Expressions...
Power Automate
Unanswered

How to use Expressions (Add)

(0) ShareShare
ReportReport
Posted on by

Hi @RezaDorrani,

 

Firstly, thank you for sharing the expressions #01 series on youtube. It helped me a lot. to understand expressions in Power Automate.

 

I have some queries.

  1. I am using expressions to calculate values in approx 54 sharepoint columns (total 120) which consist of many arithmetic + logical functions. These calculations will be done for approx 2000 rows every time. The resultant schema is passed to PowerApps for analysis. Do you think I am overloading PowerAutomate?
  2. How can I count 12 columns only when the values inside them are not null? Similar to COUNTA in excel.
  3. How can I add more than 2 parameters using Add function? I need to calculate sum of more than 12 columns.

1.png

 

Can you please help?

Others can help too if they know the solution.

 

Best,

Aakash

 

Categories:
I have the same question (0)
  • Verified answer
    v-litu-msft Profile Picture
    on at
    Re: How to use Expressions (Add)

    Hi @Anonymous,

     

    1. If only has 54 SharePoint calculate columns, it doesn't overload the limits of expression, the characters limitation is 131,072 characters. If you are familiar with calculate column in SharePoint, you could consider using it which will be easier achieved than expression.

    Examples of common formulas in lists - SharePoint (microsoft.com)

    2. You could use expression empty() to check if each column is true. Then use if() function to switch output. For example:

    if(empty(variable('columnA')),0,variable('columnA'))

    3. The add() function only accepts two parameters, add(<summand_1>, <summand_2>).  So if 8 columns add, the expression will be as below:

    add(add(add(column1,column2),add(column3,column4)),add(add(column5,column6),add(column7,column8)))

    Best Regards,
    Community Support Team _ Lin Tu
    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

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
Tomac Profile Picture

Tomac 532 Moderator

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 461 Super User 2025 Season 2

#3
chiaraalina Profile Picture

chiaraalina 256

Last 30 days Overall leaderboard