how to generate an attribute with abs(col1 - col2)

User: "blatoo"
New Altair Community Member
Updated by Jocelyn
Hello,

how can I generate an new attribute, which function expression is: |attr1 - attr2| ?

At moment, i just find the way with if( attr1 - attr2 > 0, attr1 - attr2, attr2-attr1)

Thanks very much for the attention!

Find more posts tagged with