# How to Join 2 different datasets together (direct query dataset and spice)

**URL:** <https://community.amazonquick.com/t/how-to-join-2-different-datasets-together-direct-query-dataset-and-spice/4582>\
**Category:** Q&A\
**Tags:** direct-query, spice, quick-sight\
**Created:** [July 6, 2022, 5:44pm UTC](https://community.amazonquick.com/t/how-to-join-2-different-datasets-together-direct-query-dataset-and-spice/4582 "2022-07-06T17:44:04Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![tatia7d](https://avatars.discourse-cdn.com/v4/letter/t/87869e/32.png) [@tatia7d](https://community.amazonquick.com/u/tatia7d)\
**Post date:** [July 6, 2022, 5:44pm UTC](https://community.amazonquick.com/t/how-to-join-2-different-datasets-together-direct-query-dataset-and-spice/4582/1 "2022-07-06T17:44:04Z")

</div>

Hello community!  
I need help to see if this is possible to do.  
I have an embedded dashboard that needs to refresh its calculations real time when a number in the database is updated.  
The original dataset I created was a direct query to get directly from the database, but takes too much time because is a big query and the visuals sometimes renders and sometimes not.  
I am trying now to combine spice and direct query looking for better performance.  
This is what i have done so far:

- Created a direct query dataset with small portion of the query
- Created a spice dataset with the other part of the query
- In the direct query dataset added the spice dataset and did some left join (from right dataset (direct) to left dataset (spice))
- added a few calculated fields.  
I am not able to see the data from the spice query, and now in the design area when clicking the direct query, is not direct query dataset anymore, is spice.  
Please i need some guidance, if there is documentation about that or if it possible at all.  
Thanks in advance.  
Tatiana.

---

<div class="post-metadata">

**Author:** ![Kellie\_Burton](https://d2orw1595917va.cloudfront.net/user_avatar/community.amazonquick.com/kellie_burton/32/2603_2.png) [@Kellie\_Burton](https://community.amazonquick.com/u/Kellie_Burton)\
**Post date:** [July 6, 2022, 10:32pm UTC](https://community.amazonquick.com/t/how-to-join-2-different-datasets-together-direct-query-dataset-and-spice/4582/2 "2022-07-06T22:32:38Z")

</div>

Hi Tatiana! If you join across sources, the result must be a SPICE dataset. Here is a link to documentation details of joins in Quick Sight as well as a blog post in regards to joining data across sources.

> **[Joining data - Amazon QuickSight](https://docs.aws.amazon.com/quicksight/latest/user/joining-data.html)**
>
> Join tables, files, and SQL queries using the Amazon QuickSight join interface.

> **[Joining across data sources on Amazon QuickSight | Amazon Web Services](https://aws.amazon.com/blogs/big-data/joining-across-data-sources-on-amazon-quicksight/)**
>
> June 2025: This post was reviewed and updated for accuracy. Amazon QuickSight allows you to connect to multiple data sources and join data across these sources in Amazon QuickSight directly to create datasets used to build dashboards. For...

---

<div class="post-metadata">

**Author:** ![graphs](https://avatars.discourse-cdn.com/v4/letter/g/f4b2a3/32.png) [@graphs](https://community.amazonquick.com/u/graphs)\
**Post date:** [September 26, 2023, 12:37pm UTC](https://community.amazonquick.com/t/how-to-join-2-different-datasets-together-direct-query-dataset-and-spice/4582/3 "2023-09-26T12:37:16Z")

</div>

How can we join two dataset without having any common ids, Like I wanted to do Cross Join

---

<div class="post-metadata">

**Author:** ![WLS-D](https://d2orw1595917va.cloudfront.net/user_avatar/community.amazonquick.com/wls-d/32/36109_2.png) [@WLS-D](https://community.amazonquick.com/u/WLS-D)\
**Post date:** [March 8, 2024, 8:28pm UTC](https://community.amazonquick.com/t/how-to-join-2-different-datasets-together-direct-query-dataset-and-spice/4582/4 "2024-03-08T20:28:19Z")

</div>

Hello @graphs !

If you still need help with this, could you repost your question as a new topic at the top of the community? This way the community experts will be able to prioritize your question.

You can also link to this topic thread in your question.

---

<div class="post-metadata">

**Author:** ![WLS-D](https://d2orw1595917va.cloudfront.net/user_avatar/community.amazonquick.com/wls-d/32/36109_2.png) [@WLS-D](https://community.amazonquick.com/u/WLS-D)\
**Post date:** [March 8, 2024, 8:28pm UTC](https://community.amazonquick.com/t/how-to-join-2-different-datasets-together-direct-query-dataset-and-spice/4582/5 "2024-03-08T20:28:26Z")

</div>

Archived on March 8, 2024, 8:28pm UTC


