Forum Discussion
LeahGJ
4 years agoFrequent Visitor
Filter with multiple conditions
Hi, I have a listing of employees salary payments for 2022. I only want to filter employees who have been paid contract gratuity in the corresponing period, including all other allowance fields. An ...
lbendlin
4 years agoSuper User
You need to do this via a measure* as it is a "filtering up" pattern.
First find the employees that have contract gratuity. Then find all the payment data for these employees.
* technically a calculated column would also work since these facts are immutable.
- LeahGJ4 years agoFrequent Visitor
Thanks Ibendlin. can you share a meaure for this calculated column please.
- lbendlin4 years agoSuper User
please indicate the expected outcome based on the sample data you provided.
- LeahGJ4 years agoFrequent Visitor
this is my expected outcome:
EMPLOYEE_NUMBER PAYROLL_CLASS PAY_YEAR CYCLE_NO. CLASSIFICATION_NAME ELEMENT_NAME PAY_VALUE 109500 Calendar Month 2022 1 Earnings Basic Salary Monthly 22848 109500 Calendar Month 2022 1 Earnings CONTRACT GRATUITY 066 82252.8