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 / 1. Showing total numbe...
Power Apps
Answered

1. Showing total number of reservations when choosing date in the powerapps calendar; 2 table sorting doesn't work; 3 group data table per date?

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hello,  Im building a powerapp used for attendance registration at my office. I've used a powerapp for the form and a sharepoint site to store the registrations in a list.  This is my first powerapp so I'm quite new at this. I have 3 problems that I need help with:

 

1. I want to be able to show the total number of registrations when selecting a date in the powerapps calendar, is this possible?

2. The sharepoint list is viewed in the app as a datatable, but the table won't sort after latest date, is it possible to set as default?

- I am using a button with the following code: SortByColumns(Närvarostatus; "Datums";Ascending) where Närvarostatus = list name, Datums=name of column

3. Is it possible to group the data table per date (displaying total number of registrations per day) as in the sharepoint site? I have attached a screenshot of the sharepoint view. 

 

Thank you very much for your help! All the best / Axel

bild1.jpg
bild2.jpg
Categories:
I have the same question (0)
  • Verified answer
    WarrenBelz Profile Picture
    156,454 Most Valuable Professional on at

    Hi @Anonymous ,

    If you want the numbers per date

    Sort(
     AddColumns(
     GroupBy(
     Närvarostatus; 
     "Datums";
     "OtherData"
     );
     "DateCount";
     CountRows(OtherData)
     );
     Datums
    )

     

    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.

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    @WarrenBelz  Thank you for your reply,

     

    When adding this code to the OnSelect field of a button, it does nothing? Should I apply the code elsewhere? Thanks

    bild 3.jpg
  • WarrenBelz Profile Picture
    156,454 Most Valuable Professional on at

    @Anonymous ,

    The code should be the Items of a gallery - you asked how to display these.

     

    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.

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    @WarrenBelz Update: How can I write the OnSelect code of each individual object, if I want to navigate to another screen with a data table with a filter so that it only shows the bookings made on the particular date?

     

    Something like this?

    Navigate(Screen1;ScreenTransition.Cover;Filter(Närvarostatus; ThisItem.Datums=Today(Datum)))

    bild4.jpg
  • Verified answer
    WarrenBelz Profile Picture
    156,454 Most Valuable Professional on at

    @Anonymous ,

    The Filter needs to be on the second gallery (you just need to navigate to it) and would be something like

    Filter(
     Närvarostatus; 
     Text(Datums,ShortDate)= Text(FirstGalleryName.Selected.Datums,ShortDate)
    )

     

    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.

     

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Thank you for all of your help! I'll mark your answer as the accepted solution. Best regards / Axel 

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    I'll ask one more question if you want to: is it possible to set default filtering on a gallery - showing only the items created by the user? Best regards / Axel 

  • WarrenBelz Profile Picture
    156,454 Most Valuable Professional on at

    Thanks @Anonymous ,

    Yes, but the property 'Created by' is not Delegable and will have issues on large data sets. The syntax would be

    Filter(
     Närvarostatus; 
     Text(Datums,ShortDate)= Text(FirstGalleryName.Selected.Datums,ShortDate) &&
     'Created by' = User().FullName
    )

     

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

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 358 Most Valuable Professional

#2
11manish Profile Picture

11manish 214 Super User 2026 Season 2

#3
Mohsin Ali Profile Picture

Mohsin Ali 185

Last 30 days Overall leaderboard