Forum Discussion
How to count balance for replenish ?
- Anonymous3 years ago
Hi fyong
You can refer to the following measure
Balance_ = [PO QTY] - SUMX ( FILTER ( ALLSELECTED ( 'Demand Table' ), [Item ] IN VALUES ( 'Demand Table'[Item ] ) && [Ordered_Date] <= SELECTEDVALUE ( 'Demand Table'[Ordered_Date] ) ), [Demand QTY] )Best Regards!
Yolo Zhu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi Tom ,
Actually i want to know what is the shortfall quantity day to day comparing to customer demand and On hand stock ( Open PO &Inventory).
The similarity is the item number .
Hi fyong
You can refer to the following measure
Balance_ =
[PO QTY]
- SUMX (
FILTER (
ALLSELECTED ( 'Demand Table' ),
[Item ]
IN VALUES ( 'Demand Table'[Item ] )
&& [Ordered_Date] <= SELECTEDVALUE ( 'Demand Table'[Ordered_Date] )
),
[Demand QTY]
)
Best Regards!
Yolo Zhu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
- fyong3 years agoFrequent Visitor
Hi Yolo Zhu,
Thanks for the solution . I really appreciate it .
- fyong3 years agoFrequent Visitor
Hi Yolo Zhu ,
My balance is incorrect if i have mutliple orders within the same day. DO you have any idea to solve this ? I have attached link for your reference
https://drive.google.com/file/d/1DoUxzzaPoWpg3NveGspznJokypGygsHU/view?usp=drive_link