Re: EOQ and Pansize
The exchange rate is fixed for the bid - when you say add it to the prices table do you mean by vlookup or "related" function or typed?
Best to add it in the source table if you can. So depending on your source, yes vlookup or typed. It is better not to do a calc column (generally) but it would be fine in this case. It actually doesn't matter that much on a small model - it just simplifies things some.
In the Bom Table I have TotCompBidQty1:=roundup(sumx(tblBTotCompBidQty1:=roundup(sumx(tblBom,[Qty per Bom]*[Tot Yield factor])*[BidQty1(multiplier)],0) which calculates the total of each component required- before any MOQ or pansize modifications. Should i move this to the Prices table? Would that make it more straightforward?
so by "move to the prices table" you mean replace TblBOM with TblPrices, right? It is not that it is more straightforward, it is because it is more efficient (you should check that it works correctly first). It is complex to explain in a few words, but in short you can either work through the prices table one row at a time and then do a calculation on each row, or you can work through the BOM table one row at a time and do the calcs. If you have 1,000 records in the products table and 1,000,000 in the BOM table, there will be 1000x more calcs. The prices table iteration will only work if applying a filter on the prices table correct filters the BOM table ready for e calculation. Sorry - that may be a bit hard to understand without more detail.
If if the results are fast, you can just ignore this and leave it as is.
So my measure TotCompBidQty1 (currently in the bom table) will say i need 2750 components and my MOQ in the components tbl may have a pansize of 3000 - How do i get the max of the two - guessing MAXX but can i use that with a measure as one of the arguments.
the max functions you refer to works on columns, not between columns or on individual values. There are a few ways. You could create a calculated column that stores the largest of the two. =if([column1]>=[column2],[column1],[column2]). Generally this is not best practice but on small data models it is fine.
i think this will work too
TotCompBidQty rounded up:=roundup(sumx(TblPrices[Qty per Bom]*[Tot Yield factor])*[BidQty1(multiplier)]*if([column1]>=[column2],[column1],[column2]),0)
just make sure you specify the correct table[column] for each of your MOQ and Pansize.
Just test eat it and see how it goes.