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
Anonymous
Not applicable

Data model Creation

Hi ALL

I have two tables like below

 

Table 1

Interview  Registration.png

 

Table 2

Interview Round.png

 

By using these two tables How can I create a data model like below image?

Final Data Model

Final Datamodel.png

 

Data:

 

Interview  Registration:

 

Registration DateCandidate IDNameAddressEmailPhoneExperienceDepartment
1/1/2019C1AXXXXXDE9876542kkk
1/1/2019C2BXXKLMJ34561LMN
1/2/2019C3CXXXmnMJ3564JL
1/2/2019C4DXXXCClMJ6325JL

 

Interview Round:

 

Interview DateCandidate IDRoundInterviewerResult
1/1/2019C1Tech1KLSelected
1/2/2019C1Tech2MLSelected
1/3/2019C1HRKJLSelected
1/4/2019C1FinalAAASelected
1/2/2019C2Tech1KLSelected
1/2/2019C2Tech2MLHold
1/3/2019C3Tech1KLSelect
1/4/2019C3Tech2MLRejected
1 ACCEPTED SOLUTION

Hi @Anonymous,

 

I would suggest you create a new table in your scenario. The slicer Candidate will be from it.

CandidateIDs =
DISTINCT (
    UNION ( VALUES ( Table1[Candidate ID] ), VALUES ( Table2[Candidate ID] ) )
)

Data-model-Creation2

Data-model-Creation3

 

 

Best Regards,

Community Support Team _ Dale
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

5 REPLIES 5
v-jiascu-msft
Employee
Employee

Hi @Anonymous,

 

Please download the solution from the attachment.

Current Round =
VAR allRound =
    CALCULATETABLE ( VALUES ( Table2[Round] ) )
RETURN
    SWITCH (
        TRUE (),
        "Final" IN allRound, "Final",
        "HR" IN allRound, "HR",
        "Tech2" IN allRound, "Tech2",
        "Tech1" IN allRound, "Tech1",
        BLANK ()
    )
Current Result =
LOOKUPVALUE (
    Table2[Result],
    Table2[Round], [Current Round],
    Table2[Candidate ID], [Candidate ID]
)
Tech1 =
LOOKUPVALUE (
    Table2[Result],
    Table2[Candidate ID], [Candidate ID],
    Table2[Round], "Tech1"
)
Tech2 =
LOOKUPVALUE (
    Table2[Result],
    Table2[Candidate ID], [Candidate ID],
    Table2[Round], "Tech2"
)
HR =
LOOKUPVALUE (
    Table2[Result],
    Table2[Candidate ID], [Candidate ID],
    Table2[Round], "HR"
)
Final =
LOOKUPVALUE (
    Table2[Result],
    Table2[Candidate ID], [Candidate ID],
    Table2[Round], "Final"
)

Data-model-Creation

 

Best Regards,

Community Support Team _ Dale
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Anonymous
Not applicable

Thanks @v-jiascu-msft

 

in the data model, I want to update Table 2 (Interview Round) like below image 

Screenshot_3.png

I want to add the registered date in this table, then only I can complete my requirement

 

Requirement

  1. How many candidates registered on the selected date? and drill down to their personal information and interview result 
  2. How many candidates attend the interview on the selected date? and drill down to their personal information and interview result 

How can i achieve this logic? please give some idea to complete this requirement 

 

Hi @Anonymous,

 

These data is in Table 1. Why would you like to add them in Table 2? I would suggest you keep the model simple and clear.

You need to add a date table. Then you can solve the two questions using measures.

 

Best Regards,

Community Support Team _ Dale
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Anonymous
Not applicable

@v-jiascu-msft

 

pbix file

when I select 01/02/2019 it shows the correct result 

Screenshot_4.png

when I select candidate ID it shows the wrong result

1) interview result table did not filter based on candidate selection 

 

Screenshot_5.png

 

2) I have selected C1 candidate in Personal Information table, it wants to drill down to his interview result in drill down page

Screenshot_6.png

 

Data model

data model 2.png

 

I'm new to Power PI, Please help me to solve this issue 

Hi @Anonymous,

 

I would suggest you create a new table in your scenario. The slicer Candidate will be from it.

CandidateIDs =
DISTINCT (
    UNION ( VALUES ( Table1[Candidate ID] ), VALUES ( Table2[Candidate ID] ) )
)

Data-model-Creation2

Data-model-Creation3

 

 

Best Regards,

Community Support Team _ Dale
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.