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.
I need to append two columns from two separate tables into one new calculated column using DAX
Example:
Table1:
Table2 (with records starting from 1 to 24)
I need to append the value of 01 till 24 to each record of the Table1,
the Calculated Column should look like below:
2010070501
2010070502
and so on till 2010070524
and then 2010070601 and so on till 2010070524
and so on for other records.
Solved! Go to Solution.
Hi @Surabhi1711 ,
You need to use crossjoin to create a new table base on the two table , refer:
TableC = CROSSJOIN(TableA,SELECTCOLUMNS(TableB,"column2",RIGHT(TableB[Column2],2)))
Column3 = TableC[DateID]&""&TableC[column2]
Best Regards
Lucien
Hi @Surabhi1711 ,
You need to use crossjoin to create a new table base on the two table , refer:
TableC = CROSSJOIN(TableA,SELECTCOLUMNS(TableB,"column2",RIGHT(TableB[Column2],2)))
Column3 = TableC[DateID]&""&TableC[column2]
Best Regards
Lucien
User | Count |
---|---|
65 | |
61 | |
60 | |
53 | |
27 |
User | Count |
---|---|
181 | |
83 | |
68 | |
49 | |
46 |