Displaying Contents/Items from Current Month in SharePoint List

Martin, Heidi (SE GP T SP PS) 571 Reputation points
2024-04-15T12:27:08.9466667+00:00

Hello,
I would like to display only the contents/items from the current month in a SharePoint list. For example, if it's April, I want to see only the contents/items tagged with the month of April. Is this possible? If yes, what do I need to do?

It should do this automatically.

Thank you!

SharePoint
SharePoint
A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.
11,230 questions
{count} votes

Accepted answer
  1. Xyza Xue_MSFT 30,076 Reputation points Microsoft External Staff
    2024-04-16T01:51:27.3333333+00:00

    Hi @Martin, Heidi (SE GP T SP PS) ,

    Thank you for posting in this community.

    You can create two calculated columns to get the start date and end date of the month of the date column(you said to store April's date column). Then check if the start date of the month of the date value is less than or equal to the current date [Today] and end date of the month of the date column is greater than or equal to the current date [Today]. If yes, it is in the current month.

    Create two calculated columns named "Start of Month" and "End of Month". Return as the Date and Time data type.

    "Start of Month" =DATE(YEAR([date]), MONTH([date]), 1)
    
    "End of Month" =DATE(YEAR([date]), MONTH([date])+1,1)-1
    

    Create/modify a view and add filter as follow: enter image description hereenter image description here

    This allows the view to automatically display the current month's item.


    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments

4 additional answers

Sort by: Most helpful
  1. Xyza Xue_MSFT 30,076 Reputation points Microsoft External Staff
    2024-04-16T07:11:25.5633333+00:00

    Hi @Martin, Heidi (SE GP T SP PS) ,

    Sure, my pleasre.

    Here are detail steps:

    1.You have your own stored time column containing the month (in my case, “date”).

    2.You can create two calculated columns:"Start of Month","End of Month".

    Use the following corresponding formulas:

    "Start of Month":

    =DATE(YEAR([date]), MONTH([date]), 1) 
    

    "End of Month":

    =DATE(YEAR([date]), MONTH([date])+1,1)-1
    

    User's imageUser's image

    3.Create/modify a view and add filter as follow: enter image description here.

    User's image

    enter image description here


    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    2 people found this answer helpful.
    0 comments No comments

  2. Martin, Heidi (SE GP T SP PS) 571 Reputation points
    2024-04-16T04:47:22.92+00:00

    Good morning, @Xyza Xue_MSFT

    Thank you very much for your feedback.

    I have a small problem. I don't know exactly what columns I need to have or create and in which columns I need to store which calculation. Can you describe this in more detail? That would be great! Thank you so much.

    0 comments No comments

  3. Martin, Heidi (SE GP T SP PS) 571 Reputation points
    2024-04-17T05:58:31.25+00:00

    Good morning Haoyan Xue_MSFT,

    Thank you so much! :-) It works!!!

    BR,
    Heidi


  4. VO TRUNG TRI 0 Reputation points
    2024-10-15T07:34:38.8566667+00:00

    Hi @Xyza Xue_MSFT

    In my case:

    I want to create the column for month.

    One month are calculate from 26/Aug/2024 to 25/Sep/2024 ==> is September month.

    kindly give me advice for this case!!

    Best Regards!

    Tri

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.