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

Announcements
Join us in Toronto Sept 9th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Yearwise Data

I have date and sales column in my DB. I want the sum(sales) in Yearwise. How to achieve it in Qlikview? Can anyone suggest me...

Regards,

Jeeva.

5 Replies
Jason_Michaelides
Partner - Master II
Partner - Master II

Hi,

In your load script, add a field:

Year(Date) AS Year

Then in the chart put Year as the dimension and Sum(Sales) as the expression.  You could also put Year(Date) as the dimension in the chart but it's better in the script.

Hope this helps,

Jason

Not applicable
Author

Ya i did like that, but i got the sum(sales) for the whole year.

Regards,

Jeeva.

Jason_Michaelides
Partner - Master II
Partner - Master II

Isn't that what you wanted? If not, what do you mean by "Yearwise"?

Not applicable
Author

I hav data for the year 2000 to 2010. Its in date format. For Eg. 1/1/2000 to 31/12/2010 sales data.I want to see it as yearwise total.I want the output as follows.

                      Year              Sales

          

                     2000                xxx

                     2001                yyy

                     2002                zzz

Regards,

  Jeeva.

Jason_Michaelides
Partner - Master II
Partner - Master II

And your Sales figures should reflect the total sales for the year shown - correct?  If so then use the solution I posted earlier.

Jason