The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.
Table 1:
A | B |
A1 | 100 |
A2 | 200 |
A3 | 300 |
Table 2
A |
A2 |
A5 |
A4 |
I need to compare table 1 and 2 (IMP: no relationship between them), then return column B for similar values of column A in both tables.
Can anyone help me?
Solved! Go to Solution.
You could try
B =
CALCULATE ( MAX ( 'Table 1'[B] ), TREATAS ( { 'Table 2'[A] }, 'Table 1'[A] ) )
You're adding it as a column in Table 2, not as a measure ? And you have the { } around the column reference ?
You could try
B =
CALCULATE ( MAX ( 'Table 1'[B] ), TREATAS ( { 'Table 2'[A] }, 'Table 1'[A] ) )
Thanks for the suggestion.
I tried this, but my column is not identifying inside 'Treatas'. I tried with 'Values' but no use. Column A in both tables are in TEXT format.
You're adding it as a column in Table 2, not as a measure ? And you have the { } around the column reference ?
User | Count |
---|---|
65 | |
61 | |
60 | |
53 | |
30 |
User | Count |
---|---|
180 | |
88 | |
71 | |
48 | |
46 |