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 / Week calendar to displ...
Power Apps
Unanswered

Week calendar to display my cars reservations

(0) ShareShare
ReportReport
Posted on by 3

i have a app to do car reservations and i want to create a calendar view. i have this example the only thing wrong is that the cars need to be on the same row bu t i dont want to create a row every time i add a car or delete a row whe delete a car.

martinsnuno_0-1683025045996.png

it is a gallery nested on other gallery. 

 

The code to do the week days is setted on the onvisible of the screen and is like this:
Set( _DateSelected; Today() );;

Set( _FirstDayOfWeek; Switch( Weekday(_DateSelected); 7; DateAdd( _DateSelected; -6; TimeUnit.Days ); 6; DateAdd( _DateSelected; -5; TimeUnit.Days ); 5; DateAdd( _DateSelected; -4; TimeUnit.Days ); 4; DateAdd( _DateSelected; -3; TimeUnit.Days ); 3; DateAdd( _DateSelected; -2; TimeUnit.Days ); 2; DateAdd( _DateSelected; -1; TimeUnit.Days ); 1; DateAdd( _DateSelected; -0; TimeUnit.Days ); DateValue("01/01/2023") ) );;

 

the code of the outside gallery items is

[0;1;2;3;4;5;6]

 

the code to the inner gallery items is:

Filter( Reservas_Nao_Finalizado; estado = "Aprovado"; DateValue( Text( datainicio; DateTimeFormat.ShortDate ) ) <= DateValue( Text( DateAdd( _FirstDayOfWeek; ThisItem.Value; TimeUnit.Days ); DateTimeFormat.ShortDate ) ) && DateValue( Text( datafim; DateTimeFormat.ShortDate ) ) >= DateValue( Text( DateAdd( _FirstDayOfWeek; ThisItem.Value; TimeUnit.Days ) ) ) )

 

the code to the fill of th rectangle is:
If(IsBlank(ThisItem.Value);RGBA(0;0;0;0);ColorValue(LookUp(Tabela1; id = LookUp(Carros; carro = ThisItem.Value; id); cor)))

 

Auxiliar info

the translation of Aprovado is Aproved

Categories:

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

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 221 Super User 2026 Season 2

#2
WarrenBelz Profile Picture

WarrenBelz 188 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 120

Last 30 days Overall leaderboard