hi, my excel file is getting updated daily. I want to create a calculated field using the data from the last day of the previous quarter. So in this case, the data from 2022-06-30
this is what the data looks like
| date | total | QTD |
| 06/29/2022 | 785785 | 0.25% |
| 06/30/2022 | 756786 | 0.35% |
| ...................................... | ........................... | ................................ |
| 08/11/2022 | 25254 | 0.03% |
QTD formula = daily Total / (Total from last quarter -1) = 25254 / (756786 -1) = 0.03
after some digging around I found that I can use this formula to get the last day of the previous quarter. And I know i can use multi-row formula tool to do row based calculations. I just need help figuring out how to use the below formula to get the value for that date from QTD column, and implement it into the multi-row formula.
DateTimeAdd(
Left(DateTimeToday(),5)+
PadLeft(ToString(3*Floor((DateTimeMonth(DateTimeToday())-1)/3)+1,0),2,"0")+
"-01",-1,"days")
Unless I am completely wrong and if there is a better/easier way to do this, then please point me in the right direction.