Forum Discussion
lanluokaka
Microsoft Employee
5 years agoGroup max related value from another table
I have 2 tables, one just has ids, and the other one has those id usages. I want find the most used SDK within certain days. How do I make a measure to still keep the time slicer? And find the max us...
- 5 years ago
lanluokaka Seems like Lookup Min/Max: Lookup Min/Max - Microsoft Power BI Community. In your case:
Measure = VAR __ID = MAX('table 1'[id]) VAR __MostUsage = MAXX(FILTER('table 2',[id]=__ID),[usage]) RETURN MAXX(FILTER('table 2',[id] = __ID && [usage]=__MostUsage),[sdk])
Greg_Deckler
Community Champion
5 years agolanluokaka Seems like Lookup Min/Max: Lookup Min/Max - Microsoft Power BI Community. In your case:
Measure =
VAR __ID = MAX('table 1'[id])
VAR __MostUsage = MAXX(FILTER('table 2',[id]=__ID),[usage])
RETURN
MAXX(FILTER('table 2',[id] = __ID && [usage]=__MostUsage),[sdk])