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

Announcements
Qlik Connect 2026! Turn data into bold moves, April 13 -15: Learn More!
cancel
Showing results for 
Search instead for 
Did you mean: 
guyvermeiren
Creator
Creator

Use dimension value in expression

Hello,

I would like to create a table where in the dimesion I have year and month and in expressions the turnover for actual year and turnover for year-1.( See example ). I think I have to use the dimension value in my expression. I this correct ? If not, how can this be done succesfully ??

Thanks

Kind regards,

Guy

6 Replies
Not applicable

Hi,

Did you tried set analysis?

in your expression, you can inspire from this : =SUM( { $<YEAR={$(=Only(YEAR)-1) } >}turnover)

This should give you the results for the selected year and the previous one.

Hope this helps.

Will

guyvermeiren
Creator
Creator
Author

Hello Will,

This doesn't work. It gives only zero's in th column 'Year-1'.

Any other suggestions ??

Thanks,

Guy

Not applicable

Hi,
Why not go for something like this?

using something like:
sum({$<Year = {$(=max(Year))}>} Counter)

sum({$<Year = {$(=max(Year)-1)}>} Counter)

Not applicable

Hey,

It's true that JonB 's idea should work better.

guyvermeiren
Creator
Creator
Author

Hello JonB,

The idea is OK but isn't this a standard pivottable. What I want to have is in my column the consecutive months as in in my example I added. EXample: from october 2009 untill september 2010 ( result of selection month/year in listbox).

Thanks anyway.

Kind regards,

Guy

Not applicable

Hi Guy,

I made something that should interest you

Hope this helps,

Will