Dear Friends,
I have data like below in my Infocube for different years. its flat file loading DS->DSO->Infocube.
EmpId | Dept | section | Year | Smoking |
101 | HR | A | Jan-10 | No |
102 | HR | A | Jan-10 | Yes |
103 | HR | B | Jan-10 | Yes |
104 | FI | A | Jan-10 | No |
105 | FI | B | Jan-10 | No |
102 | HR | A | Aug-10 | No |
My requirement is like below to find out total number of employees who are Smokers and non smokers.
Dept | Year | Tot no of Emp | Tot Emp Smoking | Tot Emp non-smoking |
HR | 2010 | 3 | 2 | 1 |
FI | 2010 | 2 | 0 | 2 |
Result | 5 | 2 | 3 |
Please give me your valuable input
Thanks
Vijay