Hi,
Why are you creating hyperlink on Country column? Just apply hyperlink on Amt column.I mean apply hyperlink on measure object instead of dimension objects.
So for measure object you can apply aggregation in If condition like
if(Userresponse("Code")="abc";Sum(Amt);if(Userresponse("Code")="xyz";sum(AMt)) etc.
Thanks,
Swapnil