Forum Discussion
GuillaumeB
Helper I
6 years agoCustom QTD Calculations
I'm having difficulties with calculating Quarter to date measures due to the fact that the quarters are designated by very specific dates, therefore I can't just offshift by months or weeks to accomo...
amitchandak
Super User
6 years agoGuillaumeB , it can dynamic, if the start of the year is the same date every year like 12/30. If not we need to build qtr start logic
GuillaumeB
Helper I
6 years agoI'm not sure what I SHOULD be getting as a result but this isn't right. Here is a sample from Q1 to show you
| Date | WeekEnding | Quarter | Start of Year | Strat of Qtr | Add Qtr | Qtr Rank |
| 2/24/2020 | 2/28/2020 | Q1 | 12/29/2019 0:00 | 12/1/2019 0:00 | 0 | 21 |
| 2/25/2020 | 2/28/2020 | Q1 | 12/29/2019 0:00 | 12/1/2019 0:00 | 0 | 21 |
| 2/26/2020 | 2/28/2020 | Q1 | 12/29/2019 0:00 | 12/1/2019 0:00 | 0 | 21 |
| 2/27/2020 | 2/28/2020 | Q1 | 12/29/2019 0:00 | 12/1/2019 0:00 | 0 | 21 |
| 2/28/2020 | 2/28/2020 | Q1 | 12/29/2019 0:00 | 12/1/2019 0:00 | 0 | 21 |
| 2/29/2020 | 2/28/2020 | Q1 | 12/29/2019 0:00 | 12/1/2019 0:00 | 0 | 21 |
| 3/1/2020 | 3/6/2020 | Q1 | 12/29/2019 0:00 | 3/1/2020 0:00 | 3 | 21 |
| 3/2/2020 | 3/6/2020 | Q1 | 12/29/2019 0:00 | 3/1/2020 0:00 | 3 | 21 |
| 3/3/2020 | 3/6/2020 | Q1 | 12/29/2019 0:00 | 3/1/2020 0:00 | 3 | 21 |
Here is what I'm getting. The Quarter column is what I SHOULD be using as a quarter indicator but instead the Add Qtr is 0 until Feb 29th and then starts at 3 but our Q2 doesn't start until Apr-24th. Again, this isn't normal, all equal quarters, hence why I need to use a set of custom dates.