Skip to main content

Suggest an Idea

Vote for your favorite Qlik product ideas and add your own suggestions.

Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE

Equivalent of SQL OVER (PARTITION BY ... ORDER BY ...) Functionality

daviewales
Contributor III
Contributor III

Equivalent of SQL OVER (PARTITION BY ... ORDER BY ...) Functionality

It would be really helpful to include support for analytic functions in the Qlik Sense load script. This allows you to partition data into groups, and apply functions on those groups.

Suppose you have a list of events and categories, and you want to number the events in order of date within each category:

event typedate
Picnic2019-03-04
Festival2019-04-05
Picnic2019-05-06
Festival2019-06-07

In SQL you would write:

 

SELECT
[event type],
[date],
ROW_NUMBER() OVER (PARTITION BY [event type] ORDER BY [date] ASC) as [event number]

 

This would produce:

event typedateevent number
Picnic2019-03-041
Picnic2019-05-062
Festival2019-04-051
Festival2019-06-072

The equivalent process in Qlik script is much trickier. e.g. See this forum question.

3 Comments
Patric_Nordstrom
Employee
Employee

Thank you for your feedback on ways to improve our product. While this is something we understand would be useful, it's not on the short-term roadmap. Please continue to show your support for this idea.

Thanks,

Patric

Status changed to: Open - Collecting Feedback
Meghann_MacDonald

From now on, please track this idea from the Ideation portal. 

Link to new idea

Meghann

NOTE: Upon clicking this link 2 tabs may open - please feel free to close the one with a login page. If you only see 1 tab with the login page, please try clicking this link first: Authenticate me! then try the link above again. Ensure pop-up blocker is off.

Ideation
Explorer II
Explorer II
 
Status changed to: Closed - Archived