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 / Sum excel rows when mu...
Power Automate
Unanswered

Sum excel rows when multiple fields match

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

Hi 

 

I'm currently hitting a blank on this issue, so I'm going to log off for the night and hope that I'm either hit with inspiration or someone can point me towards the logic.

 

I have a table in excel that I need to match multiple columns then add the value in a 4th.

I would like to get all the rows that have identical Project, Person and Code combinations be a single row with a total

so that, my 20 rows here would become 14

 

CraigStewart_2-1652213459271.png

 

 

In my List Rows action I'm filtering on ISP eq 'Yes' so that I will only get Yes lines, then I've filtered array so that I don't get empty Code lines.

 

I just can't seem to get my head around what logic I need to apply here to combine these rows to get a cleaner output once I get here.

 

Hopefully a good nights sleep will help me 🙂

 

 

CraigStewart_3-1652213870463.png

 

 

Thanks

 

Craig

 

 

Categories:
I have the same question (0)
  • Verified answer
    Rhiassuring Profile Picture
    8,690 Moderator on at

    Ooh - fun!

    I think the first thing I'd do is turn that result from Excel into an array, and then add a field:value that concatenates Person-Project-Code. Then you can do a union on that concatenated field to pull back the ones that are unique combos, then loop through that union output to grab the associated data from the Excel array stuff.

    Let me know if you want to see a step by step of that.

     

    R

  • Craig Stewart ABZ Profile Picture
    959 Super User 2024 Season 1 on at

    Thanks Rhia. That's really helpful.

    After a bit of tinkering around I have indeed managed to concatenate the items and insert them into the array.

    CraigStewart_0-1652260106640.png

     

    CraigStewart_2-1652260270235.png

     

    However I got stuck here on how to get this working and couldn't find anything in my searches for a solution.  😪 

     

    So I'd love to see a step through if this is something you've been through before, but please don't be putting yourself out to do so as I have a working solution.

    In the end I opted to put a concatenated column in the excel document and worked through using that field as the one to drive the output following this topic which I previously used Solved: use flow to sum some row in excel - Power Platform Community (microsoft.com)

     

    My concern with the way I'm doing it now is the time it takes it's around 5 minutes for 19 lines and going forward we'll be upwards of 1000 at a time, so I'd be keen to see if there is an alternative option.

     

    Thanks again for your assistance here, it was useful and pointed me in the right direction.

     

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 522 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 364 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard