Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
hansrokers
Contributor III
Contributor III

Dimension in set analysis

Year is one of my dimensions.
I cannot get the year in the set analysis expression.
For the time being I have solved it this way:

if(Year=2018,sum(amount) * max({$ <[date-cur] = {'31-12-2018'}>} rate),
if(Year=2017,sum(amount) * max({$ <[date-cur] = {'31-12-2017'}>} rate),
if(Year=2016,sum(amount) * max({$ <[date-cur] = {'31-12-2016'}>} rate)

I am sure there must be a more efficient way.

Who can help ?

2 Replies
dplr-rn
Partner - Master III
Partner - Master III

i am assuming the year is not related to date-cur.
if not maybe you can try associating them.
Brett_Bleess
Former Employee
Former Employee

Below is Design Blog post on Set Analysis, and there are 4 other links at the bottom of the post pointing to other related posts that may be of some help here.

https://community.qlik.com/t5/Qlik-Design-Blog/A-Primer-on-Set-Analysis/ba-p/1468344

If you want to search the Design Blog area yourself, here is the base URL:

https://community.qlik.com/t5/Qlik-Design-Blog/bg-p/qlik-design-blog

Regards,
Brett

To help users find verified answers, please do not forget to use the "Accept as Solution" button on any post(s) that helped you resolve your problem or question.
I now work a compressed schedule, Tuesday, Wednesday and Thursday, so those will be the days I will reply to any follow-up posts.