Forum Discussion
Column data = table name
- 10 years ago
Add table name with your value using "Add Prefix" In Query Editor Window . Then you do the merging.
Eg. Vale = 103, Then Add "Table1" , O/P = Table1103
From the DAX
Create new Column
Value = MID(O/P,7,5) -- 5 give how long max digit u have
Then u change the column datatype as Integer .
It will work.
Anonymous Not within the editor that allows you to append, but you can create custom columns on each of the tables and just insert the table name.
In the Query editor select "Add Custom Column"
Name the column (ex. TableName)
set the value = "<Your Table Name>" (ex. ="Table1")
Do that for both tables
Append the queries.
- Anonymous10 years agoNot applicable
I tried that, but when I append the two tables it will only take the new column from the original table and will not add the new data from the other table for that column.
- Greg_Deckler10 years ago
Community Champion
Add a custom column to each query before the Append with something like "=1" and "=2". The column name would be the same but when you import them, you know which row came from which original table.
- v-sihou-msft10 years ago
Microsoft Employee
Anonymous
You need to add the custom column in Query Editor, not under Data tab.
Both tables need to add this table name column, then you can append correctly.
Regards,
- Baskar10 years ago
Resident Rockstar
Add table name with your value using "Add Prefix" In Query Editor Window . Then you do the merging.
Eg. Vale = 103, Then Add "Table1" , O/P = Table1103
From the DAX
Create new Column
Value = MID(O/P,7,5) -- 5 give how long max digit u have
Then u change the column datatype as Integer .
It will work.