Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik and ServiceNow Partner to Bring Trusted Enterprise Context into AI-Powered Workflows. Learn More!
cancel
Showing results for 
Search instead for 
Did you mean: 
Gayathri_Reddy5
Contributor
Contributor

previous year & current year sales

Hi,

I am new to Qlik sense so I need help regarding calculating Previous and Current Year sales to my report.

I have an excel data file with Order Date, Cus Name, and Sales amount.  

Do I need to add any calendar table? can anyone please help me with this?

Thanks in advance.

1 Reply
anat
Master
Master

create OrderYear field based on "Order Date " then use below expressions,

Current_Year

Sum({<OrderYear = {$(=Max(OrderYear))}>} Sales)

 

Last_Year

Sum({<OrderYear = {$(=Max(OrderYear-1))}>} Sales)