You need to sign in to do that
Don't have an account?
Eager-2-Learn
How to have a report produce YTD
Hello,
I see many different built in function such as TODAY or THIS WEEK, for example; however, I do not see one for YEAR TO DATE!
Does anyone know how I can get a report to dynamically get year to day date only?
You can use Today function with This Year to get what you want. (My response is based on the limited information you provided in your question).
For example,
Select Id from Account
where CreatedDate = THIS_YEAR and CreatedDate <= TODAY
The result will be all account ids that are created till today (starting from 1st Jan). Hope this helps but if it does not, let me know and please provide more details about what you are trying to achieve.
Thanks!
All Answers
You can use Today function with This Year to get what you want. (My response is based on the limited information you provided in your question).
For example,
Select Id from Account
where CreatedDate = THIS_YEAR and CreatedDate <= TODAY
The result will be all account ids that are created till today (starting from 1st Jan). Hope this helps but if it does not, let me know and please provide more details about what you are trying to achieve.
Thanks!
Thank you for the support.