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

Announcements
Qlik Connect 2026! Turn data into bold moves, April 13 -15: Learn More!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Custom sort doesn't work

Hello everyone!

I have 4 fields Working Center, Order, Order Start Date and Order End Date.

I want to sort my straight table in this order: Working Center A-Z, Order by min(StartDate).

I created custom sort expression , but it doesn't work.

See attachment

What have I done wrong?

25 Replies
Not applicable
Author

I want to arrange orders on working centers according to their min startdate on this working center.

Is it clear?

swuehl
MVP
MVP

The sort by expression for second dimension will not be evaluated using the context of your first dimension.

What about using the expression labelled 'Min' ( =Min(StartDate) ) as second sort priority as shown above, then hide the expression column in presentation tab?

Not applicable
Author

my final goal is to create Gant chart (see attachment).

And because of incorrect sorting some orders dissapear....

may be you have some better idea to make Gant?

swuehl
MVP
MVP

You may consider calculating some values like duration in the script.

I played a little with calculated dimensions, maybe this gives you some ideas:

swuehl
MVP
MVP

This thread discusses a different approach with some script work

MS Project style Team Planner view

Not applicable
Author

I solved the problem. Instead of Order must be used Order & autonumber(StartDate&'_'&EndDate) field.And sorting works