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

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

Capture.JPG
Capture4.JPG
Capture3.JPG
Categories:
I have the same question (0)
  • Michael E. Gernaey Profile Picture
    53,974 Moderator 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?

    Capture.JPG
    Capture2.JPG
  • 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

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 551

#2
WarrenBelz Profile Picture

WarrenBelz 430 Most Valuable Professional

#3
Valantis Profile Picture

Valantis 298

Last 30 days Overall leaderboard