cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
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

View solution in original post

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

View solution in original post

Helpful resources

Announcements
Can You Solve These Challenge

Challenge: Can You Solve These?

Find out how to participate in the first Power BI 'Can You Solve These?' challenge.

Community News & Announcements

Community News & Announcements

Get your latest community news and announcements.

Virtual Launch Event

Microsoft Business Applications October Virtual Launch Event

Join us for an in-depth look at the new innovations across Dynamics 365 and the Microsoft Power Platform.

Community Kudopalooza

Win Power BI Swag with Community Kudopalooza!

Each week, complete activities and be qualified in the drawing for cool Power BI Swag.

Users Online
Currently online: 6 members 991 guests
Please welcome our newest community members: