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: 
qlikhalmar
Creator
Creator

Show in a linechart y and y-1 with yearweek as dimension

Hi All,

I have a problem with a linechart. I hope someone knows the trick to do this:

I want to make a linechart with to lines, one line with the data of THIS YEAR and one with the data of LAST YEAR.

No problem with only the weeknumber as a dimension. But I want the YearWeeknumber as a dimension so I can show the difference over the yearends.

Can anyone tell me if this is possible without loading the data twice?

I added a test qvw.

Thanks in advance!

Halmar !

1 Solution

Accepted Solutions
stigchel
Partner - Master
Partner - Master

You can use a synthetic dimension like ValueList, see example attached.

View solution in original post

5 Replies
Not applicable

Hi.

Try like this.

qlikhalmar
Creator
Creator
Author

Hi,

I know i can do it on that way, bu i want to do that with the dimension YearWeek.

Not applicable

I'm sorry. I don't think it's possible.

stigchel
Partner - Master
Partner - Master

You can use a synthetic dimension like ValueList, see example attached.

stigchel
Partner - Master
Partner - Master

In the meantime I have also thought of a another interesting solution for this. It does involve loading an extra dimension, but instead of twice, using a dual with the weeknr as number. This uses the fact that qv only stores the first text representation of a number it encounters for a dual, so with a descending date it will load only the most recent yearweek text representations. You can use a field year in set analysis to distinguish.

Thought that was still interesting to share, example attached.