cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
oscar_gutierrez New Member
New Member

calculated columns: Data source name and tabla name

Hola Community,

 

i have created a new union table from several different tables and I need to know which records in my union atable come from each table.

 

I need to generate either:

-calculated column with data source name

-calculated column with source table name

 

Could comebody please help me?, thanks in advance. oscar

1 ACCEPTED SOLUTION

Accepted Solutions
v-huizhn-msft Super Contributor
Super Contributor

Re: calculated columns: Data source name and tabla name

Hi @oscar_gutierrez,

As @dedelman_clng said, you create calculated columns in different tables. For example, you create it in source1 table and source2 table.

Resource="resource1"
Resource="resource2"


Then union the tables together including the "Resource" column.

Best Regards,
Angelia

2 REPLIES 2
dedelman_clng New Contributor
New Contributor

Re: calculated columns: Data source name and tabla name

Add another column on each of the source tables (probably named "source"), populate it on the source tables then union the tables together including the "source" column.

 

Hope this helps

David

v-huizhn-msft Super Contributor
Super Contributor

Re: calculated columns: Data source name and tabla name

Hi @oscar_gutierrez,

As @dedelman_clng said, you create calculated columns in different tables. For example, you create it in source1 table and source2 table.

Resource="resource1"
Resource="resource2"


Then union the tables together including the "Resource" column.

Best Regards,
Angelia