Forum Discussion
DAX, lookupvalue
Anonymous The equivalent of VLOOKUP is LOOKUPVALUE or using MAXX(FILTER(...),...)
Hi Greg_Deckler
Apologies, but yes it works. I had initially tried Lookupvalue but I had a wrong understanding of it and thought that you had to utilise multiple IF and Lookupvalues such as the code below:
if(GSS[Average of Overall Index] < first row value of 'GSS Reference Pt Table'[Index], first row value of 'GSS Reference Pt Table'[Point], if(GSS[Average of Overall Index] < second row value of 'GSS Reference Pt Table'[Index], second row value of 'GSS Reference Pt Table'[Point]))
The working code if anyone is wondering:
Weighted Avg GSS Points = (LOOKUPVALUE('GSS Reference Pt Table'[Point],'GSS Reference Pt Table'[Index], rounddown(GSS[Average of Overall Index],2))