if you use a datetrunc('quarter',today()) -- function it will return the first day of the current quarter ( i.e. October 1, 2017)
you can then usi it in an if statement comparing the datetrunc('quarater'; [deposit date]) for teh current quarter and use a dateadd function to increment the current quarter date backwards bu any number of quarters you would chose
If this posts assists in resolving the question, please mark it helpful or as the 'correct answer' if it resolves the question. This will help other users find the same answer/resolution. Thank you.
also we like to see a workbook see to give a more complete answer Why we ask for a workbook, and WHY I ASK FOR YOUR TABLEAU VERSION!!