Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
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 usage-related SDK value in table 1.
Solved! Go to Solution.
@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])
Thanks, Greg! I just found it after I add some values from another table. It gives me all repeat measure results for one id.
@Greg_Deckler single row was expected. Now it has multiple repeated rows. Do you have suggestions?
This is the screenshot before the measure.
@lanluokaka Are you missing a relationship?
I do have a relationship, it's based on the id.
@lanluokaka So, what do you want to happen? Which row should display?
Thank you so much! It works, why does it need the max id in the first var?
@lanluokaka Just a way of not having to use EARLIER
@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])
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
111 | |
100 | |
80 | |
64 | |
58 |
User | Count |
---|---|
146 | |
110 | |
93 | |
84 | |
67 |