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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

Reply
pjotaramos01
Regular Visitor

Create a new table based on many conditions

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

In order to get all the info, I have to check all trainings an employee is eligible. For this I get three 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). 

 

Completed Training Database, that contains all the employees that completed an specific training.

 

To get a visual look:

 

HR Panel

Employee IDNameAreaSub AreaLevel
0201JohnSalesRegion1FL
0342MarieOperationsPlant02Level02

5278

LindsayOperationsPlant02Level01

8742

RubySalesRegion2FL

6453

MatthewSalesRegion1Level05

 

And it goes on with all company's employees.

 

Training Panel

Training IDNameLevelAreaSubarea
TR001Negotiation TrainingFLSalesRegion1
TR001Negotiation TrainingFLSalesRegion2
TR032CommunicationTrainingLevel01OperationsPlant1
TR032CommunicationTrainingLevel01OperationsPlant2
TR032CommunicationTrainingLevel01OperationsPlant3
TR032CommunicationTrainingLevel02OperationsPlant1
TR032CommunicationTrainingLevel02OperationsPlant2
TR032CommunicationTrainingLevel05SalesRegion1
TR059Security TraningFLSalesRegion1
TR239HR TrainingFLOperationsPlant1
TR239HR TrainingLevel01OperationsPlant2
TR037Power BI TrainingLevel05SalesRegion1
TR050Manufacturing TrainingLevel02OperationsPlant02

 

and it goes on with all required levels, areas and sub areas.

 

I also have a database that cointains all employees that concluded a training:

Training Database

Employee IDNameTraining NameTraining ID
0201JohnNegotiation TrainingTR001
0342MariePower BI TrainingTR037
5278LindsayHR TrainingTR239

 

 

I have to create a new table, that looks like this:

 

Employee IDNameAreaSub AreaLevelTraining RequiredTraining NameCompleted?
0201JohnSalesRegion1FLTR001Negotiation TrainingYes
0201JohnSalesRegion1FLTR059Security TraningNo
0342MarieOperationsPlant02Level02TR032CommunicationTrainingYes

5278

LindsayOperationsPlant02Level01TR032CommunicationTrainingNo

5278

LindsayOperationsPlant02Level01TR239HR TrainingYes

8742

RubySalesRegion2FLTR001Negotiation TrainingNo

6453

MatthewSalesRegion1Level05TR037Power BI TrainingNo

 

I tried a lot of dax stuff, but wasn't able to get done.

 

A little help anyone?

 

Regards!

 

1 ACCEPTED SOLUTION
ryan_mayu
Super User
Super User

@pjotaramos01 

can we do this in pq? i think that will be easier.

However the output is different from yours.

i got Matthew for Communication Training

and Maria has not completed for Communication training since we only see PowerBI training in training database

1.PNG

pls see the attachment below





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




View solution in original post

3 REPLIES 3
ryan_mayu
Super User
Super User

@pjotaramos01 

can we do this in pq? i think that will be easier.

However the output is different from yours.

i got Matthew for Communication Training

and Maria has not completed for Communication training since we only see PowerBI training in training database

1.PNG

pls see the attachment below





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




Oh! It's exactly this! 

 

How did you do it? You merged the tables and created a custom collumn? How did you make the merged table? 

 

Thanks in advance!

I did that in PQ. you can check the transform steps in PQ.





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




Helpful resources

Announcements
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

Power BI Carousel June 2024

Power BI Monthly Update - June 2024

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

RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.