Quantcast
Viewing latest article 13
Browse Latest Browse All 143529

AX 2012 how to make the monthly summary use AOT Query and Form

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...


Viewing latest article 13
Browse Latest Browse All 143529

Trending Articles