Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
shantupm5
Helper III
Helper III

Joblevel wise Training Module wise Training completion Rate

Hello Everyone, 

 

I have a complex requirment which i am unable to resolve. Basicall i have 3 data set which is from 3 different source (Tables)

Source 1) Employee Id along with their Job Level

Source 2) Mandatory Training Module for each Job Level

Source 3) List of Employee Id's along with the Job Level who have completed 1 or more training from the Mandatory training Module list. 

 

Date set is attached below.

 

Requirement is, we are looking for Job Level wise, Mandatory training module wise completion rate. Please can you resolve and share this in PBIX format which will be of more help.

 

Data set: 

Source 1) Employee Id along with their Job Level

 

Emp IdJob Level
1002
2003
3002
4002
5003
6004
7003
8003
9004
10003
11003
12003
13003
14003
15004

 

Source 2) Mandatory Training Module for each Job Level

JLMandatory Training Module
2Foundation - 2
2Intermediate - 2
2Pro - 2
3Foundation - 3
3Intermediate - 3
3Pro - 3
4Foundation - 4
4Intermediate - 4
4Pro - 4

 

Source 3) List of Employee Id's along with the Job Level who have completed 1 or more training from the Mandatory training Module list. 

 

Emp IdJLTraining Module Completed
1002Foundation - 2
1002Intermediate - 2
1002Pro - 2
2003Foundation - 3
2003Intermediate - 3
3002Foundation - 2
4002Foundation - 2
4002Intermediate - 2
5003Foundation - 3
5003Intermediate - 3
6004Foundation - 4
7003Foundation - 3
8003Foundation - 3
8003Intermediate - 3
8003Pro - 3
9004Foundation - 4
9004Intermediate - 4
10003Foundation - 3
10003Intermediate - 3
10003Pro - 3
11003 
12003 
13003 
14003 
15004 

 

Thanks in advance

 

2 ACCEPTED SOLUTIONS
v-yaningy-msft
Community Support
Community Support

Hi, shantupm5

 

 

May I ask if this is the expected output you are looking for? Based on your description, I have created many measures to achieve the effect you are looking for. Following picture shows the effect of the display.

vyaningymsft_0-1703669161110.png

 

Measures:

CompletedRate =

VAR _dist =

    DISTINCTCOUNT ( 'Source 2'[Mandatory Training Module] )

VAR _empNumbers =

    CALCULATE (

        DISTINCTCOUNT ( 'Source 3'[Emp Id] ),

        'Source 3'[JL] IN ALLSELECTED ( JL[JL] )

    )

VAR _allCounts =

    CALCULATE (

        COUNTROWS ( 'Source 3' ) / _dist,

        FILTER ( 'Source 3', [Counts] = _dist )

    )

VAR _completedRate =

    DIVIDE ( _allCounts, _empNumbers )

RETURN

    _completedRate



Counts =

VAR _Counts =

    COUNTAX (

        FILTER (

            ALL ( 'Source 3' ),

            'Source 3'[Emp Id] = SELECTEDVALUE ( 'Source 3'[Emp Id] )

        ),

        'Source 3'[Emp Id]

    )

RETURN

    _Counts

If this does not work, could you please share some sample data without sensitive information and expected output.
How to provide sample data in the Power BI Forum - Microsoft Fabric Community

Best Regards,
Yang
Community Support Team

 

If there is any post helps, then please consider Accept it as the solution  to help the other members find it more quickly.
If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!

How to get your questions answered quickly --  How to provide sample data in the Power BI Forum

View solution in original post

Fowmy
Super User
Super User

@shantupm5 

I have already answered your question in another thread: Solution Requested - Microsoft Fabric Community
Pease accept it if it works for you, 

Did I answer your question? Mark my post as a solution! and hit thumbs up


Subscribe and learn Power BI from these videos

Website LinkedIn PBI User Group

View solution in original post

2 REPLIES 2
Fowmy
Super User
Super User

@shantupm5 

I have already answered your question in another thread: Solution Requested - Microsoft Fabric Community
Pease accept it if it works for you, 

Did I answer your question? Mark my post as a solution! and hit thumbs up


Subscribe and learn Power BI from these videos

Website LinkedIn PBI User Group

v-yaningy-msft
Community Support
Community Support

Hi, shantupm5

 

 

May I ask if this is the expected output you are looking for? Based on your description, I have created many measures to achieve the effect you are looking for. Following picture shows the effect of the display.

vyaningymsft_0-1703669161110.png

 

Measures:

CompletedRate =

VAR _dist =

    DISTINCTCOUNT ( 'Source 2'[Mandatory Training Module] )

VAR _empNumbers =

    CALCULATE (

        DISTINCTCOUNT ( 'Source 3'[Emp Id] ),

        'Source 3'[JL] IN ALLSELECTED ( JL[JL] )

    )

VAR _allCounts =

    CALCULATE (

        COUNTROWS ( 'Source 3' ) / _dist,

        FILTER ( 'Source 3', [Counts] = _dist )

    )

VAR _completedRate =

    DIVIDE ( _allCounts, _empNumbers )

RETURN

    _completedRate



Counts =

VAR _Counts =

    COUNTAX (

        FILTER (

            ALL ( 'Source 3' ),

            'Source 3'[Emp Id] = SELECTEDVALUE ( 'Source 3'[Emp Id] )

        ),

        'Source 3'[Emp Id]

    )

RETURN

    _Counts

If this does not work, could you please share some sample data without sensitive information and expected output.
How to provide sample data in the Power BI Forum - Microsoft Fabric Community

Best Regards,
Yang
Community Support Team

 

If there is any post helps, then please consider Accept it as the solution  to help the other members find it more quickly.
If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!

How to get your questions answered quickly --  How to provide sample data in the Power BI Forum

Helpful resources

Announcements
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.