This is the short dax filter for using the north American sales territories
=IF(ISBLANK([Territory AD]),if(ISBLANK([Territory ASTS]),[Territory SP],[Territory ASTS]),[Territory AD])