Forum Discussion
Mvumelwano
6 years agoHelper I
lookup without common column
HI Team, Please assist with DAX, I have 2 tables (Table 1 and Table 2) and i need table 3 (see below example). always "a" = "I" and "d" = "m" and "e" = a measure (n+o) Table1 codes no a 1 ...
Greg_Deckler
6 years agoCommunity Champion
Soooo, what is the logic to get from Table1 and Table2 to Table3??
Mvumelwano
6 years agoHelper I
Logic : always "a" = "I" and "d" = "m" and "e" = a measure (n+o)
Thank you
Kind regards,
Mvumelwano
- Greg_Deckler6 years agoCommunity Champion
Perhaps create a measure like:
New Measure = SWITCH(MAX('Table1'[codes]), "a",LOOKUPVALUE('Table2'[score],'Table2'[code],"l"), "d",LOOKUPVALUE('Table2'[score],'Table2'[code],"m"), "e",[measure], BLANK() )