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 August 31st. Request your voucher.
So, I think it's a simple problme, but I can't resolve it on time.
I have a table A with two columns: Employee and Code.
And table two with two columns too: Code and Course.
Table 1:
Table 2:
I want to make a third column joining the info from table 2 to table 1, but not on Power Query it has to be with DAX.
The final result is something like this:
Can anyone help, please?
Solved! Go to Solution.
NewTable=GENERATE(Table1,CALCUATETABLE(VALUES(Table2[Course]),TREATAS(VALUES(Table1[Code]),Table2[Code])))
NewTable=GENERATE(Table1,CALCUATETABLE(VALUES(Table2[Course]),TREATAS(VALUES(Table1[Code]),Table2[Code])))
It works. Thank you!!
User | Count |
---|---|
25 | |
12 | |
8 | |
8 | |
7 |
User | Count |
---|---|
27 | |
12 | |
12 | |
12 | |
6 |