# Compare two datasets on the same chart

**URL:** <https://community.hubspot.com/t/compare-two-datasets-on-the-same-chart/116578>\
**Category:** Reporting & Analytics\
**Tags:** analytics-tools\
**Created:** [September 18, 2024, 2:38pm UTC](https://community.hubspot.com/t/compare-two-datasets-on-the-same-chart/116578 "2024-09-18T14:38:24Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![MSerano](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/mserano/32/203882_2.png) [@MSerano](https://community.hubspot.com/u/MSerano)\
**Post date:** [September 18, 2024, 2:38pm UTC](https://community.hubspot.com/t/compare-two-datasets-on-the-same-chart/116578/1 "2024-09-18T14:38:24Z")

</div>

Hi evryone 🙂

I am looking to compare two different data sets on the same chart by choosing the ‘combination’ chart.  
The data sets:

- Activity: emails sent to the client after date X
- Tickets: tickets from email sources created after date X

Problem: Some emails can be associated with tickets. When I filter the tickets by their source, it also filters my ‘email’ activities.  
Is it possible to filter the two objects independently from each other?

Many thanks in advance !

---

<div class="post-metadata">

**Author:** ![kennedyp](https://avatars.discourse-cdn.com/v4/letter/k/49beb7/32.png) [@kennedyp](https://community.hubspot.com/u/kennedyp)\
**Post date:** [September 18, 2024, 10:38pm UTC](https://community.hubspot.com/t/compare-two-datasets-on-the-same-chart/116578/2 "2024-09-18T22:38:01Z")

</div>

Hi @MSerano! Welcome to the Community-- happy to have you here 😊

There are a couple of primary things to look for when your report is not filtering as expected. The first would be which object is set as the [Primary Data Source](https://knowledge.hubspot.com/reports/understand-the-custom-report-builder#data-sources) in the report. Based on your summary, I think that you should make Activities your Primary Object if they’re not all associated with a Ticket. You can check these settings by clicking on ‘edit data sources’ in the top left of your report:

 ![dbdf453e-3b02-4e8d-ab91-13cbce701576.default.png](https://d2qpr2jzcazej7.cloudfront.net/original/3X/1/f/1f5de4275a3b64d8226647c4a335753dd3aa9ca5.png)

Second, with your filters, you should be able to choose which object they come from. Check out my sidebar when I search for source-- it shows a category for the Activity properties and a category for Ticket properties:

 ![de91c8c4-8dc3-427f-9906-022264bd52ae.default.png](https://d2qpr2jzcazej7.cloudfront.net/original/3X/e/9/e9a2197d3f822372c5dd55ce71abd62da7045071.png)

Make sure your data sources are prioritized properly and then check which object you are using the source from!

If you still have issues after verifying these things, can you attach some screenshots of your report configuration?

Best,  
Kennedy

---

<div class="post-metadata">

**Author:** ![MSerano](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/mserano/32/203882_2.png) [@MSerano](https://community.hubspot.com/u/MSerano)\
**Post date:** [September 19, 2024, 7:14am UTC](https://community.hubspot.com/t/compare-two-datasets-on-the-same-chart/116578/3 "2024-09-19T07:14:25Z")

</div>

Hi @kennedyp ,

Thank you so much for answering 🙂

I set the data sources as you mentionned :

 ![MSerano_0-1726729663388.png](https://d2qpr2jzcazej7.cloudfront.net/original/3X/3/e/3e79af8b8fd738cf8cf5faf6bb4fca4cd9babd52.png)

I have now the correct count of activities but not the correct count of tickets.

See below the filters I set up :

 ![](https://d2qpr2jzcazej7.cloudfront.net/original/3X/0/0/00fd5cca8b189a7c30b325c29aeaea5e8727165d.png)

I think the issue comes from the fact that tickets are filtered according to activity type (email) but as I explained in my first message, even if the source of the ticket is “Email”, it doesn’t mean that this ticket is linked to any email, it could be empty.

 ![](https://d2qpr2jzcazej7.cloudfront.net/original/3X/5/e/5eae5b9701f456f1555e25def6df838e39bbd655.png)

I would like to be able to filter the tickets independently from the activities. Do you think it’s possible ?

Have a very nice day !

---

<div class="post-metadata">

**Author:** ![kennedyp](https://avatars.discourse-cdn.com/v4/letter/k/49beb7/32.png) [@kennedyp](https://community.hubspot.com/u/kennedyp)\
**Post date:** [September 21, 2024, 12:14am UTC](https://community.hubspot.com/t/compare-two-datasets-on-the-same-chart/116578/4 "2024-09-21T00:14:39Z")

</div>

Hey @MSerano -- in this case, without 100% of the tickets/activities being associated, this may be better displayed with two separate reports.
