Don't miss your chance to take the Fabric Data Engineer (DP-600) exam for FREE! Find out how by attending the DP-600 session on April 23rd (pacific time), live or on-demand.
Learn moreNext up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. Register now
We have a set of certification information along with the user details as mentioned in Table 1. Based on certain certification rules (mentioned in the Certification Rule Section), we need to report the certification status of all the users with respect to year as shown in Table 3.
Can someone please help me out with the DAX formulation for this? Thank you in advance
Table 1
User Email | User Role | Joining Date | Date of leaving | Certification Name | Certification Attempt Date | Results | User Status |
Role 1 | 20-Dec-20 |
| Quiz1 | 13-Feb-21 | Pass | Active | |
Role 1 | 20-Dec-20 |
| Quiz2 | 04-Mar-21 | Pass | Active | |
Role 1 | 20-Dec-20 |
| Quiz2 | 05-Mar-21 | Fail | Active | |
Role 1 | 20-Dec-20 |
| Quiz3 | 03-Feb-21 | Pass | Active | |
Role 1 | 20-Dec-20 |
| Quiz4 | 03-Feb-21 | Pass | Active | |
Role 1 | 20-Dec-20 |
| Quiz4 | 19-Apr-22 | Pass | Active | |
Role 1 | 20-Dec-20 |
| Quiz3 | 02-May-22 | Pass | Active | |
Role 1 | 20-Dec-20 |
| Quiz3 | 21-Feb-23 | Fail | Active | |
Role 1 | 20-Dec-20 |
| Quiz4 | 03-Feb-23 | Pass | Active | |
Role 2 | 10-Oct-21 |
| Quiz5 | 02-Jan-22 | Pass | Active | |
Role 1 | 11-Jan-15 | 03-Jul-21 | Quiz2 | 03-Mar-21 | Pass | Inactive | |
Role 2 | 20-Mar-20 | 07-Oct-21 | Quiz6 | 25-Jan-21 | Pass | Inactive | |
Role 1 | 10-Feb-22 |
| Quiz2 | 04-Oct-22 | Pass | Active |
Input Description:
Certification Rule:
Eg: Lets say 1 employee (email id john@test.com) with Role 1, joined on 20-Dec-2020, completed Quiz 1, Quiz 2, Quiz 3 on 20 Feb 2021, and Quiz 4 on Q4 2021. After that he completes Quiz 1 & Quiz 2 in Q2 2022, and no quiz completed after that. And he is still an active employee. So the output should be as follows:
Table 2
User Email | Year | Certification Status Q1 | Certification Status Q2 | Certification Status Q3 | Certification Status Q4 |
john@test.com | 2020 | Not applicable | Not applicable | Not applicable | Not started |
User email | Year | Certification Status Q1 | Certification Status Q2 | Certification Status Q3 | Certification Status Q4 |
john@test.com | 2021 | Incomplete | Incomplete | Incomplete | Completed |
john@test.com | 2022 | Incomplete | Incomplete | Incomplete | Incomplete |
john@test.com | 2023 | Not started | Not started | Not started | Not started |
Therefore, the output should have the following matrix in the power query.
Table 3
User Email | Year | Certification Status Q1 | Certification Status Q2 | Certification Status Q3 | Certification Status Q4 |
2020 | Not applicable | Not applicable | Not applicable | Not started | |
2021 | Completed | Completed | Completed | Completed | |
2022 | Not started | Incomplete | Incomplete | Incomplete | |
2023 | Incomplete | Incomplete | Incomplete | Incomplete | |
2020 | Not applicable | Not applicable | Not applicable | Not applicable | |
2021 | Not applicable | Not applicable | Not applicable | Not started | |
2022 | Completed | Completed | Completed | Completed | |
2023 | Not started | Not started | Not started | Not started | |
2020 | Not started | Not started | Not started | Not started | |
2021 | Incomplete | Incomplete | Not applicable | Not applicable | |
2020 | Not started | Not started | Not started | Not started | |
2021 | Completed | Completed | Completed | Not applicable | |
2022 | Not started | Not started | Not started | Incomplete | |
2023 | Not started | Not started | Not started | Not started |
Your rules seem to apply to years. Your expected outcome shows quarters. Please explain how this is derived.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
| User | Count |
|---|---|
| 48 | |
| 45 | |
| 41 | |
| 20 | |
| 17 |
| User | Count |
|---|---|
| 69 | |
| 63 | |
| 32 | |
| 31 | |
| 25 |