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

Announcements
Join us to spark ideas for how to put the latest capabilities into action. Register here!
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Firstsorted value

Dateproductmax daysNumber
07/21/201777005500070001003654582-002
07/21/201777005500070001003729871-001
07/21/201777005500070001003773911-002
07/21/201777005500070001003777321-001
07/22/201777005500070001003654582-002
07/22/201777005500070001003729871-001
07/22/201777005500070001003773911-002
07/22/201777005500070001003777321-001
07/23/201777005500070001003654582-002
07/23/201777005500070001003729871-001
07/23/201777005500070001003773911-002
07/23/201777005500070001003777321-001

4 numbers are  blocking each date and days also same but i want output below one

654582-002,729871-001, 773911-002, 777321-001  in script level  for each distinct date  like output

    

07/21/2017         77005500070001003654582-002,729871-001,773911-002,777321-001
07/22/201777005500070001003654582-002,729871-001,773911-002,777321-001
07/23/201777005500070001003654582-002,729871-001,773911-002,777321-001
8 Replies
Anil_Babu_Samineni

Please have a look Concat - script function ‒ QlikView

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful
sunny_talwar

May be like this

Fact:

LOAD Date,

     product,

     [max days],

     Concat(DISTINCT Number, ', ') as Number

FROM....

Group By Date, product, [max days];

its_anandrjs
Champion III
Champion III

If on the UI part you required this than try this ways

Dim:- Date,  product,  max days

Expre:- Concat(DISTINCT Number, ', ')

op2.PNG

Anonymous
Not applicable
Author

Hi Experts,

How to use first sorted value in Script level ? Can any one Explain  me with Example?

Anonymous
Not applicable
Author

How to use first sorted value in Script level ? Can any one Explain  me with Example?

Kushal_Chawda

I think you are asking the question which is not in a context with your requirement.

sunny_talwar

Where did firstsortedvalue came in from? May be check here:

FirstSortedValue - script function ‒ QlikView

its_anandrjs
Champion III
Champion III

In this model or data model and the output that you need is not using Firstsorted

Check about Firstsorted example

https://community.qlik.com/docs/DOC-6907#comment-45792