Subtract is not an aggregation function. So it's not an option that can be used for the Total Mode. You'll have to find some other way to calculate what you want. Perhaps you can add a factor field ( with 1 and -1 values) to your fact table in the script. That way you can multiply the value with the factor and then sum the results.