Try with this:
Load the table that you have both dates:
take the min and max dates:
// Paso 1:
TablaMinMax:
LOAD
min(Fecha) as FechaMin,
max(Fecha) as FechaMax
Resident Payments;
//Paso 2:
LET vMin=num(Peek('FechaMin',0,'TablaMinMax'));
LET vMax=num(Peek('FechaMax',0,'TablaMinMax'));
// Paso 3:
CalendarioMaestro:
LOAD
Date(IterNo()+$(vMin)-1) as Fecha
AutoGenerate 1 While IterNo()+$(vMin)-1<=$(vMax);
// Paso 4:
DROP Table TablaMinMax;
Calendario:
LOAD
Date(Fecha) as Fecha,
Year(Fecha)&Num(Month(Fecha),'00') as Periodo,
Year(Fecha) as Año,
Year(Fecha)&'Q'&Ceil (month(Fecha)/3) as Cuatrimestre,
Month(Fecha) as Mes,
Num(Month(Fecha)) as MesNro,
Num(Month(Fecha)-1) as MesNroAnt,
Year(Fecha)*12+Num(Month(Fecha)) as MesAnt,
MonthName(Fecha) as MesAño,
Num(Month(Fecha),'00') as MesNumero,
'T-'&Ceil (month(Fecha)/4) as Trimestre,
Day(Fecha) as Dia,
Dual(Num(Day(Fecha),'00')& '-'&Month(Fecha),Fecha) as Dia_Mes,
WeekDay(Fecha) as DiaSemana;
LOAD Date(IterNo()+$(vMin)-1) as Fecha
AutoGenerate 1 While IterNo()+$(vMin)-1<=$(vMax);
DROP Table CalendarioMaestro;
Let me know if was usefull for you.