Try
$ cat file
id,name,id_2, type,success/failure,number
44,RAJ, 33, a,SUCCESS,30
40,JEY, 44,a,FAILURE,30
44,RAJ, 33, a,FAILURE,30
40,JEY, 44,a,FAILURE,30
40,JEY, 44,a,FAILURE,30
44,RAJ, 33,a,FAILURE,30
$ awk -F, 'NR==1{print}
NR>1{gsub(" ","",$0);A[$1","$2","$3","$4]=$6; B[$5] ; C[$1","$2","$3","$4,$5]++}END{
for(i in A){p=i; for(j in B){k+=C[i,j];
T=T?T "/" j "=" C[i,j]+0:j "=" C[i,j]+0;};num_1=A;num_3=(k/num_1)*100
print p","T ",Total=" k,num_1,k,num_3;k=0;T=""}}' OFS="," file
id,name,id_2, type,success/failure,number
40,JEY,44,a,FAILURE=3/SUCCESS=0,Total=3,30,3,10
44,RAJ,33,a,FAILURE=2/SUCCESS=1,Total=3,30,3,10
And one important thing - don't expect script should run on any input.
As per your input we will create any script. If input changes there is no chance that script should run for other input also.
pamu