Before you go through more work on making it work, have you tried getting this data in BAQ? Most of the time that helps you determine how to structure your links and any calculated data. You don’t have to re-create the whole report, but just the last branch, like PartMtl to PartCost link.
If that all works, then I would try to make it work in the report. Btw… in this case I always use Left Outer Join, as last cost does not always exist.
I am told I need the total cost for the parent part and the individual costs for each child part listed.
I created a SQL Query to pull the example info and it worked fine.
I would sum it up on the report itself.
SELECT T1.MtlPartNum, T2.StdBurdenCost, T2.StdLaborCost, T2.StdMaterialCost, T2.StdMtlBurCost, T2.StdSubContCost
FROM Erp.PartMtl T1
LEFT JOIN Erp.PartCost T2 ON T1.Company = T2.Company AND T1.MtlPartNum = T2.PartNum
WHERE T1.Company = 'CMI' AND T1.PartNum = '000500KB'
One thing to consider, is that the BOM report is iterative/recursive. If the BOM is multi-level, then some iterations will see a component part as the parent part for its sub-components.
No idea if that is affecting you. Just thought I’d throw it out there.
With your new RDD and report RDL, you can add the Std_xxx_Cost fields to the report, but they always display zero?
Don’t forget that RDD’s aren’t just BAQ’s that you can’t see inside. They often do “tricks” in their processing. So the PartMtl table might not even be the actual PartMtl table.
OK, I finally kicked my brain after rereading everything and got each individual part to show their costs.
Now I am trying to make sure their sum equals what Epicor says.
My problem was that I was only changing the report dataset join and forgot about the RDD.
Repeatedly talking about the RDD finally triggered the thought to check if I changed it, lol.
All I can say is I am still out of it from being sick yesterday.
Thanks to everyone for your help.
If I have any other issues with totaling it, I will create a new thread.