Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Different year in graph

Hi

I would like to make a graph where different year is presented by each line in the chart.

I count number of incomming invoices each year.

on the x-dimension i have months

on y- dimension i have the sum

bar.png

In th table where i count the number of invoices i have a collumn with the HistoryDate, se picture below.

table.png

1 Solution

Accepted Solutions
Not applicable
Author

The solution was like its.Anandrjs said: Split the date field so that year is displayed in a seperated collumn then I used the set analysis for each expression:

Sum ( { [ HistoryYear1 ] = { ' 2011 ' } > } ) Historycount)

View solution in original post

3 Replies
its_anandrjs

Hi,

You need to create a seperate expression for the years.

Regards

Anand

Not applicable
Author

How do you mean. I have to seperate the year in the history table?

Like this?

tab2.png

And then use a set expression?

Not applicable
Author

The solution was like its.Anandrjs said: Split the date field so that year is displayed in a seperated collumn then I used the set analysis for each expression:

Sum ( { [ HistoryYear1 ] = { ' 2011 ' } > } ) Historycount)