Skip to main content
Announcements
Qlik Introduces a New Era of Visualization! READ ALL ABOUT IT
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Set analysis on dimension

Hi,

I am trying to do set analysis on one of dimension. I am trying to get in pivot table, company names for only year=2017

For Example:

ONLY({<YEAR={'2017'}>}company)

This is simple code, but I don't know why its not running. It's showing me invalid dimension. Please let me now what I am doing wrong or suggest any alternatives.

Thanks

1 Solution

Accepted Solutions
Anonymous
Not applicable
Author

See if aggr() helps:

aggr(ONLY({<YEAR={'2017'}>}company),company)

View solution in original post

3 Replies
Anonymous
Not applicable
Author

See if aggr() helps:

aggr(ONLY({<YEAR={'2017'}>}company),company)

Not applicable
Author

It is working. Can you please logic  too. thank you so much

mikaelsc
Specialist
Specialist

without aggr, you get multiple values of companies in 2017, so not only 1 value.

with aggr, you get 1 company in 2017 per company.