Skip to main content

Notifications

Power Apps - Building Power Apps
Unanswered

Matching blank horizontal gallery with date headers

(0) ShareShare
ReportReport
Posted on by

Hi all, 

 

I created a Blank horizontal gallery with timesheet lines. In this gallery, I created a vertical container with labels to display the information for that timesheet line. On top of the gallery, I created headers with the dates of a certain week, based on a datepicker (so 7 dates). How can I make sure that, for each date, the horizontal gallery only shows the items of the specific day that matches the date in the header? 

 

Hope anyone can help!

Thanks in advance.

 

  • Re: Matching blank horizontal gallery with date headers

    Hi @fleur2 ,

     

    According to your statement, I make a demo for your reference.

     

    My data source list from SharePoint is named "Datetime". I will use below function to get weekday of that datetime and determine whether we should display it.

     

    ClearCollect(bb,Filter(Datetime,Weekday(Datetime,2)=1))

     

    vwenjuanmsft_0-1681453539504.png

     

    If I pick Friday's button, only today's item will be displayed:

    vwenjuanmsft_1-1681453596970.png

     

    Refer to this link for details about weekday() function:

    Day, Month, Year, Hour, Minute, Second, and Weekday functions in Power Apps - Power Platform | Microsoft Learn

     

    Best regards,

     

    Community Support Team _ Wenjuan Zou

    If this post helps, then please consider Accept it as the solution to help the other members find it.

     

     

     

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

Microsoft Kickstarter Events…

Register for Microsoft Kickstarter Events…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Announcing Forum Attachment Improvements!

We're excited to announce that attachments for replies in forums and improved…

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 145,434

#2
RandyHayes Profile Picture

RandyHayes 76,287

#3
Pstork1 Profile Picture

Pstork1 64,722

Leaderboard