I have a DATA Table :
COLUMN: City Deposittype DepositAmount
ROWS : city1 new 100
city1 new 200
city2 old 200
city2 old 100
city2 new 200
city3 new 100
Want to Group by city, calc sum of depositamount for specified Deposittype.
Example, for condition depositType= new
i want a row like
city1 city2 city3
300 200 100
I want sum of DepositAmounts Grouped by City with specific Deposit type. i.e Result row should have city1 city2 city3 as column names, under which sum of 'Depositamounts' for a specified loan type say Deposittype = new.