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

Announcements
Week 2: Presenting "Automate Sucess" and "Integration for Innovation" - WATCH NOW
cancel
Showing results for 
Search instead for 
Did you mean: 
Jay587
Creator
Creator

Need an answer for Scenarios

Hello Community folks,

I need an answer in several ways to the below questions with the table below.

1.get the latest comment ID based in ID 

2.get the latest status based comment ID

ID Comment ID Comment
123 1 booked 
123 2 shipped
123 3 packed 
123 4 closed
345 1 booked 
345 2 shipped
345 3 packed 
345 4 Delivered
345 5 closed

 

Please help me on this to get the solution is multiple ways.  Thanks in advance.

 

2 Solutions

Accepted Solutions
ali_hijazi
Partner - Master II
Partner - Master II

there is a function called FirstSortedValue
you may use it as follows:
FirstSortedValue([Comment ID],-[Comment ID])
same applies for the Status
FirstSortedValue(Comment, -[Comment ID])

ali_hijazi_0-1741683478774.png

 

I can walk on water when it freezes

View solution in original post

SRA
Partner - Creator
Partner - Creator

Hi,

If we consider you need to display the highest CommentID and the corresponding Comment for each ID you could use this :

SRA_2-1741683273598.png

If you display the complete table with the details, but want to display some new columns with the max CommentID and corresponding Comment you can add a TOTAL <ID> in the formula:

SRA_0-1741683136374.png

Hopping it will respond to your requirement

 

View solution in original post

2 Replies
ali_hijazi
Partner - Master II
Partner - Master II

there is a function called FirstSortedValue
you may use it as follows:
FirstSortedValue([Comment ID],-[Comment ID])
same applies for the Status
FirstSortedValue(Comment, -[Comment ID])

ali_hijazi_0-1741683478774.png

 

I can walk on water when it freezes
SRA
Partner - Creator
Partner - Creator

Hi,

If we consider you need to display the highest CommentID and the corresponding Comment for each ID you could use this :

SRA_2-1741683273598.png

If you display the complete table with the details, but want to display some new columns with the max CommentID and corresponding Comment you can add a TOTAL <ID> in the formula:

SRA_0-1741683136374.png

Hopping it will respond to your requirement