The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredCompete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.
Hi
I am trying to make Table 3 from Table 1 and Table 2.
Since they are not completely matching, I am not quite sure how I can do a lookupvalue (or other dax).
Any help would be much appreciated.
Solved! Go to Solution.
@dogburalHK82
Please try
Table3 =
GENERATE (
VALUES ( Table1[Item Number] ),
SELECTCOLUMNS (
FILTER ( Table2, CONTAINSSTRING ( Table1[Item Number], Table2[Item Number] ) ),
"Category", Table2[Category]
)
)
Try
Table3 =
MAXX (
FILTER ( Table2, CONTAINSSTRING ( Table1[Item Number], Table2[Item Number] ) ),
Table2[Category]
)
lookupvalues=LOOKUPVALUE('table3','Table1[item number],'Table2[category])
@dogburalHK82
Please try
Table3 =
GENERATE (
VALUES ( Table1[Item Number] ),
SELECTCOLUMNS (
FILTER ( Table2, CONTAINSSTRING ( Table1[Item Number], Table2[Item Number] ) ),
"Category", Table2[Category]
)
)
@tamerj1 Great thank you.
If I want to create one calculated column next to Item number column in Table 1, what should I use?
Try
Table3 =
MAXX (
FILTER ( Table2, CONTAINSSTRING ( Table1[Item Number], Table2[Item Number] ) ),
Table2[Category]
)
You mentioned that you want to create a calycolumn in table1 but seems that you are creating a measure!
User | Count |
---|---|
15 | |
8 | |
6 | |
6 | |
6 |
User | Count |
---|---|
24 | |
14 | |
13 | |
8 | |
8 |