Hi,
I have a two data set named dataset1 and dataset2 and want to create output like the one in attached excel workbook Test sheet name output
Both the dataset are in same format as in excel sheet attached.
Could anyone help me with SAS code or macro to create dataset as the one in output sheet
All the variable except central are created using dataset1 and counting region for example
proc sql;
create table NEW AS
SELECT region,COUNT(region)AS _61OMP from perf.input
WHERE region="Kundelinjen (Ledelse & stab)"
and fejltype="3829 RD BACO" and fejltekst="Sag sendt for sent ind"
GROUP BY REGION, fejltype,fejltekst ;
QUit;
output files has all the conditions in form of excel formula.
and Central variable is created using sum function and dataset2
regards.