Promo on This Sku contains an aggregate of promos applicable on the Skus and I was using this below code for calculated field to find Promo Net Sales wherever the my Promo ID (Sls Prmo ID) has been applied. But it says an error "can't mix aggregate and non-aggregate arguments with this function"
Example Promo on This Sku: p1,p2,p3 and I want p3 sales only so my Sls promo id would be p3 here
Code:
IF CONTAINS([Promos On This Sku],ATTR(STR([Sls Prmo Id]))) then STR(SUM([Promo Net Sls])) ELSE STR(0) END