MAX MIN based on Multiple dimension

Hi All,


i was trying to find out Max and Min Salaries based on Country, Legal entity and Department.

I tried using the Max function based on all three dimension but gave a output value as infinity.

Is there any way the output can be achieved?