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

Announcements
Join us to spark ideas for how to put the latest capabilities into action. Register here!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

set Analysis - returning a list of Names by Department

Hi,

I am trying to use set analysis to return only a list of Names against certain departments.

I have used set analysis before to return a numeric value but I dont now how to return a Field conataining Names

TOTAL({<Department={'Football', 'GAA'}>} NAME)

I dont know what function to use at the start to return a string of names, before I used sum / num TOTAL when I was returning numberic values.

Thanks

Gregg

15 Replies
Not applicable
Author

Hi Miguel,

=Aggr(ONLY({<Department = {'GAA'} >} NAME), NAME)

I have tried but still only returning the same data as above. Not sure whats goin on as both fields are linked when I check in a table box.

Joe Bloggs    -

Derek           -

Paul             -

Thanks Again,

Gregg

jagan
Partner - Champion III
Partner - Champion III

Hi,

Check attached file for solution.

Regards,

Jagan.

Not applicable
Author

Hi Jagan,

I checked your script and added noticed you had the expression in the field.

I had been adding the expression in the expression tab - this disn't work.

Thanks both for your help.

Regards,

Gregg

Not applicable
Author

Thanks Miguel

I got it working.

REgards,

Gregg

swuehl
MVP
MVP

Gregg,

please check that all field names are correctly spelled including case.

What if you just do a

=aggr(NAME, NAME)

?

OR

=NAME

?

Then I assume you want to filter the list, and I also assume you are currently using the expression tab to enter the expression above. What you need to do is using an expression as field (open the field drop down list, at the very end ---> <EXPRESSION>

Hope this helps,

Stefan

Not applicable
Author

Thanks Stefan,

That was the issue I was having.

Regards,

Gregg