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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Anonymous
Not applicable

Create a query of unique references from three tables

I import three tables that all contain a UniquRef. I want to be able to create a query that gives me all of the UniqueRef's from all of the three tables in one column then grouped so as to have just one instance.

 

I have tried to create (created querys to get my three tables down to one column of UniqueRefs) a New Table using UNION but I am then unable to query this New Table to group the resultant UniqueRef.

 

Can you point me in the right direction, I feel Im perhaps approaching this all wrong


As always, your patience and advice is greatly received.

 

 

1 ACCEPTED SOLUTION
speedramps
Super User
Super User

Please try this solution, click the thumbs just for me helping you and click solved if it fixes your problems. Cheers !

 

  • Go into edit mode by clicking on Home > Transform Date >Transform Data
  • Click Append Queries >Append Queries as new> Three or more tables > and then add all 3 Available tables to Tables to append.
  • In the new table, right click the Ref column > Remove other columns.
  • In the new table, right click the Ref column > Remove duplicates.
  • Voila ... you now have a unqiue list of Refs.

There are other ways to answer your problem, but the trick here is to use Append and Remove Duplicates, rather than Group.

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

Many thanks speedramps. Have a great weekend, I will......now !!

speedramps
Super User
Super User

Please try this solution, click the thumbs just for me helping you and click solved if it fixes your problems. Cheers !

 

  • Go into edit mode by clicking on Home > Transform Date >Transform Data
  • Click Append Queries >Append Queries as new> Three or more tables > and then add all 3 Available tables to Tables to append.
  • In the new table, right click the Ref column > Remove other columns.
  • In the new table, right click the Ref column > Remove duplicates.
  • Voila ... you now have a unqiue list of Refs.

There are other ways to answer your problem, but the trick here is to use Append and Remove Duplicates, rather than Group.

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 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.