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 Apps / Group gallery by date ...
Power Apps
Unanswered

Group gallery by date range

(0) ShareShare
ReportReport
Posted on by 72

Hi,

 

I'm currently building a timesheet app. For context, each timesheet record is being added to a SharePoint list, this means records have the same date range (as they are done weekly), etc. as each day will have several records. Hopefully, that makes sense, I have attached an image of the timesheet input screen.  

 

I have a screen where you can view and select the timesheets you have submitted but it's obviously showing all records. I want to group these records by the date range/week so you can select the timesheet based on the week.

What I also have that is making it difficult for me to figure out how to group it, is that the timesheets have an approval status. But the records will be approved by different approvers so it means some records may be approved and others pending approval.

 

I have successfully grouped it by date range, please see the images attached, but as you can see this makes the status field hard to read as it lists all the statuses. Is there any way I can concise this so it will show the different statuses but won't list all the record's statuses?

 

Please let me know if this needs more explanation.

Thanks,

Caoimhe

Categories:
I have the same question (0)
  • Michael E. Gernaey Profile Picture
    53,323 Super User 2025 Season 2 on at

    hi @caoimhelambert 

     

    Apologies but its not very clear what you need.

     

    What would really help is can you please create some examples of what the order is you want because you first said its grouped by date, then you talk about the status.

     

    Are you asking to group them by Date, and remove the status column?


    If you like my answer, I would really appreciate if you please Mark it as Resolved, and give it a thumbs up, so it can help others

    Cheers

    Thank You
    Michael Gernaey MCT | MCSE | MCP | Self-Contractor| Ex-Microsoft
    https://gernaeysoftware.com
    LinkedIn: https://www.linkedin.com/in/michaelgernaey

  • caoimhelambert Profile Picture
    72 on at

    Hi @FLMike ,

     

    Sorry, I haven't explained it too well, hopefully this is clearer.

    I followed a tutorial (PowerApps GroupBy function and Nested Galleries - YouTube) and used the GroupBy function to group the gallery by the title - which is the date range and by the approval status. I believe I created a groupby data set (which is DATA) to do this.

    In the approval status field, I've used the concat function, referencing the groupby data set (which is DATA) to show the status. As the group can have several different approval statuses it lists each of the SharePoint records status. 

     

    Is there a way to concise this so it doesn't list every single record's approval status?

  • Verified answer
    caoimhelambert Profile Picture
    72 on at

    Figured it out. Use the Distinct function, for example using Shane's video, PowerApps GroupBy function and Nested Galleries - YouTube);

    Concat(
    Distinct(
    ThisItem.DATA,
    Employee.DisplayName
    ), Value & "")

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 Apps

#1
WarrenBelz Profile Picture

WarrenBelz 796 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 327 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard