Allocation Code BAQ

Hello,

I am working on creating an advanced allocation for our cash discounts/early pay discount GL account. The way that it is currently set up is to go to a “corp” department account instead of splitting based on the location/department that generated the original invoice (sales do go to the site/dept). I am able to get a BAQ with parameters to feed in the date range, site, and department to work correctly, but when I bring that in as a formula parameter and choose these (image) values it errors out and says that the allocation ratio is zero. I have verified that those values to have a value in the BAQ.

image