cancel
Showing results for 
Search instead for 
Did you mean: 

Bex Query to find total number

Former Member
0 Kudos

Dear Friends,

I have data like below in my Infocube for different years. its flat file loading  DS->DSO->Infocube.

EmpIdDeptsectionYearSmoking
101HRAJan-10No
102HRAJan-10Yes
103HRBJan-10Yes
104FIAJan-10No
105FIBJan-10No
102HRAAug-10

No

My requirement is like below to find out total number of employees who are Smokers and non smokers.

DeptYearTot no of EmpTot Emp SmokingTot Emp non-smoking
HR2010321
FI2010202
Result52                                    3

Please give me your valuable input

Thanks

Vijay

Accepted Solutions (1)

Accepted Solutions (1)

anshu_lilhori
Active Contributor
0 Kudos

This should be easy

  1. Make one CKF and put 1 inside it.
  2. Drag this CKF in columns panel--Right click on it--drag smoking char in it and restrict it with value = Yes.
  3. Repeat the same step for finding non smoking and total employee.

Regards,

AL

Answers (1)

Answers (1)

former_member194898
Active Contributor
0 Kudos

Hi,

Do like Anshu said.

Remember to set "Calculate result as" "summation"

otherwise you don't get proper values in result rows.

Regards, Leszek