When using aggr you need to take care about the involved dimensions in your chart.
In the case of your example for the second chart you're creating a chart with SLS_MTRC_ID as dimension. then your formula should be something like this (it's what I can figure out just by seeing the screenshots):
Also, as tip try not to use key fields directly in expressions. It is recommended to create a duplicate of these fields if you want to include fields that are link between different tables in charts,