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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

How to display the sales sum by year?

the date format import to qlikview is YYYY-MM-DD, and the sales is linked to the date, how can I get the sum of sales by year, month, and week?

thank you!

1.png

1 Solution

Accepted Solutions
SunilChauhan
Champion II
Champion II

it so simple as you thing

Load

Year(date) as Year

sum(sales) as Sales

from [your table name]

group by date;

Cheers

Sunil

Sunil Chauhan

View solution in original post

2 Replies
SunilChauhan
Champion II
Champion II

it so simple as you thing

Load

Year(date) as Year

sum(sales) as Sales

from [your table name]

group by date;

Cheers

Sunil

Sunil Chauhan
Not applicable
Author

Thank you!

I have completed the fields as this, follow you advices:

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

LOAD Date#(Date, 'DD/MM/YYYY') as Date,

     Year(Date#(Date, 'DD/MM/YYYY')) as Year,

     Customer,

     Sales

FROM

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~