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 / GroupBy on Archived Da...
Power Apps
Answered

GroupBy on Archived Data + Current Data

(0) ShareShare
ReportReport
Posted on by 6,048 Super User 2024 Season 1

Here's the scenario:

I am archiving data from SP List A to B using Power Automate. B have 4 extra column CreatedByOriginal, ModifiedByOriginal, ModifiedOriginal, CreatedOriginal. To bring metadata from List A.

 

In one of my PowerApps i am merging List A and B using Collection. If I Group By this collection on Created and CreatedByOriginal. Will it work? and give me reliable data?

Categories:
  • Verified answer
    yashag2255 Profile Picture
    24,769 Super User 2024 Season 1 on at

    Hi @zmansuri 

     

    Yes, this is achievable. You will need to rename the columns in both the list while calling them in the expressions. You can build out the expressions using:

    ClearCollect(CollectionName, GroupBy(RenameColumns(DataSourceName, "Modified","ModifiedApp"),"ModifiedApp","Grouped"));
    Collect(CollectionName, GroupBy(RenameColumns(DataSourceName2, "ModifiedOriginal","ModifiedApp"),"ModifiedApp","Grouped"))

     

    This way both the columns will have same name irrespective of the list it is coming from.

     

     

    Hope this Helps!

     

    If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!

  • zmansuri Profile Picture
    6,048 Super User 2024 Season 1 on at

    Can you help me with the formula?

    2 list

    Candidate_Leads

    Candiddate_Leads_Archive

     

    I need to merge them into one collection and also groupby "Created By".DisplayName" that collection into gallery. Since i need to use addcolumn first to add "Created By".DisplayName because it's person type column. and then rename this column so they have same names in collection, I can't get the formula right

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 248 Super User 2026 Season 2

#2
WarrenBelz Profile Picture

WarrenBelz 192 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 135

Last 30 days Overall leaderboard