How to use drop down field in matrix calculation