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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Expression as dimesion

Hi

i want to sort a table using different expression which is based on some other column.

Now i want to limit the Dimension. But it is not possible in Line Chart.

So i tried to put if(rank(expression)<11, Dimension)

But the problem is expression is always calculated over dimension. So the above thing returning Null value when used as Dimension. If i used the same in Expression as if(rank(expression)<11, Dimension) over the Dimension it is returning the correct top values.

Anything can be done to get the Top dimension using Expression without placing it over a dimension?

I explained my problem as simple as i can.

Any ideas ???

10 Replies
Not applicable
Author

Would you mind posting your solution?  I have a simular problem that i can't seem to make work.

Here is my expression

=aggr(if(rank(Total sum(CaseCnt)) < 4,HospitalShortName,'Other'),HospitalShortName)

I am using a line chart so i want the top 4 Hospital names and the remainder in an "Others" Catagory.