Hello All,
I need make the monthly summary in AX.
SQL is :
select Year(IQ.QUARANTINEDATE) as 'Year',MONTH(IQ.QUARANTINEDATE) as 'Month',SUM(QTY) as 'SUM QTY'
from INVENTQUARANTINEORDER as IQ
where Year(IQ.QUARANTINEDATE) = Year(GETDATE())
group by Year(IQ.QUARANTINEDATE) ,MONTH(IQ.QUARANTINEDATE)
order by Year(IQ.QUARANTINEDATE) ,MONTH(IQ.QUARANTINEDATE)
I had no idea how to do.
Please help and thank you.
Below is I think:
in AOT Query create 2 custom field: Year(date) and Month(date)
and sum(qty)
Group by and order by Year(date),Month(day)
but.....I can't find way to do this...
*This post is locked for comments