# How to display the last month sales of an item by selecting date as today

**URL:** <https://community.amazonquick.com/t/how-to-display-the-last-month-sales-of-an-item-by-selecting-date-as-today/36112>\
**Category:** Q&A\
**Tags:** qls-community, qls-reporting-apis, dashboard-embed, SDK, developer, quick-sight\
**Created:** [September 26, 2024, 4:36am UTC](https://community.amazonquick.com/t/how-to-display-the-last-month-sales-of-an-item-by-selecting-date-as-today/36112 "2024-09-26T04:36:38Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![Giridhar.Prabhu](https://d2orw1595917va.cloudfront.net/user_avatar/community.amazonquick.com/giridhar.prabhu/32/27789_2.png) [@Giridhar.Prabhu](https://community.amazonquick.com/u/Giridhar.Prabhu)\
**Post date:** [September 26, 2024, 5:46am UTC](https://community.amazonquick.com/t/how-to-display-the-last-month-sales-of-an-item-by-selecting-date-as-today/36112/2 "2024-09-26T05:46:36Z")

</div>

Hi @manideep1

You can create three calculated fields one each or Today, This Month and Last Month. While you don’t have a Period based calculations the link below shows you how to setup the Calculated fields. In your visual the date will not be filtered directly. It would rather be the Calculated fields that will determine values to display based on the date filters in them

> [@Period Over Period and Other Date Comparison Calculations (YoY, MoM, YTD, Rolling 90 days, etc)](https://community.amazonquick.com/t/period-over-period-and-other-date-comparison-calculations-yoy-mom-ytd-rolling-90-days-etc/564):
>
> Often you may want to create tables and other visuals which display multiple fields that are all ‘filtered’ to different date periods, as well as period-over-period fields. However we can’t use normal filters for this since filters get applied to all fields in the visual. Conceptually in this solution we are building the filters directly into the calculated field itself (using the ifelse logic), so that each field can have a different ‘filtered’ time period. You can then do whatever math you wan…

---

_[View the full topic](https://community.amazonquick.com/t/how-to-display-the-last-month-sales-of-an-item-by-selecting-date-as-today/36112)._
