Issue#401

Fix for Issue#401. Also added test cases for Percent aggregations when aggregate on PK desc columns