Forum Discussion
Macwin
4 years agoHelper I
Table merge with a specific Condition
Hello Guys, I have a problem and currently dont know how to resolve this problem. I have two Tables. Table A = Active Order Lines Table B = Archived Order Lines Now we need to merge this two t...
- 4 years ago
You can't do a simple UNION between the tables as there appear to be different columns between the tables, however you can use SELECTCOLUMNS to build a table with the required columns, something like
New Table = var documentNumArchived = EXCEPT( VALUES(Archived[Document no]), VALUES(Active[Document no]) ) return UNION( SELECTCOLUMNS( Active, column list here), CALCULATETABLE( SELECTCOLUMNS(Archived, column list here), documentNumArchived) ) - 4 years ago
In the SELECTCOLUMNS you can create a column which specifies which table it comes from, you could then filter on that
Vijay_A_Verma
4 years agoMost Valuable Professional
Please post screenshots of both tables.
How to Get your Question Answered Quickly - https://community.powerbi.com/t5/Desktop/How-to-Get-Your-Question-Answered-Quickly/m-p/1447523