Forum Discussion

SebSchoon1's avatar
SebSchoon1
Icon for Post Patron rankPost Patron
3 years ago

Wrong Measure Result

Hello everybody,

 

I'm struggling with some measures.

 

My model is ambigous however i can get everything i need for now.

 

here is my model with black arrows to show were are the bidirectionnal links.

 

 

My measures are working very well, but i have sometimes a wrong calculation result on a measure.

 

The goal to achieve Is to transfer items from one warehouse to another where the items are authorized to Go (represented by The RANK of "TABLEAU DISPATCH" Table) Where a number says OK and priority goes from 1 (most important) to x (number of warehouses authorized)

 

 

Heres the result with one correct Item  and one incorrect item (in the same table.

 

 

 

CODE ARTICLELIBELLE ARTICLERank for dispatchQuantity by Size(1) Final SplitQuantity movementWarehouse codeItems in stock by size (not used)(1)Residual quantities (1) Attribution of residuals
From Base Article tableFrom Base article tableFrom Tableau dispatch tableFrom Stock dispo full tableMeasuremeasureFrom dépots et établissements tablenot used (Sum of Stock dispofull[Quantites physiques]Measure (Take numbers after Decimals when division on Quantities / Total number of Warehouses) Take decimals multiplied by Number of warehousesMeasure : If (1) Residual quantities are greater or Equal to Rank Then 1
 AAAA2121010/0 
 AAAA152-3015/0 
 AAAA3 22040/0 
 BBBB222 (error) => 3 (ok)0010/2Should have 1 here
 BBBB163-3015/21
 BBBB3 22040/2 

 

For Item AAAA It works Great

 

However For Item BBBB 

 

The Items in Quantity by size Show 8 in total (2+6) And column total is OK (8)

 

Then for (1) Répartition Finale It shows only 4 in Column Total and one quantity is not added from last column (1)Attribution des reliquats

 

Anybody can help me on this?

 

🙂 

4 Replies