The ultimate Microsoft Fabric, Power BI, Azure AI, and SQL learning event: Join us in Stockholm, September 24-27, 2024.
Save €200 with code MSCUST on top of early bird pricing!
Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started
Hello all,
I need assistance creating a new column in my table, tab1, by performing a lookup from tab2 based on the relationship between tab1[id] and tab2[fk]. However, I have to take the value from tab2 when the date in tab2 is the maximum date among all rows with the same foreign key (fk) in tab2 otherwise I will have a problem. How can I achieve this without encountering potential issues?
Solved! Go to Solution.
@toum ,
The new column in Table 1
Maxx(filter(Tab2, Tab1[id] = tab2[Id]) , Tab2[Date])
refer 4 ways (related, relatedtable, lookupvalue, sumx/minx/maxx with filter) to copy data from one table to another
https://www.youtube.com/watch?v=Wu1mWxR23jU
https://www.youtube.com/watch?v=czNHt7UXIe8
@toum ,
The new column in Table 1
Maxx(filter(Tab2, Tab1[id] = tab2[Id]) , Tab2[Date])
refer 4 ways (related, relatedtable, lookupvalue, sumx/minx/maxx with filter) to copy data from one table to another
https://www.youtube.com/watch?v=Wu1mWxR23jU
https://www.youtube.com/watch?v=czNHt7UXIe8
Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.
Check out the July 2024 Power BI update to learn about new features.
User | Count |
---|---|
115 | |
112 | |
69 | |
48 | |
43 |
User | Count |
---|---|
189 | |
87 | |
77 | |
74 | |
60 |