Another "VLOOKUP" query from me. I have previously had some help with a calculation between tables where the information concerned dates (Solved: Re: PowerApps / Dataverse equivalent of Excel VLOO... - Power Platform Community (microsoft.com))
I now need to do the same, but for data that is not related to dates (i.e. not an ADDDAYS formula).
I am creating a PowerApp based on a set of tables I am creating in Dataverse. I have two tables and I want to create the equivalent of an Excel VLOOKUP calculation between two tables. I have created a relationship between the two relevant tables but can't seem to work out the calculation required to draw in information in one column according to matched data in another column. I need to do this to support a more complicated lookup and calculation involving a third table that sets out project utilisation time according to the team role of the person on the project.
In simple terms, my set up is as follows:
________________________________________________________________
Table 1 (Team_Roles) ¦
_________________________________________________________________________¦
Column1 (Team_Member_Name) *Primary* ¦ Column2 (Team_Role) ¦ Column3 (Team_Memb_Mob) ¦
FreeText LOOKUP to T3/C1
Chris Brown ¦ Director ¦ 07777 777777 ¦
Douglas Black ¦ Manager ¦ 07777 777778 ¦
Lesley White ¦ Assistant ¦ 07777 777779 ¦
__________________________________________________________________________________________________________
________________________________________________________________________
Table 2 (Contract_Details)
_______________________________________________________
Col1 ¦ Col2 ¦ Col3 ¦ Col4 _______________ ¦ Col5 ¦
(Project_Ref) *Primary* ¦ (Team_Member_Name) ¦ (Team_Role) ¦ (Project_Utilisation_Rate) ¦(Compl_Lev) ¦
FreeText LOOKUP to T1/C1 Calc Calc LOOKUP to T4/C1
CR0001 ¦ Chris Brown ¦ ? (i.e. Director) ¦ ? (i.e. 0.15) ¦ High ¦
CR0002 ¦ Chris Brown ¦ ? ¦ ? ¦ Low ¦
CR0003 ¦ Douglas Black ¦ ? ¦ ? ¦ Medium ¦
CR0004 ¦ Lesley White ¦ ? ¦ ? ¦ High ¦
CR0005 ¦ Lesley White ¦ ? ¦ ? ¦ Low ¦
CR0006 ¦ Chris Brown ¦ ? ¦ ? ¦ High ¦
CR0007 ¦ Douglas Black ¦ ? ¦ ? ¦ Low ¦
____________________________________________________________________________________________________________________
Table 3 (Project Utilisation)
__________________________________________________________________________ ¦
Column1 (Team_Role) *Primary* ¦ Column2
(Proj_Util_Rate_High) ¦ (Proj_Util_Rate_Med) ¦ (Proj_Util_Rate_Low) ¦
FreeText Numeric
Director ¦ 0.30 ¦ 0.25 ¦ 0.20 ¦
Manager ¦ 0.25 ¦ 0.20 ¦ 0.15 ¦
Assistant ¦ 0.20 ¦ 0.15 ¦ 0.10 ¦
_________________________________________________________________________
Table 4 (Project Complexity)
____________________________________¦
Column1 (Comp_Level) *Primary* ¦
FreeText
High ¦
Medium ¦
Low ¦
____________________________________
Column 2 on table 2 is a lookup against column 1 of table one (a lookup against the primary column (Team_Member_Name).
Easy enough through the creation of a relationship.
However, I want to automatically populate column 3 of table 2 (Team_Role) by doing a "VLOOKUP" of the Team_Member_Name value in each column 2/table 2 row against the Team_Member_Name column 1 of table 1 to return the column 2 of table 1 value.
I then want to automatically populate column 4 of table 2 (Team_Role) by doing a "VLOOKUP" of the Team_Role value in each column 3/table 2 row against the Team_Role column 1 of table 1 to return the column 2 of table 3 value.
Can I do this?