This content has been marked as final. Show 8 replies
I have this warehouse database using MariaDB and want to show all stock for every item in every warehouse in Qliksense.
This is list_item_storage table to show relational from product to warehouse
And this is list_item_tx table to show all in and out transaction related to every product in all warehouse.
I want to make something like below. But I can't get the right value to show the stock value. According to DB Admin, the logic is to grab all of the storage_id for every product in list_item_storage table. And then grab the storage_id with the latest date (tx_date) then show the end_qty in list_item_tx.
My problem is I can't get the right value for the latest stock for every product in every warehouse.
I tried several expression such as:
and even using Aggregation functions such as ONLY or MaxStrings and none of them succeed. Most of it ended with the result of showing NULL or showing only the last row value of the table.
Please help. Thanks in advance