I have MyVar as string.
Assuming MyVar="1 QUAD 2016"
In this case LastDay=30/04/2016
Assuming MyVar="1 TRIM 2016"
In this case LastDay=31/03/2016
Assuming MyVar="OTT 2016"
In this case LastDay=31/10/2016
Ecc...
How to return the LastDAy (as date dimensioned) with a function or other code?
Note:
the Year is dinamic the name of period are stable
list of possible value can have MyVar
1 QUAD 2016
1 SEM 2016
1 TRIM 2016
2 QUAD 2016
2 SEM 2016
2 TRIM 2016
3 QUAD 2016
3 TRIM 2016
4 TRIM 2016
AGO 2016
ANNO 2016
APR 2016
DIC 2016
FEB 2016
GEN 2016
GIU 2016
LUG 2016
MAG 2016
MAR 2016
NOV 2016
OTT 2016
SET 2016
Assuming MyVar="1 QUAD 2016"
In this case LastDay=30/04/2016
Assuming MyVar="1 TRIM 2016"
In this case LastDay=31/03/2016
Assuming MyVar="OTT 2016"
In this case LastDay=31/10/2016
Ecc...
How to return the LastDAy (as date dimensioned) with a function or other code?
Note:
the Year is dinamic the name of period are stable
list of possible value can have MyVar
1 QUAD 2016
1 SEM 2016
1 TRIM 2016
2 QUAD 2016
2 SEM 2016
2 TRIM 2016
3 QUAD 2016
3 TRIM 2016
4 TRIM 2016
AGO 2016
ANNO 2016
APR 2016
DIC 2016
FEB 2016
GEN 2016
GIU 2016
LUG 2016
MAG 2016
MAR 2016
NOV 2016
OTT 2016
SET 2016