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.
Hi PBI Community,
Is there a way to do a conditional lookup? I have a table with user ids and I need to get the last date the user was active from another table that has user id and dates. Is it possible to do that?
Your reponses are greatly appreciated.
Solved! Go to Solution.
@Anonymous
Try this Column in Table with UserIDs
= CALCULATE ( MAX ( Table2[Date] ), FILTER ( Table2, Table2[user id] = Table1[user id] ) )
Hi @Anonymous
If the two tables have a relationship,, you can simply use
= CALCULATE ( MAX ( Table2[Date] ))
@Anonymous
Try this Column in Table with UserIDs
= CALCULATE ( MAX ( Table2[Date] ), FILTER ( Table2, Table2[user id] = Table1[user id] ) )
Hi @Anonymous
If the two tables have a relationship,, you can simply use
= CALCULATE ( MAX ( Table2[Date] ))
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 |
---|---|
109 | |
98 | |
77 | |
66 | |
54 |
User | Count |
---|---|
144 | |
104 | |
100 | |
86 | |
64 |