Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
6 years ago

Set Maximum Quarter with Slicer (Include Latest Entry up to Selected Quarter)

I have the following dataset of employee testing submissions and a slicer to specify yearly quarters (e.g., 2018 Q1). Pic 1

Each employee has annual testing, and may need to submit remedial work based on test scores (i.e., 100 to 70 = pass; <70 = fail). Additionally, if the remedial work has a failing grade, an Improvement Plan must be submitted annually. Of course, not everyone submits the required documents (pic 2).

Pic 2

 

 

 

 

The current slicer will show results only for the selected quarter, however, I need to get results for the selected quarter AND the look back to the last submission to get a current status for each employee (pic 3).

Pic 3In this case, looking at 2019 Q1, AAAA will have a status of Fail (from looking back to the last submission made during 2018 Q3. BBBB and CCCC will have a status of Fail. DDDD will have a status of Pass.

For any given quarter, we should be able to get a total count individually of each type of status for that quarter to include the status of the last submission.

2019 Q1 = 3 Fail, 1 Pass, 1 Missing Documents

2019 Q3 = 2 Fail, 2 Pass, 2 Missing Documents

2020 Q1 = 1 Fail, 3 Pass, 2 Missing Documents

All entries have submission dates from which the quarter is derived as a calculated column. Likewise, the status column is also calculated. I'm not sure how to implement the ability to have the slicer set the last quarter to include in the count AND also look back to the last submission (if needed) to get an overall status for each employee. 

2 Replies

    • Anonymous's avatar
      Anonymous
      Not applicable
      EmployeeIDDocTypeDateSubmittedQuarterScoreResult
      AAAAAnnual Test1/1/20182018 Q150Quarterly Remedial Needed
      AAAARemedial4/1/20182018 Q245Annual Improvement Plan Needed
      AAAAAnnual Improvement Plan4/1/20182018 Q2100Completed
      AAAARemedial7/1/20182018 Q350Annual Improvement Plan Needed
      BBBBAnnual Test1/1/20192019 Q165Quarterly Remedial Needed
      BBBBRemedial10/1/20192019 Q475Continue Quarterly Remedial
      BBBBAnnual Test1/1/20202020 Q180Met Requirements
      CCCCAnnual Test1/1/20192019 Q165Quarterly Remedial Needed
      CCCCRemedial4/1/20192019 Q280Continue Quarterly Remedial
      CCCCRemedial7/1/20192019 Q380Continue Quarterly Remedial
      DDDDAnnual Test1/1/20192019 Q195Met Requirements
      DDDDAnnual Test1/1/20202020 Q185Met Requirements

      Per the recommendation, this is the input data.

       

      EmployeeID2018 Q12018 Q22018 Q32018 Q42019 Q12019 Q22019 Q32019 Q42020 Q1
      AAAAFailFailFailMissingMissingMissingMissingMissingMissing
      BBBBMissingMissingMissingMissingFailMissingMissingPassPass
      CCCCMissingMissingMissingMissingFailPassPassMissingMissing
      DDDDMissingMissingMissingMissingPassN/AN/AN/APass

      This shows the result for each employee for any given quarter, however, if anything is missing (not submitted) the returned status (Pass/Fail +/- Missing Documents) should include a "look-back" to include the last submission made. For example, if looking specifically at 2019 Q3...

      EmployeeID2018 Q12018 Q22018 Q32018 Q42019 Q12019 Q22019 Q32019 Q4STATUS
      AAAAFailFailFailMissingMissingMissingMissingMissingFail & Missing Documents
      BBBBMissingMissingMissingMissingFailMissingMissingPassFail & Missing Documents
      CCCCMissingMissingMissingMissingFailPassPassMissingPass
      DDDDMissingMissingMissingMissingPassN/AN/AN/APass

      ...employee AAAA would have a status of "Fail" (looking back to the last submission made in 2018 Q3) and "Missing Documents" because nothing was submitted for 2019 Q3.

      Employee BBBB would also have a status of "Fail" (looking back to the last submission made in 2019 Q1) and "Missing Documents" because nothing was submitted for 2019 Q3.

      Employee CCCC would have a status of "Pass."

      Employee DDDD would have a status of "Pass." Because the annual test was passed in 2019 Q1, they are not required to make any quarterly submissions. The status of "Pass" is from looking back to the last submission made in 2019 Q1.