Forum Discussion
Employee Training Status
- 2 years ago
Hey PRock ,
I created a little pbix file that you can find here:
I followed the principles of dimensional modeling and created a star schema: Simple Model - Training.pbix
I recommend reading this article about dimensional modeling and the importance of start schemas for Power BI: https://learn.microsoft.com/en-us/power-bi/guidance/star-schema?WT.mc_id=DP-MVP-5003068
I created two measures "" and "".
The first one is counting how many trainings an Emp ID has completed:
completed Trainings = COUNTROWS( 'Completed Trainings' )and the second measure counts the number of trainings an Emp ID has still to complete based on the number of rows in the table "Required Trainings":
open Trainings = var currentEmp = SELECTEDVALUE( 'Employees'[Emp ID] ) var completedTrainings = CALCULATE( [completed Trainings] , 'Completed Trainings'[Emp ID] = currentEmp ) return COUNTROWS( 'Required Trainings' ) - completedTrainingsThe model and the measures allow to create a simple visual like the one below:
Hopefully, this helps to tackle your challenge.Regards,
Tom
One way to streamline the process is by automating the comparison of completed vs. required courses using calculated columns or measures. This would let you mark each training as "Complete" or "Incomplete" based on course completion.