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 Apps / Merge common rows in S...
Power Apps
Answered

Merge common rows in SharePoint linked to a PowerApps

(0) ShareShare
ReportReport
Posted on by 8

Hi all,

 

Recently I got hired at a company that works with PowerApps in their process. They made an application that give us data from 3 different machines and create 3 different rows in SharePoint with a common architecture between them, leaving some cells with no data. Those rows have the same ID and columns.

 

Is there a way to merge all 3 rows from the different machines into 1?

 

Here's an example of what I'm saying. The first 2 rows doesn't have info in those columns, but more to the right they do and the last one doesn't.

PatricioH_0-1706210716519.png

 

Sorry for the bad english, not my first language.

 

Categories:
I have the same question (0)
  • WarrenBelz Profile Picture
    154,930 Most Valuable Professional on at

    Hi @PatricioH ,

    It is easy enough to find the ones with data, but what if two have data, which one's fields take preference ?

  • PatricioH Profile Picture
    8 on at

    Hi @WarrenBelz , thanks for your reply.

    The data is collected from a linear process where each machine that upload the data have their own column, that's why i need to merge the 3 rows.

    In the image I uploaded, the third and only with data is the first machine from the process, the second row is the second macine and so. They'll never have data in the columns that don't represent their machine.

  • WarrenBelz Profile Picture
    154,930 Most Valuable Professional on at

    Hi @PatricioH ,]

    So do you simply want the ones containing data or the most recent one with data ?

  • PatricioH Profile Picture
    8 on at

    Hi @WarrenBelz ,

     

    I want to merge the ones containing data, I'll attach an example of what i want to do.

    image.png
  • WarrenBelz Profile Picture
    154,930 Most Valuable Professional on at

    Hi @PatricioH ,

    I have to ask again - what if two contain data ?

  • PatricioH Profile Picture
    8 on at

    Hi @WarrenBelz,

    There'll be not. But to answer your question I guess I want the one with the most recent data.

  • Verified answer
    WarrenBelz Profile Picture
    154,930 Most Valuable Professional on at

    Hi @PatricioH ,

    Looking at it again as you do not have a date (recent) marker, this should pick up the first non-blank values

    AddColumns(
     GroupBy(
     TableName,
     "Fetcha",
     "Turno",
     "Folio",
     "Diamento",
     "Espesor",
     "Ancho",
     "Largo",
     "Altura de corte",
     "Data"
     ),
     "Matrices1",
     LookUp(
     Data,
     !IsBlank('Matrices a twin 1'
     ).'Matrices a twin 1',
     "Matrices2",
     LookUp(
     Data,
     !IsBlank('Matrices a twin 2'
     ).'Matrices a twin 1',
     "MatricesTotal",
     LookUp(
     Data,
     !IsBlank('Matrices Totales'
     ).'Matrices Totales',
     "Slash",
     LookUp(
     Data,
     !IsBlank('Slash %')
     ).'Slash %',
     "SlashM2",
     LookUp(
     Data,
     !IsBlank('Slash m3')
     ).'Slash m3'
    )

    Also these are based on the field names I can see, so you will need to assure they are correct.

     

     

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

    MVP (Business Applications)   Visit my blog Practical Power Apps

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 March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 541

#2
WarrenBelz Profile Picture

WarrenBelz 434 Most Valuable Professional

#3
Valantis Profile Picture

Valantis 289

Last 30 days Overall leaderboard