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 / Vacation view with Tit...
Power Apps
Answered

Vacation view with Title and calculated days of

(0) ShareShare
ReportReport
Posted on by 106

Hi Experts

 

I have a SharePoint List, HolidayApp_Data. HolidayApp_Data contains the columns
Title, StartTime, EndTime, Status, Id and CalculatedDaysOff.
In PowerApps, I have a collection, colVacationEvents. colVacationEvents is based on HolidayApp_Data,

ClearCollect(
colVacationEvents,
Filter(
HolidayApp_Data,
varIsManager,
Omk=varO365User.companyName,
Status.Value = "Approved"
)
)

The same Title entry can appear several times in HolidayApp_Data (therefor also colVacationEvents), but with diffrent StartTime and EndTime.
In PowerApps I have a Gallery, gal_VacationView.
gal_VacationView shows all Title sorted alphabetically and distinct(),
since I only want Title once, despite the fact that Title can appear several times in HolidayApp_Data and thus also in colVacationEvents.
To the right of the Title column in gal_VacationView I have another Gallery, gal_Border. gal_Border shows at the top the Month, week and the dateperiode for that week.
Now I then want each StartTime and EndTime periode (calculated in days) that correspond with the Title to the left, be placed in the right column that correspond with the right month and week.
So CalculatedDaysOff (DateDiff between StartTime and EndTime) should be placed in the label with ? under the right month and week

 

Screenshot1.png 

Categories:
I have the same question (0)
  • Verified answer
    Rene_Newbee Profile Picture
    106 on at

    This is the code from Items on gal_VacationView.
    Distinct(
    SortByColumns(
    colVacationEvents,
    "Title",
    Ascending
    ),
    Title
    )

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 329 Most Valuable Professional

#2
11manish Profile Picture

11manish 209 Super User 2026 Season 2

#3
Mohsin Ali Profile Picture

Mohsin Ali 179

Last 30 days Overall leaderboard