Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
oscar_gutierrez
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
v-huizhn-msft
Employee
Employee

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
v-huizhn-msft
Employee
Employee

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

dedelman_clng
Community Champion
Community Champion

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

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.