Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics CRM (Archived)

SSRS current Year, previous Year,Current year all Quarter in Date time Filter

Posted on by 884

Hi guys,

I am Looking for a dynamic filter that takes today's datetime and gives me all the entry's in current year,previous Year,current year quarter 1,current year quarter 2 ,current year quarter 3,current year quarter 4
Show something like this image.(date-time filed to get record)

3835.Filter.PNG

Thanks for all the help - i really appreciate it!

*This post is locked for comments

  • Suggested answer
    Aric Levin Profile Picture
    Aric Levin 30,188 on at
    RE: SSRS current Year, previous Year,Current year all Quarter in Date time Filter

    You can pass your date field as parameter, and use a SQL Statement to generate the list of values, based on that parameter...

    Something like:

    SELECT year(@MyDate) As [CurrentYear], year(@MyDate) - 1 As [PastYear]...

    Hope this helps, or clarify a little further if this is not what you need.

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,269 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,198 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans