Hi,
I hope someone can help me in getting the values of the following by using a date formula:
- Current YTD (Jan 2022 - Oct 2022)
- Previous YTD (Jan 2021 - Oct 2021)
- Current Quarter ( Oct 2022 - Dec 2022)
- Previous Quarter (Jul 2022 - Sep 2022)
- Previous Year Quarter (Oct 2021 - Dec 2021)
Attached is my sample data excel file. Please let me know if you have any clarifications on my inquiries, Thank you.
Best regards,
Mike
3 answers
add a parameter to select the end date - from the blog
"The LOD approach is the one I recommend most often – the LODs for the Current and Prior YTD are portable from sheet to sheet and can be used in any other calculation. They are also easily converted to use with a parameter for the end date or the max date in the data set by substituting [Parameter Date] or {Max(date)} for Today() in the formulas.
Thanks
Jim - Tableau Visionary