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

Announcements
Qlik Connect 2026 Agenda Now Available: Explore Sessions
cancel
Showing results for 
Search instead for 
Did you mean: 
Trick17
Contributor II
Contributor II

Filter in straight table

hi all, 

I'm looking to create the following straight table in the most efficient way. 

I have a large data table with different information like No, Dep and Rev. 

I want to have the No. in the first column of a straight table but only those that are from Dep. FRG. 

So ultimately i want the following result: 

 

Trick17_1-1649015554593.png

I manage to get the results with the IF funktion, however the table loads rather slowly.  I can also get there by creating a filter window, however, I'm wondering is there a way to do this in set analysis, or does it only work on numeric values?

 

I hope someone can help me out here!

 

Labels (1)
1 Reply
anthonyj
Creator III
Creator III

Hi,

I assume that Rev. is a dimension and not an aggregated measure. If that is the case you can use the only() function to insert set analysis for your required Dep. You can add the Dep as a measure like this:

ONLY({$<Dep={FRG}>}Dep)

But if you want to add it as a dimension you can use the aggregation

=AGGR(ONLY({$<Dep={FRG}>}Dep), No, Rev)

If Rev is a measure you could add the set analysis in there with:

=Sum({$<Dep={FRG}>}Rev)

I hope this helps.

Thanks

Anthony