cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Anonymous
Not applicable

Sum of value column in sharepoint with power automate

Hello,

 

Wanne have a sum of one column. But looks in two columns always first type 1 and if not existing type 2.

My problem is that when both doesn't existing he count one more(with no value). See my pictures.  The right total is 340 and no 342.

How can i fixed this or is there a better way to get this easy thing done?

 

Kind regard, 

SanderSchermafbeelding 2021-03-05 145146.jpg

Schermafbeelding 2021-03-05 143133.jpgSchermafbeelding 2021-03-05 143245.jpg

1 ACCEPTED SOLUTION

Accepted Solutions
annajhaveri
Super User
Super User

@Anonymous  so in understand that you want to put some other value when both type1 and type2 columns have a blank value in item, you can use below expression to do that, just replace 'put value when both column is null' with the value you want when both the columns have empty value. 

if(equals(items('Apply_to_each')?['type1'],null),if(equals(items('Apply_to_each')?['type2'],null),'put value when both column is null',items('Apply_to_each')?['type2']),items('Apply_to_each')?['type1'])
Regards,
Anna Jhaveri

If I have answered your question, please mark the post as Solved to help other users to identify the correct answer
If you like my response, please give it a Thumbs Up.

View solution in original post

3 REPLIES 3
annajhaveri
Super User
Super User

@Anonymous  so in understand that you want to put some other value when both type1 and type2 columns have a blank value in item, you can use below expression to do that, just replace 'put value when both column is null' with the value you want when both the columns have empty value. 

if(equals(items('Apply_to_each')?['type1'],null),if(equals(items('Apply_to_each')?['type2'],null),'put value when both column is null',items('Apply_to_each')?['type2']),items('Apply_to_each')?['type1'])
Regards,
Anna Jhaveri

If I have answered your question, please mark the post as Solved to help other users to identify the correct answer
If you like my response, please give it a Thumbs Up.

View solution in original post

Anonymous
Not applicable

Thanks for your reply,

The value has to be just zero. He don t have to count the empty rows.

So i can also without that?

Anonymous
Not applicable

Its works! for the value i was fill in 0 and it works 🙂 Thanks

Helpful resources

Announcements
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

Welcome Super Users.jpg

Super User Season 2

Congratulations, the new Super User Season 2 for 2021 has started!

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

Top Solution Authors
Users online (2,214)