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 / Display AM/PM along wi...
Power Apps
Unanswered

Display AM/PM along with Date on Calendar

(0) ShareShare
ReportReport
Posted on by 109

Hello 

 

 

I have a Calendar as follows :

lovishsood1_0-1660712053492.png

 

As you can see, If a user applies for leave for a SINGLE DAY from Calendar for FULL DAY, It shows Full Day in Brackets

For half day, It will display Session 1 (AM). 

lovishsood1_1-1660712322016.png

 

Now, If I want to apply in RANGE ( Aug 30-Aug 31 -- FULL DAY), It will show as :

lovishsood1_2-1660712385869.png

 

Problem: If I apply in RANGE but I want to apply HAlf day for Aug 31... i.e., 1.5 Days
then it will display Session 1 (AM ) for both Aug 30 and Aug 31.

lovishsood1_3-1660712853597.png

 

 

Fields: This is how I'm applying for a Leave

From Date -- From Session (Session 1/Session 2) 

To Date -- To Session (Session 1/Session 2) 

 

 

Session 1 = AM 

Session 2 = PM

lovishsood1_5-1660713087613.png

 

 

 

My Code :

If(ThisItem.FromSession="Session 1" && ThisItem.ToSession="Session 2" ,"Full Day",
 ThisItem.FromSession="Session 1" && ThisItem.ToSession="Session 1" ,"Session 1",
 ThisItem.FromSession="Session 2" && ThisItem.ToSession="Session 2","Session 2")

 

 

Required Output :

 

Aug 30 (Full Day) and Aug 31 (Session 1)

 

 

I hope my problem is understood. 

Categories:
  • VJR Profile Picture
    7,635 on at

    But in your formula nowhere it is calculating based on the dates. It is only seeing the session dropdowns.

     

    Therefore this formula (or any other) is always evaluating to Session 1 irrespective of what the dates are selected.

    ThisItem.FromSession="Session 1" && ThisItem.ToSession="Session 1" ,"Session 1",

     

    So need to work out on a logic to include dates too.

     

  • lovishsood1 Profile Picture
    109 on at

    Yeah, I'm not able to figure that logic.

    Can you help me in including dates along with sessions? 

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 337 Super User 2026 Season 2

#2
M Bilal Khan Profile Picture

M Bilal Khan 250

#3
Mohsin Ali Profile Picture

Mohsin Ali 225

Last 30 days Overall leaderboard