Made number of Measures for charts dynamic