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

Problem with Pivot Table

Hi,

     im having a problem to show some values in a pivot table. This is an example of what I want to do:

TABLE1:

DateNumber of Employees
01/0150
15/0155
04/0260
12/0258
16/0255
05/0345

I need to do a Pivot table that shows number of employees per month and days. The problem is that i dont know what expression to use to achieve this. If i look in days, expression [Number of Employees] works, but it doesnt work in month dimension. And it isn't possible to sum number of employees because i only need the last value of employees of every month (and even the same value in a possible year dimension).

It would be great if this can be solved without modifying the script.

Thanks for the help in advance.

1 Solution

Accepted Solutions
Not applicable
Author

This worked for me:

firstsortedvalue ([Number of Employees],-Date)

View solution in original post

1 Reply
Not applicable
Author

This worked for me:

firstsortedvalue ([Number of Employees],-Date)