categorization
2 TopicsLookup for value based on sorted mapping table
Hi, I have been solving the categorization case for some time. The case is therefore: I have an mapping table (MapTable) where the order is important. Keyword Brand Index e-tron Electric CAR 0 sportback Sport CAR 1 Q6 SUV 2 4x FourCross CAR 3 citycarver City CAR 4 Also I have Product Table (Products). Product A1_citycarver_s-tronic_e-tron A1_citycarver_s-tronic_TSI A1_citycarver_s-tronic_TSI_4x A6_sportback_s-tronic_TSI_4x A6_avant_s-tronic_TSI_4x Q6_sportback_s-tronic_TSI_4x Q6_avant_s-tronic_TSI_e-tron Q6_family_s-tronic_TSI_4x Based on keyword from MapTable I need to assign Brand. As is known, LOOKUPVALUE function works with native sorting, you cannot specify another column in MapTable for sorting. So after using this function you get wrong Brand values. Brand = LOOKUPVALUE(MapTable[Brand],MapTable[Keyword],FIRSTNONBLANK(FILTER(VALUES(MapTable[Keyword]),SEARCH(MapTable[Keyword],Products[Product],1,0)),1)) Second option I often use is that I am using all columns in filter, then I also need to get only specified column result as "search_value". Brand Sorted = LOOKUPVALUE(MapTable[Brand],MapTable[Keyword],SELECTCOLUMNS(FIRSTNONBLANK(FILTER(VALUES(MapTable),SEARCH(MapTable[Keyword],Products[Product],1,0)),1),"search_value",MapTable[Keyword])) I hope the second option works, but does anyone have any other solution? The result seems like: Your feedback is welcome! Thank you, Petr1.3KViews0likes2CommentsUsing SWITCH to put candidates into categories, however ...
... individual instances will usually belong to multiple categories. Question Is there a way to have a singular column/measure which permits candidates to simultaneously be in multiple defined categories at once, based on their stage progression? Context I am building a dashboard for our recuitment team based off of extract from Workday Recruiting. There are six applicant/candidate stages we monitor: 1. Review 2. Screen 3. Interview 4. Reference Check 5. Offer 6. Ready for Hire I am looking to report on the "Candidate Progression Funnel" to monitor progression at each of these six steps. This means that each candidate should count towards not only for their current stage (e.g. Interview) but also the preceding stages they've come through (Review & Screen). An individual who makes it to an Interview also needs to be in the counts for Review and Screen. Someone who only makes it to Review only counts towards Review while someone who makes it to Offer stage counts for stages 1-5, but not Ready for Hire yet. I already have created six individual calculated columns for each for the Progression Stages: Candidate Progress 03: Interview = IF( (EXTRACT_02[Candidate Stage]="Interview") || (EXTRACT_02[Candidate Stage]="Reference Check") || (EXTRACT_02[Candidate Stage]="Offer") || (EXTRACT_02[Candidate Stage]="Ready for Hire") || (EXTRACT_02[Last Recruiting Stage]="Interview") || (EXTRACT_02[Last Recruiting Stage]="Reference Check") || (EXTRACT_02[Last Recruiting Stage]="Offer") || (EXTRACT_02[Last Recruiting Stage]="Ready for Hire") ||, ("Interview"), ("No") ) The issue is now that I have six different calculated columns rather than a singular one for the purposes of visualization. I'm in need of a single column which has all six progession stages in the same place. I've attempted to use SWITCH to no avail, yet: Candidate Progress: All 01 = SWITCH( TRUE(), EXTRACT_02[Last Recruiting Stage]="Review" || EXTRACT_02[Last Recruiting Stage]="Screen" || EXTRACT_02[Last Recruiting Stage]="Interview" || EXTRACT_02[Last Recruiting Stage]="Reference Check" || EXTRACT_02[Last Recruiting Stage]="Offer" || EXTRACT_02[Last Recruiting Stage]="Ready for Hire", "Review", EXTRACT_02[Last Recruiting Stage]="Screen" || EXTRACT_02[Last Recruiting Stage]="Interview" || EXTRACT_02[Last Recruiting Stage]="Reference Check" || EXTRACT_02[Last Recruiting Stage]="Offer" || EXTRACT_02[Last Recruiting Stage]="Ready for Hire", "Screen", EXTRACT_02[Last Recruiting Stage]="Interview" || EXTRACT_02[Last Recruiting Stage]="Reference Check" || EXTRACT_02[Last Recruiting Stage]="Offer" || EXTRACT_02[Last Recruiting Stage]="Ready for Hire", "Interview", EXTRACT_02[Last Recruiting Stage]="Reference Check" || EXTRACT_02[Last Recruiting Stage]="Offer" || EXTRACT_02[Last Recruiting Stage]="Ready for Hire", "Reference Check", EXTRACT_02[Last Recruiting Stage]="Offer" || EXTRACT_02[Last Recruiting Stage]="Ready for Hire", "Offer", EXTRACT_02[Last Recruiting Stage]="Ready for Hire", "Ready for Hire", "NA" ) I believe this is happening b/c "Review" encompasses all applicants (rightfully so) based on the logic and thus applicants aren't counting towards multiple stage categories. How might I have a singular column/measure which permits candidates to simultaneously be in multiple defined categories at once based on their stage progression?Solved2.3KViews0likes9Comments