Hi @Pavi.98 and welcome to the Quick Community!
It can always get tricky when dealing with nesting LAC-A functions in QS!
You may need to separate the denominator into two separate calc. fields to easier handle; what if you tried something like the following:
Max Calc.
maxOver({iol_consignment}, [Account, {Product Type}], PRE_FILTER)
Then incorporate that into your denominator:
sumOver({Max Calc.}, [CDM, {Product Type}, {Time Period Filter}], PRE_FILTER)
Let me know if this works for your scenario, if not accurate, maybe you could create an anonymized version of your analysis and upload to the Arena so that we can assist easier by testing out various functions