# Forecasting using Quicksight and Q

**URL:** <https://community.amazonquick.com/t/forecasting-using-quicksight-and-q/32248>\
**Category:** Q&A\
**Tags:** error, developer, quick-sight\
**Created:** [July 7, 2024, 5:30am UTC](https://community.amazonquick.com/t/forecasting-using-quicksight-and-q/32248 "2024-07-07T05:30:59Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Vim](https://avatars.discourse-cdn.com/v4/letter/v/b4bc9f/32.png) [@Vim](https://community.amazonquick.com/u/Vim)\
**Post date:** [July 7, 2024, 5:30am UTC](https://community.amazonquick.com/t/forecasting-using-quicksight-and-q/32248/1 "2024-07-07T05:30:59Z")

</div>

hello, i have got my Quicksight and Q up and running and able to generate various graphs and visuals using natural language query. my marketing users are now asking how they would use this tool for forecasting. using a dataset containing beauty sales info by country for the last five years, I asked “forecast sales of shampoo products over the next four quarters”

first it says " Your exact question cannot be answered".

then it give me this useless graph showing a range vary from tremendous growth to steep losses and notes this as the question it understood " Forecast of Total Revenue by Ship Date week" which is nonsense.

 ![image](https://d1wl4jav5dp96l.cloudfront.net/original/3X/3/8/3802d8264769916e0e88d4d870b91529ccb6b835.png)

I found some references in some 2022 posts but wondering if there is a recommended way to do that now.

---

<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:** [July 8, 2024, 3:51pm UTC](https://community.amazonquick.com/t/forecasting-using-quicksight-and-q/32248/2 "2024-07-08T15:51:25Z")

</div>

Hello @Vim !

How much review have you done on your Q topic after creating it i.e. have you created synonyms, preferred aggregations, etc… on the q topic level?

I haven’t tried forecasting yet but from my experience with Q topics so far it is best to do a thorough review prior to using the generative aspects of Q.

---

<div class="post-metadata">

**Author:** ![Thomas](https://d2orw1595917va.cloudfront.net/user_avatar/community.amazonquick.com/thomas/32/3624_2.png) [@Thomas](https://community.amazonquick.com/u/Thomas)\
**Post date:** [July 8, 2024, 4:12pm UTC](https://community.amazonquick.com/t/forecasting-using-quicksight-and-q/32248/3 "2024-07-08T16:12:14Z")

</div>

Hi @Vim,  
As your question seems to touch on multiple different challenges, let me try to answer the ones that I could spot and please let me know if I missed something. Also given that the structure and configuration of your dataset and Q topic is unknown, it is difficult to anticipate the expected behavior that you are looking for (feel free to provide more context if my answers are too generic for you).

Generally speaking, Q leverages [Q topics](https://docs.aws.amazon.com/quicksight/latest/user/quicksight-q-topics.html) that you can fine-tune and adjust to help Q to understand your business terminology and provide fine-tuned semantical meaning to your data. If you are completely new to this, I can recommend to have a look at the  
[Mastering Q Topic Creation for Amazon Q in Quick Sight](https://www.youtube.com/watch?v=G9Wo7E9r6IQ) recording from our learning series and check out the [documentation](https://docs.aws.amazon.com/quicksight/latest/user/quicksight-q-topics.html).

You can use _Synonyms_ in the _Data Fields_ section of the _Data_ tab of your topic to define which measure reflects what you are referring to as “Sales” and you can also define the default date for each dataset in the _Dataset_ section of the _Data_ tab of your topic, as highlighted with the red rectangle on the following screenshot:

 ![Screenshot 2024-07-08 at 17.23.23](https://d1wl4jav5dp96l.cloudfront.net/original/3X/a/b/abf4495c76245079cc3427e5dcd925158f8885b7.png)

As forecasting is no exact science, Quick Sight shows a lower and upper bound around the expected value. If you want to understand what algorithms we are using, you can find more details [here](https://docs.aws.amazon.com/quicksight/latest/user/concept-of-ml-algorithms.html). You can also configure forecast properties, such as forecast length, seasonality, and boundaries as described [here](https://docs.aws.amazon.com/quicksight/latest/user/forecasts-and-whatifs.html). Looking at your specific question to Q, it’s important to understand that as of now, Q does not understand the instruction given regarding the forecasting properties. Until that changes, you can configure them easily via the properties configuration.

To summarize and provide a similar example: After configuring your Q topic to understand what “Sales” means to you and setting the correct default date, you should be able to ask a question like “forecast quarterly sales of energy products” and receive a response looking like:

 ![Screenshot 2024-07-08 at 17.34.21](https://d1wl4jav5dp96l.cloudfront.net/original/3X/1/8/180bd414ae2b8bb68beef429a3b63227c71b0dc1.png)

After selecting “Add to Analysis”, you can select the light-bulb icon and _Edit forecast_…

 ![Screenshot 2024-07-08 at 18.03.06](https://d1wl4jav5dp96l.cloudfront.net/original/3X/6/9/6933cfa6a1dc30cdb764413849349eb4ae57f45b.png)  
… to adjust the _Periods forward_ property of the forecast length and other properties you want to tweak.  
 ![Screenshot 2024-07-08 at 18.06.34](https://d1wl4jav5dp96l.cloudfront.net/original/3X/0/6/0676eb70d0e15bd0a35592e95246756b4236a4f7.png)  
As a result you should be seeing a visual showing quarterly sales numbers, filtered on the type of products you wanted it to be filtered by (in my example only energy products), and a forecast for the next 4 quarters.  
 ![Screenshot 2024-07-08 at 18.08.32](https://d1wl4jav5dp96l.cloudfront.net/original/3X/0/6/06df8f3a3992336c47079e17f5499180d27565f6.png)

Did this answer your question? If so, please help the community out by marking this answer as "Solution!

---

<div class="post-metadata">

**Author:** ![Vim](https://avatars.discourse-cdn.com/v4/letter/v/b4bc9f/32.png) [@Vim](https://community.amazonquick.com/u/Vim)\
**Post date:** [July 8, 2024, 7:00pm UTC](https://community.amazonquick.com/t/forecasting-using-quicksight-and-q/32248/4 "2024-07-08T19:00:15Z")

</div>

thank you for the detailed suggestions. will review and respond.

---

<div class="post-metadata">

**Author:** ![Xclipse](https://d2orw1595917va.cloudfront.net/user_avatar/community.amazonquick.com/xclipse/32/20455_2.png) [@Xclipse](https://community.amazonquick.com/u/Xclipse)\
**Post date:** [July 22, 2024, 2:28am UTC](https://community.amazonquick.com/t/forecasting-using-quicksight-and-q/32248/5 "2024-07-22T02:28:03Z")

</div>



---

<div class="post-metadata">

**Author:** ![Xclipse](https://d2orw1595917va.cloudfront.net/user_avatar/community.amazonquick.com/xclipse/32/20455_2.png) [@Xclipse](https://community.amazonquick.com/u/Xclipse)\
**Post date:** [July 22, 2024, 2:28am UTC](https://community.amazonquick.com/t/forecasting-using-quicksight-and-q/32248/6 "2024-07-22T02:28:18Z")

</div>



---

<div class="post-metadata">

**Author:** ![Xclipse](https://d2orw1595917va.cloudfront.net/user_avatar/community.amazonquick.com/xclipse/32/20455_2.png) [@Xclipse](https://community.amazonquick.com/u/Xclipse)\
**Post date:** [July 22, 2024, 2:28am UTC](https://community.amazonquick.com/t/forecasting-using-quicksight-and-q/32248/7 "2024-07-22T02:28:21Z")

</div>


