Forum Discussion

sraj's avatar
sraj
Responsive Resident
4 years ago

Selection measure

Hi,

 

Need to know where I am going wrong here.  This measure is supposed to find users who have passed both of these two trainings within 7 days of enrollment.  

 

Merged.2 = User Completion date

7th of Enrolled date = is the deadline date

Training Name = "2021 Training - Part 1" 
                            "2021 Training - Part 2 (Final Exam)"

 

Measure
Eligibility =
VAR _1 = 'User Performance'[Pass/fail] = "Passed"

VAR _2 = 'User Performance'[Merged.2] <= 'User Performance'[7th of Enrolled Date]

VAR _2B = 'User Performance'[Training Name] = "2021 Training - Part 1" &&
'User Performance'[Training Name] = "2021 Training - Part 2 (Final Exam)"

VAR _3 = IF ( (_1 && _2 && _2B) = TRUE() , TRUE() , FALSE() )

RETURN

_3
 
Currently with the measure that I have above this user is showing up on my ELIGIBLE list even if she was late with PART 2...to be specific the view is showing PART1 but she is not eligible as she mssed the deadline for part 2.  Basically they should show up on the view only if they passed both the exams with the given date range.  
Currently this is how it shows on the view
 
LastFirstTraining NameEnrollmentMerged7th of Enrolled Datepass/fail
       
AB2021 Security Training - Part 111/9/202111/9/202111/16/2021Passed

 

Can someone please advise?  Thank you!!

 

 

1 Reply