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

Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM. Register now.

Reply
Mile_josh
New Member

Add new column from existing table in new generated table (distinct and union)

I have multiple tables eg:

Table1    
UrlTitleTemp URL
https://example.com/Page Onehttps://example.com/page1
https://example.com/page2Page Two 
https://example.com/page5Page Fivehttps://example.com/pagefive

 

Table2 
UrlTitle
https://example.com/page3Page Three
https://example.com/ 

 

Table3 
UrlTitle
https://example.com/page3Page Three
https://example.com/page4Page Four

 

 

I want to generate a new table with a union with all tables and the value (URL) should be distinct. For all Table1 URLs, I also want Temp Url to be added to this newly generated table

Generated Table  
UrlTitleTemp url
https://example.com/Page Onehttps://example.com/page1
https://example.com/page2Page Two 
https://example.com/page5Page Fivehttps://example.com/pagefive
https://example.com/page3Page Three 
https://example.com/page4Page Four 

 

@Ashish_Mathur , @Arul 

1 ACCEPTED SOLUTION
Ashish_Mathur
Super User
Super User

Hi,

In the Query Editor, append the three tables and then Remove Duplicates.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

View solution in original post

4 REPLIES 4
Ashish_Mathur
Super User
Super User

Hi,

In the Query Editor, append the three tables and then Remove Duplicates.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/
Ashish_Mathur
Super User
Super User

Hi,

Share some data to work with and show the expected result clearly.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/
Arul
Super User
Super User

@Mile_josh ,

I have generated some sample data for your requirement and written the formula to polpulate the third table. Please refer them,
Table 1:

Arul_0-1672258355844.png

Table 2:

Arul_1-1672258376328.png

Table 3 (Populated usnig dax formula):

Table3 = 
UNION ( DISTINCT ( T1[Url] ), DISTINCT ( T1[Temp url] ), DISTINCT ( T2[Url] ) )

Arul_2-1672258444643.png

Thanks,

Arul





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!


LinkedIn


Hi @Arul 

For each Url in Table 1 , I want tempUrl in same row. The new generated table should have Column Url, Title, Tempurl. tempurl value for other tables would empty.

 

Helpful resources

Announcements
October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Kudoed Authors