Looking for some text mode magic
I have this text mode column in a report to give me an allocated cost
displayname=Allocated Cost
textmode=true
valueexpression=IF({project}.{DE:GL Code}="Strategic Marketing - 400.5304.8510.83326",{actualCost},IF(CONTAINS("50% 400.5304.8510.83326",{project}.{DE:GL Code}),({actualCost}*.5),IF(CONTAINS("52% 400.5304.8510.83326",{project}.{DE:GL Code}),({actualCost}*.52),IF(CONTAINS("34% 400.5304.8510.83326",{project}.{DE:GL Code}),({actualCost}*.34),IF(CONTAINS("54% 400.5304.8510.83326",{project}.{DE:GL Code}),({actualCost}*.54),IF(CONTAINS("50% Strategic Marketing - 400.5304.8510.83326",{project}.{DE:GL Code}),({actualCost}*.5)))))))
valueformat=currencyStringCurrency
yeah, that's a lot of IFs, but it works.
Is there any text mode magic I can do to aggregate this column with a SUM?
I have an Actual Cost column with a SUM and when I look at the text mode for that, there's a row:
aggregator.valuefield=actualCost
I feel like I should be able to replace that with:
aggregator.valueexpression=my big long IF statement
But I tried that awhile ago and it didn't work. Any thoughts on if this is even possible?

