Forum Discussion
abanar2
Helper I
2 years agoNeed help with my measure
Hello Community, I’m currently working on a project where I need to calculate Key Performance Indicators (KPIs) using a DAX measure, but I’m having some difficulties and could use your help. I ...
abanar2
Helper I
2 years agoThis is the sample dataset.
| Year | Quarter | Site_ID | KPI_ID | KPI_Name | Is_Total_KPI | KPI_Group | KPI_Value | Dividend_ID | Divisor_ID |
| 2021 | 1 | Site1 | KPI1 | Training Planned | Yes | % Training Done during the Quarter | 79 | KPI2 | KPI1 |
| 2021 | 2 | Site1 | KPI1 | Training Planned | Yes | % Training Done during the Quarter | 75 | KPI2 | KPI1 |
| 2021 | 3 | Site1 | KPI1 | Training Planned | Yes | % Training Done during the Quarter | 67 | KPI2 | KPI1 |
| 2021 | 4 | Site1 | KPI1 | Training Planned | Yes | % Training Done during the Quarter | 77 | KPI2 | KPI1 |
| 2022 | 1 | Site1 | KPI1 | Training Planned | Yes | % Training Done during the Quarter | 33 | KPI2 | KPI1 |
| 2022 | 2 | Site1 | KPI1 | Training Planned | Yes | % Training Done during the Quarter | 71 | KPI2 | KPI1 |
| 2022 | 3 | Site1 | KPI1 | Training Planned | Yes | % Training Done during the Quarter | 11 | KPI2 | KPI1 |
| 2022 | 4 | Site1 | KPI1 | Training Planned | Yes | % Training Done during the Quarter | 49 | KPI2 | KPI1 |
| 2021 | 1 | Site2 | KPI1 | Training Planned | Yes | % Training Done during the Quarter | 34 | KPI2 | KPI1 |
| 2021 | 2 | Site2 | KPI1 | Training Planned | Yes | % Training Done during the Quarter | 25 | KPI2 | KPI1 |
| 2021 | 3 | Site2 | KPI1 | Training Planned | Yes | % Training Done during the Quarter | 73 | KPI2 | KPI1 |
| 2021 | 4 | Site2 | KPI1 | Training Planned | Yes | % Training Done during the Quarter | 10 | KPI2 | KPI1 |
| 2022 | 1 | Site2 | KPI1 | Training Planned | Yes | % Training Done during the Quarter | 67 | KPI2 | KPI1 |
| 2022 | 2 | Site2 | KPI1 | Training Planned | Yes | % Training Done during the Quarter | 96 | KPI2 | KPI1 |
| 2022 | 3 | Site2 | KPI1 | Training Planned | Yes | % Training Done during the Quarter | 29 | KPI2 | KPI1 |
| 2022 | 4 | Site2 | KPI1 | Training Planned | Yes | % Training Done during the Quarter | 83 | KPI2 | KPI1 |
| 2021 | 1 | Site1 | KPI2 | Training Done | No | % Training Done during the Quarter | 13 | KPI2 | KPI1 |
| 2021 | 2 | Site1 | KPI2 | Training Done | No | % Training Done during the Quarter | 16 | KPI2 | KPI1 |
| 2021 | 3 | Site1 | KPI2 | Training Done | No | % Training Done during the Quarter | 18 | KPI2 | KPI1 |
| 2021 | 4 | Site1 | KPI2 | Training Done | No | % Training Done during the Quarter | 28 | KPI2 | KPI1 |
| 2022 | 1 | Site1 | KPI2 | Training Done | No | % Training Done during the Quarter | 36 | KPI2 | KPI1 |
| 2022 | 2 | Site1 | KPI2 | Training Done | No | % Training Done during the Quarter | 88 | KPI2 | KPI1 |
| 2022 | 3 | Site1 | KPI2 | Training Done | No | % Training Done during the Quarter | 35 | KPI2 | KPI1 |
| 2022 | 4 | Site1 | KPI2 | Training Done | No | % Training Done during the Quarter | 88 | KPI2 | KPI1 |
| 2021 | 1 | Site2 | KPI2 | Training Done | No | % Training Done during the Quarter | 80 | KPI2 | KPI1 |
| 2021 | 2 | Site2 | KPI2 | Training Done | No | % Training Done during the Quarter | 34 | KPI2 | KPI1 |
| 2021 | 3 | Site2 | KPI2 | Training Done | No | % Training Done during the Quarter | 75 | KPI2 | KPI1 |
| 2021 | 4 | Site2 | KPI2 | Training Done | No | % Training Done during the Quarter | 18 | KPI2 | KPI1 |
| 2022 | 1 | Site2 | KPI2 | Training Done | No | % Training Done during the Quarter | 49 | KPI2 | KPI1 |
| 2022 | 2 | Site2 | KPI2 | Training Done | No | % Training Done during the Quarter | 33 | KPI2 | KPI1 |
| 2022 | 3 | Site2 | KPI2 | Training Done | No | % Training Done during the Quarter | 96 | KPI2 | KPI1 |
| 2022 | 4 | Site2 | KPI2 | Training Done | No | % Training Done during the Quarter | 27 | KPI2 | KPI1 |
| 2021 | 1 | Site1 | KPI3 | Number of Focus Rooms in the Office | Yes | Number of Focus Rooms in the Office | 100 | 0 | 0 |
| 2021 | 2 | Site1 | KPI3 | Number of Focus Rooms in the Office | Yes | Number of Focus Rooms in the Office | 100 | 0 | 0 |
| 2021 | 3 | Site1 | KPI3 | Number of Focus Rooms in the Office | Yes | Number of Focus Rooms in the Office | 100 | 0 | 0 |
| 2021 | 4 | Site1 | KPI3 | Number of Focus Rooms in the Office | Yes | Number of Focus Rooms in the Office | 100 | 0 | 0 |
| 2022 | 1 | Site1 | KPI3 | Number of Focus Rooms in the Office | Yes | Number of Focus Rooms in the Office | 90 | 0 | 0 |
| 2022 | 2 | Site1 | KPI3 | Number of Focus Rooms in the Office | Yes | Number of Focus Rooms in the Office | 90 | 0 | 0 |
| 2022 | 3 | Site1 | KPI3 | Number of Focus Rooms in the Office | Yes | Number of Focus Rooms in the Office | 90 | 0 | 0 |
| 2022 | 4 | Site1 | KPI3 | Number of Focus Rooms in the Office | Yes | Number of Focus Rooms in the Office | 110 | 0 | 0 |
| 2021 | 1 | Site2 | KPI3 | Number of Focus Rooms in the Office | Yes | Number of Focus Rooms in the Office | 70 | 0 | 0 |
| 2021 | 2 | Site2 | KPI3 | Number of Focus Rooms in the Office | Yes | Number of Focus Rooms in the Office | 70 | 0 | 0 |
| 2021 | 3 | Site2 | KPI3 | Number of Focus Rooms in the Office | Yes | Number of Focus Rooms in the Office | 70 | 0 | 0 |
| 2021 | 4 | Site2 | KPI3 | Number of Focus Rooms in the Office | Yes | Number of Focus Rooms in the Office | 70 | 0 | 0 |
| 2022 | 1 | Site2 | KPI3 | Number of Focus Rooms in the Office | Yes | Number of Focus Rooms in the Office | 70 | 0 | 0 |
| 2022 | 2 | Site2 | KPI3 | Number of Focus Rooms in the Office | Yes | Number of Focus Rooms in the Office | 70 | 0 | 0 |
| 2022 | 3 | Site2 | KPI3 | Number of Focus Rooms in the Office | Yes | Number of Focus Rooms in the Office | 70 | 0 | 0 |
| 2022 | 4 | Site2 | KPI3 | Number of Focus Rooms in the Office | Yes | Number of Focus Rooms in the Office | 72 | 0 | 0 |