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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Anonymous
Not applicable

how can i achieve this logic?

Hi all,

 

 i have a table like below image, how can i get final interview status field by using Interview round and Status field.

 

Input.png

 

Data:

 

Candidate ID Interview Round Status Attitude Communication Business Technology

1Round 1Selectgoodgoodgoodgood
1Round 2Selectgoodgoodgoodgood
1Round 3Selectgoodgoodgoodgood
1Round 4Selectgoodgoodgoodgood
2Round 1Selectgoodgoodgoodgood
2Round 2Selectgoodavgavggood
2Round 3Rejectavggoodavggood
3Round 1Selectgoodavgavggood
3Round 2Holdavggoodavggood
4Round 1Rejectavggoodavggood
2 ACCEPTED SOLUTIONS

@Anonymous

I guess you should have posted the actual requirement to start with  Smiley Happy

The alphabetical sorting approach does not work (by very little) with the new names so let's try this instead:

 

FinalInterviewStatus_V2 =
VAR _ConductedInterviews =
    CALCULATETABLE (
        VALUES ( Table1[Interview Round] ),
        ALLEXCEPT ( Table1, Table1[Candidate ID] )
    )
VAR _FinalRound =
    SWITCH (
        TRUE (),
        "Final" IN _ConductedInterviews, "Final",
        "HR" IN _ConductedInterviews, "HR",
        "Technical 2" IN _ConductedInterviews, "Technical 2",
        "Technical 1" IN _ConductedInterviews, "Technical 1"
    )
RETURN
    LOOKUPVALUE (
        Table1[Status],
        Table1[Candidate ID], Table1[Candidate ID],
        Table1[Interview Round], _FinalRound
    )

 

 

 

View solution in original post

@Anonymous@AlB

 

With the dates in place, the calculation should become simple

 

Final Status =
MAXX (
    TOPN (
        1,
        FILTER ( Table1, [Candidate ID] = EARLIER ( [Candidate ID] ) ),
        [Interview Date], DESC
    ),
    [Status]
)

Regards
Zubair

Please try my custom visuals

View solution in original post

10 REPLIES 10

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

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.