cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
ellisellis
Frequent Visitor

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
ellisellis
Frequent Visitor

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
June 2022 update 768X460.jpg

Check it out!

Click here to read more about the June 2022 updates!

Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

Power BI Dev Camp Session 23 768x460.jpg

Check it Out!

Mark your calendars and join us on Thursday, June 30 at 11a PDT for a great session with Ted Pattison!

June 20 episode 7 with aka link 768x460.jpg

The Power BI Community Show

Join us on June 20 at 11 am PDT when Kim Manis shares the latest on Azure Synapse analytics, the Microsoft Intelligent Data Platform, and notable Power BI Updates from Microsoft Build 2022.

Top Solution Authors
Top Kudoed Authors