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.
For each 'cid' in Table 1 , I want to look up for a match in table 2 against the 'companyid,' . Table 3 should contain all the matches for the companyid field from Table2 .
Table1
dc , cid, name
--------------------
dc1, DC9098, xyc
dc2, DC9081, xyc
dc3, DC9041, xyc
Table2
id , companyid, client, date
-----------------------------------
1, DC9098, SPA,10/12/20
2, DC9081,APPL,30/31/19
3, DC9081,GOOG,30/31/19
4, DC9081,RAS,10/31/19
5, DC9031,RAS,10/31/19
Table 3
id , companyid, client, date
-----------------------------------
1, DC9098, SPA,10/12/20
2, DC9081,APPL,30/31/19
3, DC9081,GOOG,30/31/19
4, DC9081,RAS,10/31/19
Solved! Go to Solution.
@dcr007 Maybe:
Table 3 =
VAR __cids = ALL('Table1'[cid])
RETURN
FILTER(ALL('Table2'),[companyid] IN __cids)
@dcr007 Maybe:
Table 3 =
VAR __cids = ALL('Table1'[cid])
RETURN
FILTER(ALL('Table2'),[companyid] IN __cids)
Hey @Greg_Deckler Thanks that helped ! Also I figured out the creating a view using merge queries to be effecient in terms of time space complexity. Like so :
= Table.NestedJoin(Table2, {"companyId"}, Table1, {"companyId"}, "Table1", JoinKind.Inner)
src: https://docs.microsoft.com/en-us/power-query/merge-queries-overview
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 |
---|---|
113 | |
99 | |
80 | |
70 | |
59 |
User | Count |
---|---|
149 | |
114 | |
107 | |
89 | |
67 |