web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / how to remove last mon...
Power Apps
Unanswered

how to remove last month days in calender screen

(0) ShareShare
ReportReport
Posted on by

i have inserted calender control from calender template screen.

now i want to remove last month disabled dates and future days from calender. so in each month it should display only that month days . how to do it.

Categories:
I have the same question (0)
  • v-jefferni Profile Picture
    on at

    Hi @venky232 ,

     

    Please go to Visible of the Label inside the MonthDayGallery, add the formula below as in my screenshot:

    vjefferni_2-1690872880041.png

     

    &&!(Abs(Self.Text - ThisItem.Value) > 10)

     

     

    Best regards,

  • venky232 Profile Picture
    on at

    its working but i have added a label in gallery to show holidays .but for blank date also it is showing label value in below code

    LookUp(
    Filter(
    Holidays2023,
    'Holiday Type' = "Public Holiday"
    ),
    'Holiday Date' = Text(DateAdd(_firstDayInView, ThisItem.Value, TimeUnit.Days), "dd-mmm-yyyy"),
    'Holiday Type'
    )

     

  • v-jefferni Profile Picture
    on at

    Hi @venky232 ,

     

    You can simply copy all the codes in Visible of Title Label to Visible of the holiday Label you just added then hide them from current month.

     

    Best regards.

  • venky232 Profile Picture
    on at

    error 

    Issue 
    Name isn't valid. 'Value' isn't recognized.
    This error appears most commonly when a
    formula refers to something that no longer exists
    (for example, a control that you've deleted).
    Location
    CB Button 3
    Msible
    How to fix
    Remove or correct the reference to the name that
    isn't valid.

     and also the value cant convert to number 

  • v-jefferni Profile Picture
    on at

    Hi @venky232 ,

     

    Could you please share a screenshot of the new Label and current formula in Visible? I cannot understand why the convert to number error appears.

     

    Best regards,

  • venky232 Profile Picture
    on at

    i added button in gallery of calender to display choice value of sharepoint coloumn.

    in button text properties i added as thisitem.SPchoice.value.

     

  • Verified answer
    v-jefferni Profile Picture
    on at

    Hi @venky232 ,

     

    vjefferni_0-1690876889569.png

     

    Best regards,

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 717 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 329 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard