SToCK in a specified date

SOLVED

Hello i working on SCRIPT of Stock in a BI TOOL i want to have initial stock,amount of incoming quanity what ever transaction ID . and outcome is there a way to have the stock in a speciefied date a table which give this information 

because STOJOU inclide just all mouvements.

Parents Reply
  • 0 in reply to Rachid MAZOUZI
    verified answer

    Technically if you have no need for site , you can use this SQL logic

    SELECT ITMREF_0,SUM(QTYSTU_0) FROM PROD.STOJOU
    WHERE ITMREF_0 = '30687073082808' AND CREDAT_0 <= '01/01/22'
    GROUP BY ITMREF_0

    CREDAT can be converted to parameter 

    for SEI , I just repurpose the cube for STOJOU (can be used the ERP tables with any other SEI package) , I've converted date to MM-YY in calculated column 

    and then used the built in windows function

Children