Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
hi i got requirement to find moving month average of most recent month.but it should be done from scripting side.
my requirement is like
90
expected data model output should be like this for sum
LOAD metrics,
mobnthyear,
counter
FROM
[..\dataload\table1.qvd]
(qvd);
NoConcatenate
temp1:
load
metrics,
sum(counter) as COUNT
resident TEM
group by metrics, mobnthyear;
//order by mobnthyear desc;
left join(temp1)
addmonths(mobnthyear,-1) as mobnthyear ,
sum(counter) as COUNT1
//where COUNT1 is notnull,
group by metrics, mobnthyear
;
// order by mobnthyear desc;
addmonths(mobnthyear,-2) as mobnthyear ,
sum(counter) as COUNT2
group by metrics,mobnthyear;
//
drop table TEM;
i wriiten code like this but i am not finding exam output plz help me to solve this
reggards ,
shruthi