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

I want to display the last month sales of an item and date in filter may be selected any date
As per below screenshot

image

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

1 Like

If i use the above logic for last month, and when i use the date filter the value gets 0,
but it shouldn’t change

1 Like

Hi @manideep1

You should use the dates to filter values in the Calculated field. On your visual don’t apply any date filter. If you do then the data itself will be filtered only for the date range you have selected.

The main purpose of putting the date condition in the calculated field is to enable you to get values for different time periods in different calculated fields.

1 Like

Hi @manideep1,
It’s been awhile since we last heard from you; did you have any additional questions regarding your initial topic?

If we do not hear back within the next 3 business days, I’ll go ahead and close out this topic.

Thank you!

I understood that if we apply date filter in the report then last Month column value will be displayed as per date filter .

Hi @manideep1,
Since there were no additional questions, I’ll go ahead and close out this topic. However, if further assistance is needed, feel free to create a new topic in the community and link this discussion for relevant information if needed.

Thank you!