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

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
cancel
Showing results for 
Search instead for 
Did you mean: 
userid128223
Creator
Creator

set analysis

i have below fields

LogTable:

customer.number

issue.comment

issue.comment.date

issue.comment.number

NOTE: In the above table customer can have multiple comments on same date. The highest comment.number indicates the latest comments not the date.

CustomerTable:

customer.name

customer.number

How can i create straight table that shows customer name, last comment date & last comment

In order to do the above. I have to setanalysis like below

show issue.comment for the last max issue.comment.number.

customer name  | customer number |  last issue.comment.date  |  last.issue.comment (based on max(issue.comment.number)

Labels (1)
1 Reply
swuehl
Champion III
Champion III

Look into FirstSortedValue() function:

With dimension customer.name, try these expressions:

=FirstSortedValue(issue.comment, -issue.comment.number)

=FirstSortedValue(issue.comment.date, -issue.comment.number)

(or just max(issue.comment.date) for the last one)

Hope this helps,

Stefan