# Comparing how registration is trending compared to last year in Quicksight

**URL:** <https://community.amazonquick.com/t/comparing-how-registration-is-trending-compared-to-last-year-in-quicksight/26755>\
**Category:** Q&A\
**Tags:** analysis, parameters, calculations, Business-Intelligence-Engineer, quick-sight\
**Created:** [March 2, 2024, 7:41pm UTC](https://community.amazonquick.com/t/comparing-how-registration-is-trending-compared-to-last-year-in-quicksight/26755 "2024-03-02T19:41:55Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Tim\_groot](https://avatars.discourse-cdn.com/v4/letter/t/bcef8e/32.png) [@Tim\_groot](https://community.amazonquick.com/u/Tim_groot)\
**Post date:** [March 2, 2024, 7:41pm UTC](https://community.amazonquick.com/t/comparing-how-registration-is-trending-compared-to-last-year-in-quicksight/26755/1 "2024-03-02T19:41:55Z")

</div>

I’m building a dashboard for a conference where I want to see how the number of active participants on a mobile app used by the event is trending compared to last year. The challenge is that the event is a day later compared to last year. So I can’t rely on the descriptions here on working with the [date field](https://community.amazonquick.com/t/creating-period-comparisons-with-quicksights-periodover-and-periodto-functions/6830/2).

Assume my date looks something like this:

 ![image](https://d1wl4jav5dp96l.cloudfront.net/original/3X/d/f/df93709a5fe93a1faeb46b2250fc3b81f56e0380.png)

Which needs to be made to represent something like this:  
 ![image](https://d1wl4jav5dp96l.cloudfront.net/original/3X/d/e/de49c7f83ce22b390bfc50460dd8b5a859c20764.png)

Which can then be visualised like this:  
 ![image](https://d1wl4jav5dp96l.cloudfront.net/original/3X/4/9/49b75fd5b3a782057bf8ca848937f52f84b3081d.png)

**TLDR:** I’m not sure how to make the " Number of Days before the event" field to active users across both events even though they are on different dates.

Thank you for all your help!

---

<div class="post-metadata">

**Author:** ![Kristin](https://d2orw1595917va.cloudfront.net/user_avatar/community.amazonquick.com/kristin/32/2470_2.png) [@Kristin](https://community.amazonquick.com/u/Kristin)\
**Post date:** [March 3, 2024, 6:41pm UTC](https://community.amazonquick.com/t/comparing-how-registration-is-trending-compared-to-last-year-in-quicksight/26755/2 "2024-03-03T18:41:01Z")

</div>

Thanks for your question @Tim_groot.

@WLS-DM and @WLS-D could you look at this Monday morning?

---

<div class="post-metadata">

**Author:** ![Tim\_groot](https://avatars.discourse-cdn.com/v4/letter/t/bcef8e/32.png) [@Tim\_groot](https://community.amazonquick.com/u/Tim_groot)\
**Post date:** [March 4, 2024, 11:15am UTC](https://community.amazonquick.com/t/comparing-how-registration-is-trending-compared-to-last-year-in-quicksight/26755/3 "2024-03-04T11:15:42Z")

</div>

Thank you Kristin - appreciate your and the teams help with this 🙏

---

<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 4, 2024, 3:35pm UTC](https://community.amazonquick.com/t/comparing-how-registration-is-trending-compared-to-last-year-in-quicksight/26755/4 "2024-03-04T15:35:38Z")

</div>

Hello @Tim_groot !

You could try using `addDateTime` on your event start date field first. So something like this:

`addDateTime(1, 'DD', {Event Start Date})`

Let me know if that works in the calculation from the blog you linked above!

---

<div class="post-metadata">

**Author:** ![Tim\_groot](https://avatars.discourse-cdn.com/v4/letter/t/bcef8e/32.png) [@Tim\_groot](https://community.amazonquick.com/u/Tim_groot)\
**Post date:** [March 4, 2024, 3:57pm UTC](https://community.amazonquick.com/t/comparing-how-registration-is-trending-compared-to-last-year-in-quicksight/26755/5 "2024-03-04T15:57:17Z")

</div>

Hi @WLS-D thanks for the idea. I’m not sure if that would work as addDateTime enables me to add a specific number of days to a date as far as I understand?

Whereas what I need is the difference between two days as a column e.g. how many days is there between the Activation Date and the Event Creation Date.

I can then turn that into a cumulative count to know how many users were active 1, 2, 3, 4 days before the event.

---

<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:** [April 3, 2024, 2:11pm UTC](https://community.amazonquick.com/t/comparing-how-registration-is-trending-compared-to-last-year-in-quicksight/26755/6 "2024-04-03T14:11:14Z")

</div>

Hello @Tim_groot !

I’m sorry about the late reply, and thank you for clarifying that for me! In that case I would suggest using dateDiff:

> **[dateDiff - Amazon QuickSight](https://docs.aws.amazon.com/quicksight/latest/user/dateDiff-function.html)**
>
> Use the dateDiff function for calculated fields in Amazon QuickSight.
