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
pjotaramos01
Regular Visitor

Conditional multiple values

I'm creating a dashboard to show the training conclusion percentage filtering by all company's areas, sub areas and levels.

We got a excel sheet, "Training DataBase", that shows all the employees that completed any training. This table contains only the employee ID, name, training name and the training ID.

In order to get all the others infos, I have 2 more excel sheets as databases:

HR Panel, that contains all personal unique info from employees such as the employee ID, name, area, sub area, level, etc.

Training Panel, that contains all training prerequisites infos (example: a X Training is only applied to Frontline Workers from Sales team). 

 

To get a visual look:

 

Training Database

Employee IDNameTraining NameTraining ID
0201JohnNegotiation TrainingTR001
0342MarieCommunicationTrainingTR032
5278LindsayHR TrainingTR239

 

HR Panel

Employee IDNameAreaSub AreaLevel
0201JohnSalesRegion 1FL
0342MarieOperationsPlant 02Level05
5278LindsayOperationsCorporateLevel09

 

Training Panel

Training IDNameLevelAreaSubarea
TR001Negotiation TrainingFLSalesRegion1
TR001Negotiation TrainingFLSalesRegion2
TR001Negotiation TrainingFLSalesRegion3
TR032CommunicationTrainingLevel01OperationsPlant1
TR032CommunicationTrainingLevel01OperationsPlant2
TR032CommunicationTrainingLevel01OperationsPlant3
TR032CommunicationTrainingLevel02OperationsPlant1
TR032CommunicationTrainingLevel02OperationsPlant2
TR032CommunicationTrainingLevel02OperationsPlant3

 

The idea is to have a dashboard with area, sub area and level filters to show the percentage of conclusion based on each selection. 

I created a table that cross HR Panel and Database Training, so I was already able to create measures that count the total of areas/subareas/levels employees ID distinct values from HR Panel and Database Training, in order to show a percentage of conclusion from all this filters.

 

Table showed (filtered by Operations)

Employee IDNameAreaTraining NameStatus
0342MarieOperationsCommunicationTrainingCompleted
5278LindsayOperationsHR TrainingNot completed

 

But doing this I'm not able to get the real percentage because not everybody from an area is eligible to every training. I need to add a condition of area, sub area and level to the "Count HR Panel Eligible Employee" measure (currently is only a DistinctCount values from the HR Panel table) based on which training.

 

I'm struggling with getting this solution because I have many rows for each training.

 

Can anybody help me with this? 

 

Thanks!!

 

 

 

 

 

1 ACCEPTED SOLUTION

Hi,

You may download my PBI file from here.

Hope this helps.

Untitled.png


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

View solution in original post

3 REPLIES 3
Ashish_Mathur
Super User
Super User

Hi,

Based on the 3 tables that you have shared, show the expected result.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

The idea is to get into something like this: 

 

AreaSub AreaTrainingEmployees EligibleEmployees Trained
SalesRegion1Negotiation Training400340
SalesRegion2Negotiation Training200190
SalesRegion3Negotiation Training520400
OperationsPlant1CommunicationTraining300200
OperationsPlant2CommunicationTraining600600
OperationsPlant3CommunicationTraining3022

 

Employees Eligible would be a measure in HR Panel filtered by the Training Eligibility (area, sub area and employee level) in Training Panel. But, for example, as I have a lot of Employee levels in many lines, I'm struggling creating a DAX that can do this.

 

And then, show a table that contains every employee that should have done a training (based on the eligibility fields) with a status collumn 

 

Employee IDNameAreaLevelTrainingStatus
0201JohnSalesFLNegotiationCompleted
0223JoshSalesFLNegotiationCompleted
4500MarieSalesFLNegotiation

Not completed

 

 

Hi,

You may download my PBI file from here.

Hope this helps.

Untitled.png


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

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.