Hi,
I need to write a function, which find value from month from previous year:
Below is example of my data (I have year starting from 1992 - but it should not have meaning)
<tbody>
</tbody>
Thank you in advance.
I need to write a function, which find value from month from previous year:
Below is example of my data (I have year starting from 1992 - but it should not have meaning)
Year | Month | Quater | RepQua | ID | Value | PrevValue |
2015 | Jan | Q1 | FY15Q1 | A1B | 10 | - |
2015 | Apr | Q2 | FY15Q2 | B2C | 20% | - |
2015 | Apr | Q2 | FY15Q2 | C11A | 3% | - |
2015 | May | Q3 | FY15Q3 | H76 | 4 | - |
2015 | June | Q3 | FY15Q3 | J87Q | 62 | - |
2016 | Jan | Q1 | FY16Q1 | A1B | 20 | should be 10 |
2016 | Apr | Q2 | FY15Q2 | B2C | 5% | should be 20% |
2016 | Apr | Q2 | FY15Q2 | C11A | 7 | should be 3% |
2016 | May | Q3 | FY15Q3 | H76 | 54 | should be 4 |
2016 | June | Q3 | FY15Q3 | J87Q | 70 | should be 62 |
<tbody>
</tbody>
Thank you in advance.